/* ============================================
   Puva-Inspired Modern CMS Theme
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --dark-color: #2C3E50;
    --darker-color: #1A252F;
    --light-color: #F8F9FA;
    --text-color: #4A4A4A;
    --text-light: #707070;
    --border-color: #E8E8E8;
    --success-color: #51CF66;
    --warning-color: #FFA94D;
    --danger-color: #FF6B6B;
    --info-color: #339AF0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--light-color);
    font-size: 16px;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* ============================================
   Navigation Bar
   ============================================ */
.navbar {
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand a {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.site-logo {
    height: 60px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu li:not(.nav-user-item) a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu li:not(.nav-user-item) a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu li:not(.nav-user-item) a:hover::after,
.nav-menu li:not(.nav-user-item) a.active::after {
    width: 100%;
}

.nav-menu li:not(.nav-user-item) a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-dropdown-toggle:hover {
    color: var(--primary-color);
}

.nav-dropdown-toggle svg {
    margin-left: 0.35rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown.active .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    list-style: none;
    padding: 0.5rem;
    margin: 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li {
    width: 100%;
    padding: 0;
    margin: 0;
    border-bottom: none;
}

.nav-dropdown-menu li:not(:last-child) {
    margin-bottom: 0.25rem;
}

.nav-dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-radius: 8px;
    position: relative;
    text-decoration: none;
}

.nav-dropdown-menu li a svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.nav-dropdown-menu li a:hover svg {
    opacity: 1;
}

.nav-dropdown-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary-color);
    border-radius: 0 2px 2px 0;
    transition: height 0.2s ease;
}

.nav-dropdown-menu li a::after {
    display: none;
}

.nav-dropdown-menu li a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    color: var(--primary-color);
    padding-left: 1.25rem;
    transform: translateX(2px);
}

.nav-dropdown-menu li a:hover::before {
    height: 60%;
}

.nav-dropdown-menu li:first-child a {
    border-radius: 8px;
}

.nav-dropdown-menu li:last-child a {
    border-radius: 8px;
}

/* Filter Bar Styles */
.filter-bar {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.filter-bar input,
.filter-bar select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.filter-bar input:focus,
.filter-bar select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-bar #filterTags .badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    cursor: default;
}

.filter-bar #filterTags button {
    padding: 0;
    margin-left: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.filter-bar #filterTags button:hover {
    opacity: 1;
}

/* Category Group Styles */
.category-group {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    transition: opacity 0.3s ease;
}

.category-group:last-child {
    border-bottom: none;
}

.category-group-header {
    padding-bottom: 1rem;
}

.subcategory-link-card {
    display: block;
    cursor: pointer;
}

.subcategory-link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.subcategory-link-card:hover div:first-child {
    transform: scale(1.1);
}

/* Product Item Filtering */
.product-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-item[style*="display: none"] {
    opacity: 0;
    transform: scale(0.95);
}

/* User Navigation Item */
.nav-user-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: var(--light-color);
    border-radius: 25px;
    border: 1px solid var(--border-color);
}

.nav-username {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-logout {
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 1rem !important;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
    position: static !important;
    text-decoration: none;
    display: inline-block;
}

.nav-logout:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: scale(1.05);
}

.nav-logout::after {
    display: none !important;
    content: none !important;
}

.nav-login-btn {
    margin-left: 0;
    position: static !important;
    padding: 0.5rem 1.25rem !important;
    color: white !important;
}

.nav-login-btn:hover {
    color: white !important;
}

