/* ============================================
   MOBILE-FIRST RESPONSIVE DESIGN SYSTEM
   Health Gheware Blog

   Breakpoints:
   - Mobile: 0 - 479px (base styles)
   - Mobile Large: 480px - 639px
   - Tablet: 640px - 767px
   - Tablet Large: 768px - 1023px
   - Desktop: 1024px - 1279px
   - Desktop Large: 1280px+
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (MOBILE-FIRST)
   ============================================ */
:root {
    /* Fluid Typography Scale (Mobile Base) */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
    --text-sm: clamp(0.8125rem, 0.75rem + 0.3vw, 0.875rem);
    --text-base: clamp(0.9375rem, 0.875rem + 0.3vw, 1rem);
    --text-lg: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-xl: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    --text-2xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-3xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-4xl: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
    --text-5xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);

    /* Touch-Friendly Spacing */
    --touch-target: 44px;
    --touch-target-sm: 36px;

    /* Container Widths */
    --container-padding: 1rem;
    --container-max: 1200px;

    /* Safe Area for Notched Devices */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
}

/* ============================================
   BASE RESETS & MOBILE FOUNDATIONS
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

body {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    padding-top: var(--safe-area-top);
    padding-bottom: var(--safe-area-bottom);
    overflow-x: hidden;
}

/* Prevent horizontal scroll */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Improve image rendering on mobile */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Touch-friendly interactive elements */
a, button, input, select, textarea {
    touch-action: manipulation;
}

button, [type="button"], [type="submit"] {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--primary, #2563eb);
    outline-offset: 2px;
}

/* ============================================
   CONTAINER - MOBILE FIRST
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    padding-left: max(var(--container-padding), var(--safe-area-left));
    padding-right: max(var(--container-padding), var(--safe-area-right));
}

/* ============================================
   HEADER - MOBILE FIRST
   ============================================ */
.header-premium {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: auto;
    min-height: var(--touch-target);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: var(--safe-area-top);
}

.header-premium .nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
    min-height: var(--touch-target);
}

.header-premium .logo-container a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    min-height: var(--touch-target);
    padding: 0.25rem 0;
}

.header-premium .logo-svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.header-premium .brand-name {
    font-size: var(--text-base);
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.2;
}

.header-premium .brand-tagline {
    font-size: var(--text-xs);
    color: #6b7280;
    line-height: 1.2;
}

/* Mobile Menu Button */
.header-premium .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-target);
    height: var(--touch-target);
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    color: #374151;
    transition: background 0.2s ease;
}

.header-premium .mobile-menu-btn:active {
    background: #e5e7eb;
}

.header-premium .mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* Mobile Navigation Menu */
.header-premium .nav-menu {
    display: none;
    width: 100%;
    flex-basis: 100%;
    order: 3;
}

.header-premium .nav-menu.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-premium .nav-links-premium {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    gap: 0;
}

.header-premium .nav-links-premium li {
    margin: 0;
}