.nav-login-btn::after {
    display: none !important;
    content: none !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ============================================
   Featured Hero Section (Puva Style)
   ============================================ */
.featured-hero {
    background: white;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.featured-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.featured-hero-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16/10;
}

.featured-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-hero:hover .featured-hero-image img {
    transform: scale(1.05);
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: white;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-hero-text {
    padding: 1rem 0;
}

.featured-category {
    display: inline-block;
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.featured-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.featured-title a {
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.featured-title a:hover {
    color: var(--primary-color);
}

.featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.featured-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.post-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* ============================================
   Content with Sidebar Layout
   ============================================ */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

.primary-content {
    min-width: 0; /* Prevents grid overflow */
}

/* ============================================
   Section Headers
   ============================================ */
.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title-inline {
    font-size: 1.75rem;
    margin: 0;
    font-weight: 800;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    background: white;
    border: 2px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.view-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ============================================
   Posts Grid
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Posts Grid with 2 Columns */
.posts-grid.grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* List View Styles */
.posts-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.posts-grid.list-view .post-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.posts-grid.list-view .post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.posts-grid.list-view .post-card-image {
    flex: 0 0 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.posts-grid.list-view .post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.posts-grid.list-view .post-card-image .post-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.posts-grid.list-view .post-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
}

.posts-grid.list-view .post-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.posts-grid.list-view .post-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.posts-grid.list-view .post-card-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.posts-grid.list-view .post-card-title a:hover {
    color: var(--primary-color);
}

.posts-grid.list-view .post-card-excerpt {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.posts-grid.list-view .post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.posts-grid.list-view .post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.posts-grid.list-view .post-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.posts-grid.list-view .post-author-name {
    font-weight: 600;
    color: var(--text-color);
}

/* Responsive adjustments for list view */
@media (max-width: 768px) {
    .posts-grid.list-view .post-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .posts-grid.list-view .post-card-image {
        flex: none;
        width: 100%;
        height: 200px;
    }
    
    .posts-grid.list-view .post-card-content {
        min-height: auto;
    }
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    min-height: calc(100vh - 240px);
    padding: 3rem 0;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Grid Layouts
   ============================================ */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.card:not(.post-content):hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card h2, .card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Category Grid */
.category-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .category-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    min-height: 180px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card:hover h3 {
    color: var(--primary-color);
}

/* Post Cards */
.post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.post-card-image {
    width: 100%;
    height: 220px;
    background: var(--gradient-accent);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-featured-image img {
    display: block;
}

.post-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.post-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.post-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-card-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    line-height: 1.4;
}

.post-card-title a {
    color: inherit;
}

.post-card-title a:hover {
    color: var(--primary-color);
}

.post-card-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.post-author-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Rating Stars */
.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-star {
    color: #FFD93D;
    font-size: 1rem;
}

.rating-star.empty {
    color: #E0E0E0;
}

.rating-value {
    margin-left: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    border-color: var(--success-color);
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-color: var(--danger-color);
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border-color: var(--info-color);
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    border-color: var(--warning-color);
    color: #856404;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-control::placeholder {
    color: #aaa;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%234A4A4A" d="M6 9L1 4h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #ff5252;
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #3dbdb3;
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #40c057;
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #ff5252;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ============================================
   Tables
   ============================================ */
/* Admin Content Table Improvements */
.admin-content-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-content-table {
    font-size: 0.9rem;
    min-width: 800px;
    table-layout: auto;
}

.admin-content-table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 0.5rem;
    white-space: nowrap;
}

.admin-content-table th.col-title {
    min-width: 280px;
    width: 35%;
}

.admin-content-table th.col-tags {
    min-width: 200px;
    width: 28%;
}

.admin-content-table th.col-product {
    min-width: 150px;
    width: 18%;
}

.admin-content-table th.col-status {
    min-width: 100px;
    width: 10%;
}

.admin-content-table th.col-actions {
    min-width: 140px;
    width: 19%;
    text-align: right;
}

.admin-content-table td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
}

.admin-content-title {
    display: block;
    word-break: break-word;
    line-height: 1.4;
    font-weight: normal;
    font-size: 0.9rem;
}

.admin-content-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    max-width: 200px;
}

.admin-content-tag-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    white-space: nowrap;
}

.admin-content-tag-count {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    background: var(--border-color);
    color: var(--text-light);
}

.admin-content-empty {
    color: var(--text-light);
    font-size: 0.85rem;
}

.admin-content-product-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.admin-content-status-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

.admin-content-date-container {
    font-size: 0.85rem;
    line-height: 1.4;
}

.admin-content-date-text {
    color: var(--text-color);
}

.admin-content-date-updated {
    color: var(--text-light);
    font-size: 0.75rem;
}

.admin-content-actions-container {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    text-align: right;
}

.admin-content-action-btn {
    padding: 0.25rem 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    min-height: auto;
}

.admin-content-action-btn svg,
.admin-content-action-icon {
    display: inline-block !important;
    vertical-align: middle !important;
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0;
    max-width: 12px;
    max-height: 12px;
}

.admin-content-summary {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    text-align: center;
}

.table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table th,
.table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--light-color);
    font-weight: 700;
    color: var(--dark-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   Badges
   ============================================ */
.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-primary {
    background: rgba(255, 107, 107, 0.15);
    color: var(--primary-color);
}

/* ============================================
   Dashboard Stats
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card h3 {
    font-size: 2.75rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.stat-card p {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.stat-card.gradient-1 h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card.gradient-2 h3 {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card.gradient-3 h3 {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Login Container
   ============================================ */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, 20px) rotate(10deg); }
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
    font-size: 2rem;
}

.login-box .btn {
    margin-top: 1rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   Sidebar & Widgets
   ============================================ */
.sidebar {
    position: sticky;
    top: 100px;
}

.widget {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 0.75rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Search Widget */
.search-form {
    position: relative;
    display: flex;
}

.search-form .form-control {
    padding-right: 50px;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--secondary-color);
}

/* About Widget */
.about-content {
    text-align: center;
}

.about-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.about-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links-widget {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
    padding: 0;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-item:first-child {
    padding-top: 0;
}

.recent-post-thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
}

.recent-post-content {
    flex: 1;
    min-width: 0;
}

.recent-post-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.recent-post-content h4 a {
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.recent-post-content h4 a:hover {
    color: var(--primary-color);
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Newsletter Widget */
.newsletter-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    background: var(--light-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.tag-item:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--darker-color);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* ============================================
   Post Content Styling (Markdown)
   ============================================ */
.post-content {
    color: var(--text-color) !important;
}

.post-content h1 {
    font-size: 2.25rem;
    color: var(--dark-color) !important;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.post-content h2 {
    font-size: 1.75rem;
    color: var(--dark-color) !important;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.post-content h3 {
    font-size: 1.4rem;
    color: var(--dark-color) !important;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h4 {
    font-size: 1.2rem;
    color: var(--text-color) !important;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color) !important;
    line-height: 1.8;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--text-color) !important;
}

.post-content li {
    margin-bottom: 0.75rem;
    color: var(--text-color) !important;
    line-height: 1.7;
}

.post-content li strong {
    color: var(--dark-color) !important;
}

.post-content strong {
    font-weight: 700;
    color: var(--dark-color) !important;
}

.post-content code {
    background: var(--light-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.post-content pre {
    background: var(--dark-color);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-content pre code {
    background: none;
    border: none;
    color: white;
    padding: 0;
}

.post-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.post-content a:hover {
    color: var(--secondary-color);
    text-decoration-color: var(--secondary-color);
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-style: italic;
}

.post-content hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 2rem 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.post-content table th,
.post-content table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.post-content table th {
    background: var(--light-color);
    font-weight: 700;
}

/* First paragraph styling */
.post-content > p:first-child {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* ============================================
   Empty States
   ============================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        gap: 0;
        align-items: flex-start;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Mobile Dropdown Styles */
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.02);
        margin-top: 0.75rem;
        margin-left: 0;
        margin-right: 0;
        border-radius: 8px;
        padding: 0.5rem;
        display: none;
        border: 1px solid rgba(0, 0, 0, 0.05);
        min-width: auto;
        width: 100%;
    }
    
    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }
    
    .nav-dropdown-menu li {
        margin-bottom: 0.25rem;
    }
    
    .nav-dropdown-menu li:last-child {
        margin-bottom: 0;
    }
    
    .nav-dropdown-menu li a {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        border-radius: 6px;
    }
    
    .nav-dropdown-menu li a:hover {
        padding-left: 1rem;
        background: rgba(102, 126, 234, 0.1);
        transform: none;
    }
    
    .nav-dropdown-menu li a::before {
        display: none;
    }
    
    /* Mobile Filter Bar */
    .filter-bar {
        position: static !important;
        padding: 1rem !important;
    }
    
    .filter-bar > div:first-child {
        flex-direction: column;
    }
    
    .filter-bar > div:first-child > div {
        width: 100%;
        min-width: auto;
    }
    
    .filter-bar #activeFilters {
        margin-top: 1rem;
    }
    
    .nav-user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
        padding: 1rem;
    }
    
    .nav-logout {
        width: 100%;
        text-align: center;
    }
    
    /* Featured Hero */
    .featured-hero {
        padding: 2rem 0;
    }
    
    .featured-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .featured-title {
        font-size: 1.75rem;
    }
    
    .featured-excerpt {
        font-size: 1rem;
    }
    
    /* Sidebar */
    .content-with-sidebar {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        position: static;
    }
    
    .widget {
        padding: 1.5rem;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Grids */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Login */
    .login-box {
        padding: 2rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .post-card-content {
        padding: 1.25rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Post Image (for product and regular cards) */
.post-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 12px 12px 0 0;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

/* Post Body (content area) */
.post-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    line-height: 1.4;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-card .post-image {
    background: var(--gradient-primary);
    min-height: 200px;
}

/* Page Hero */
.page-hero {
    background: var(--gradient-primary);
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 12px;
    color: white;
}

.page-hero a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

.page-hero a:hover {
    color: rgba(255, 255, 255, 1);
}

.page-hero h1,
.page-hero h2,
.page-hero h3 {
    color: white;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.95);
}

/* Category Page Styles */
.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.page-hero-breadcrumb {
    margin-bottom: 0.5rem;
}

.page-hero-breadcrumb-separator {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0.5rem;
}

.page-hero-breadcrumb-text {
    color: rgba(255, 255, 255, 0.85);
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
}

.page-hero-stats {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.category-section {
    margin-bottom: 3rem;
}

.category-section-title {
    margin-bottom: 1.5rem;
}

.subcategory-card {
    text-decoration: none;
    color: inherit;
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.subcategory-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.subcategory-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subcategory-description {
    color: var(--text-light);
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   Tag Page Header Styles
   ============================================ */
.tag-hero {
    background: var(--gradient-primary);
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.tag-hero-secondary {
    background: var(--gradient-secondary);
}

.tag-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
}

.tag-hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem;
}

.tag-hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag-hero-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.tag-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.tag-hero-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.tag-hero-title {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    letter-spacing: -0.3px;
}

.tag-hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.tag-hero-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    white-space: nowrap;
}

.tag-hero-stats svg {
    width: 18px;
    height: 18px;
}

.tag-hero-stats span {
    font-weight: 600;
}

.tag-hero-center {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.product-rating-star {
    color: #fbbf24;
}

.product-price-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

.product-image-placeholder {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.category-content {
    margin-top: 3rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