.header-premium .nav-link {
    display: flex;
    align-items: center;
    min-height: var(--touch-target);
    padding: 0.75rem 1rem;
    font-size: var(--text-base);
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.header-premium .nav-link:hover,
.header-premium .nav-link:active {
    background: #f3f4f6;
    color: var(--primary, #2563eb);
}

.header-premium .nav-link.external-link {
    margin: 0.5rem 0;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
}

.header-premium .nav-link.external-link:hover,
.header-premium .nav-link.external-link:active {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

/* ============================================
   BLOG HERO - MOBILE FIRST
   ============================================ */
.blog-hero {
    padding: 1.5rem 0 2rem;
    margin-bottom: 0;
}

.blog-hero-content {
    text-align: center;
    padding: 0 0.5rem;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    font-size: var(--text-xs);
    border-radius: 9999px;
}

.blog-hero-title {
    font-size: var(--text-3xl);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.blog-hero-description {
    font-size: var(--text-sm);
    line-height: 1.6;
    padding: 0 0.5rem;
    max-width: 100%;
}

/* ============================================
   BLOG CONTROLS - MOBILE FIRST
   ============================================ */
.blog-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.search-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    height: var(--touch-target);
    padding: 0 2.5rem;
    font-size: var(--text-base);
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.clear-search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: var(--touch-target-sm);
    height: var(--touch-target-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #94a3b8;
    border-radius: 50%;
}

.clear-search-btn:active {
    background: #fef2f2;
    color: #ef4444;
}

/* Category Filter - Mobile Horizontal Scroll */
.category-filter.compact {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.25rem;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.category-filter.compact::-webkit-scrollbar {
    display: none;
}

.category-filter.compact .category-button {
    flex-shrink: 0;
    min-height: var(--touch-target-sm);
    padding: 0.5rem 0.875rem;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: white;
    color: #475569;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.category-filter.compact .category-button.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: white;
}

.category-filter.compact .category-button:active {
    transform: scale(0.98);
}

/* Search Results Counter - Mobile */
.search-results-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: #64748b;
    padding: 0.25rem 0;
}

.search-results-inline #resultsCount {
    font-weight: 700;
    color: #667eea;
}

.clear-link {
    min-height: var(--touch-target-sm);
    padding: 0.25rem 0.75rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: #667eea;
    background: none;
    border: none;
    border-radius: 4px;
}

.clear-link:active {
    background: #eef2ff;
}

/* ============================================
   BLOG GRID - MOBILE FIRST
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Blog Card - Mobile Optimized */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:active {
    transform: scale(0.99);
}

.blog-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.blog-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem 0;
}

.blog-card-category {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 6px;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.blog-card-content {
    padding: 0.625rem 1rem 1rem;
}

.blog-card-title {
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.blog-card-excerpt {
    font-size: var(--text-sm);
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem 0.875rem;
    border-top: 1px solid #f1f5f9;
    font-size: var(--text-xs);
    color: #94a3b8;
}

/* ============================================
   PAGINATION - MOBILE FIRST
   ============================================ */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch-target);
    height: var(--touch-target);
    padding: 0 0.75rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: #475569;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pagination-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn.nav-btn {
    gap: 0.375rem;
}

/* Hide text labels on mobile nav buttons */
.pagination-btn.nav-btn span {
    display: none;
}

.pagination-info {
    font-size: var(--text-xs);
    color: #64748b;
    text-align: center;
}

.pagination-info strong {
    color: #0f172a;
}

/* Top pagination - more compact */
.pagination-top {
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

/* ============================================
   NEWSLETTER SIGNUP - MOBILE FIRST
   ============================================ */
.newsletter-signup {
    padding: 1.5rem;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.newsletter-signup h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.newsletter-signup > p {
    font-size: var(--text-sm);
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

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

.newsletter-input {
    width: 100%;
    height: var(--touch-target);
    padding: 0 1rem;
    font-size: var(--text-base);
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
}

.newsletter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.newsletter-button {
    width: 100%;
    min-height: var(--touch-target);
    padding: 0.875rem 1.5rem;
    font-size: var(--text-base);
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-button:active {
    transform: scale(0.98);
}

/* ============================================
   FOOTER - MOBILE FIRST
   ============================================ */
.footer-premium {
    background: #1a1a2e;
    color: #d1d5db;
    padding-bottom: var(--safe-area-bottom);
}

.footer-newsletter-trade {
    padding: 1.5rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid #374151;
}

.footer-newsletter-trade h3 {
    font-size: var(--text-lg);
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.footer-newsletter-trade > p {
    font-size: var(--text-sm);
    color: #9ca3af;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.newsletter-form-footer {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form-footer > div {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.newsletter-input-footer {
    width: 100%;
    height: var(--touch-target);
    padding: 0 1rem;
    font-size: var(--text-base);
    background: #1f2937;
    border: 1px solid #4b5563;
    border-radius: 8px;
    color: white;
}

.newsletter-input-footer::placeholder {
    color: #9ca3af;
}

.newsletter-btn-footer {
    width: 100%;
    min-height: var(--touch-target);
    padding: 0.875rem 1.5rem;
    font-size: var(--text-base);
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border: none;
    border-radius: 8px;
}

/* Social Links - Mobile */
.footer-social {
    padding: 1.25rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid #374151;
}

.footer-social h4 {
    font-size: var(--text-base);
    color: white;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    padding: 0.625rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-size: 0;
    transition: transform 0.2s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.social-link:active {
    transform: scale(0.95);
}

/* Footer Bottom - Mobile */
.footer-bottom {
    padding: 1rem 0.5rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.footer-bottom-content .copyright {
    font-size: var(--text-xs);
    color: #6b7280;
}

.legal-links {
    display: flex;
    gap: 1rem;
}

.legal-link {
    font-size: var(--text-xs);
    color: #9ca3af;
    text-decoration: none;
    padding: 0.25rem;
}

.footer-badges {
    display: flex;
    gap: 0.625rem;
}

.badge-item {
    font-size: var(--text-xs);
    color: #6b7280;
}

/* ============================================
   BLOG POST PAGE - MOBILE FIRST
   ============================================ */
.blog-post-hero {
    padding: 1.5rem 0 2rem;
    margin-bottom: 1.5rem;
}

.blog-post-hero-content {
    max-width: 100%;
    padding: 0 0.5rem;
}

.blog-post-breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: var(--touch-target-sm);
    padding: 0.5rem 0.875rem;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.blog-post-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: var(--text-xs);
    margin-bottom: 1rem;
}

.blog-post-hero-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.blog-post-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.85);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.meta-divider {
    display: none;
}

/* Blog Post Content - Mobile */
.blog-post-container {
    max-width: 100%;
    padding: 0 var(--container-padding) 2rem;
}

.blog-post-content {
    font-size: var(--text-base);
    line-height: 1.75;
}

.blog-post-content h2 {
    font-size: var(--text-2xl);
    margin-top: 2rem;
    margin-bottom: 0.875rem;
    line-height: 1.3;
}

.blog-post-content h3 {
    font-size: var(--text-xl);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.blog-post-content p {
    margin-bottom: 1.25rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content img {
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-post-content blockquote {
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left-width: 3px;
}

/* Author Bio - Mobile */
.author-bio {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.author-avatar {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px;
    min-height: 64px;
    border-radius: 50% !important;
}

.author-name-row {
    flex-direction: column;
    gap: 0.5rem;
}

.author-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.author-link {
    min-width: var(--touch-target-sm);
    min-height: var(--touch-target-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   NO RESULTS STATE - MOBILE
   ============================================ */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: var(--text-xl);
    margin-bottom: 0.5rem;
}

.no-results p {
    font-size: var(--text-sm);
    color: #64748b;
    margin-bottom: 1.25rem;
}

.reset-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: var(--touch-target);
    padding: 0.75rem 1.5rem;
    font-size: var(--text-base);
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 8px;
}

/* ============================================
   LARGE MOBILE (480px+)
   ============================================ */
@media (min-width: 480px) {
    :root {
        --container-padding: 1.25rem;
    }

    .blog-hero {
        padding: 2rem 0 2.5rem;
    }

    .blog-card-image {
        height: 180px;
    }

    .newsletter-form {
        flex-direction: row;
        align-items: center;
    }

    .newsletter-input {
        flex: 1;
    }

    .newsletter-button {
        width: auto;
        flex-shrink: 0;
    }

    .footer-newsletter-trade {
        padding: 2rem 1rem;
    }

    .newsletter-form-footer > div {
        flex-direction: row;
    }

    .newsletter-input-footer {
        flex: 1;
    }

    .newsletter-btn-footer {
        width: auto;
        flex-shrink: 0;
    }

    .social-link {
        padding: 0.625rem 0.875rem;
        font-size: var(--text-sm);
    }

    .social-link span {
        display: inline;
        margin-left: 0.375rem;
    }
}

/* ============================================
   TABLET (640px+)
   ============================================ */
@media (min-width: 640px) {
    :root {
        --container-padding: 1.5rem;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .blog-hero-title {
        font-size: var(--text-4xl);
    }

    .blog-hero-description {
        font-size: var(--text-base);
    }

    .search-row {
        flex-direction: row;
        align-items: center;
    }

    .search-container {
        max-width: 300px;
    }

    .category-filter.compact {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
        overflow-x: visible;
        flex-wrap: wrap;
    }

    .blog-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

    .pagination-btn.nav-btn span {
        display: inline;
    }
}

/* ============================================
   TABLET LARGE (768px+)
   ============================================ */
@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
    }

    /* Header - Desktop Layout */
    .header-premium .mobile-menu-btn {
        display: none;
    }

    .header-premium .nav-menu {
        display: flex !important;
        width: auto;
        flex-basis: auto;
        order: 2;
    }

    .header-premium .nav-links-premium {
        flex-direction: row;
        gap: 1.5rem;
        padding: 0;
    }

    .header-premium .nav-link {
        min-height: auto;
        padding: 0.5rem 0;
        font-size: var(--text-sm);
    }

    .header-premium .nav-link:hover {
        background: transparent;
        color: var(--primary, #2563eb);
    }

    .header-premium .nav-link.external-link {
        margin: 0;
        padding: 0.5rem 1rem;
    }

    /* Blog Hero */
    .blog-hero {
        padding: 2.5rem 0 3rem;
    }

    /* Blog Post Hero */
    .blog-post-hero {
        padding: 2.5rem 0 3.5rem;
    }

    .blog-post-hero-title {
        font-size: var(--text-4xl);
    }

    .meta-divider {
        display: inline;
    }

    /* Blog Post Content */
    .blog-post-container {
        max-width: 800px;
    }

    .blog-post-content {
        font-size: var(--text-lg);
    }

    /* Author Bio */
    .author-bio {
        flex-direction: row;
        text-align: left;
        padding: 1.5rem;
    }

    .author-avatar {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px;
        min-height: 48px;
    }

    .author-name-row {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Footer */
    .footer-bottom-content {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

/* ============================================
   DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-card-image {
        height: 160px;
    }

    .blog-hero {
        padding: 2.5rem 0 3rem;
    }

    .blog-hero-title {
        font-size: var(--text-5xl);
    }

    .blog-hero-description {
        font-size: var(--text-lg);
    }

    .blog-post-hero {
        padding: 3rem 0 4rem;
    }

    .blog-post-hero-title {
        font-size: var(--text-5xl);
    }

    .header-premium .nav-links-premium {
        gap: 2rem;
    }
}

/* ============================================
   DESKTOP LARGE (1280px+)
   ============================================ */
@media (min-width: 1280px) {
    .search-container {
        max-width: 400px;
    }

    .blog-card-image {
        height: 180px;
    }
}

/* ============================================
   REDUCED MOTION PREFERENCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   DARK MODE SUPPORT (System Preference)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles here */
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header-premium,
    .footer-premium,
    .newsletter-signup,
    .pagination-container,
    .blog-controls {
        display: none !important;
    }

    .blog-post-container {
        max-width: 100%;
        padding: 0;
    }

    .blog-post-content {
        font-size: 12pt;
    }
}
