/*
Theme Name: PrimeMeadow
Theme URI: https://primemeadow.com
Author: PrimeMeadow Team
Author URI: https://primemeadow.com
Description: PrimeMeadow is a professional, SEO-friendly WordPress theme built specifically for product review blogs. Features include built-in review meta boxes with star ratings, pros/cons lists, Schema.org markup, Google Analytics and AdSense integration, customizable layouts, and a clean modern design optimized for conversions and readability.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: primemeadow
Domain Path: /languages
Tags: blog, e-commerce, two-columns, three-columns, right-sidebar, left-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, featured-images, flexible-header, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, accessibility-ready, block-patterns, wide-blocks, editor-style, woocommerce
*/

/* =============================================================================
   TABLE OF CONTENTS:
   1. CSS Custom Properties (Design Tokens)
   2. CSS Reset & Normalize
   3. Base Typography
   4. Layout & Grid System
   5. Header & Navigation
   6. Hero Section
   7. Post Cards & Grids
   8. Sidebar & Widgets
   9. Footer
   10. Buttons & Forms
   11. Pagination
   12. Utility Classes
   ============================================================================= */

/* =============================================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================================= */
:root {
    /* Primary Color Palette */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-xlight: #dbeafe;

    /* Accent Colors */
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fcd34d;
    --accent-xlight: #fef3c7;

    /* Secondary Colors */
    --secondary: #10b981;
    --secondary-dark: #059669;
    --secondary-light: #34d399;

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --black: #000000;

    /* Semantic Colors */
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --text-inverse: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;

    /* Rating Colors */
    --rating-excellent: #10b981;
    --rating-good: #3b82f6;
    --rating-average: #f59e0b;
    --rating-poor: #ef4444;
    --star-filled: #f59e0b;
    --star-empty: #d1d5db;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Header & Footer */
    --header-bg: #ffffff;
    --header-height: 70px;
    --topbar-bg: #1f2937;
    --topbar-height: 36px;
    --footer-bg: #1f2937;
    --footer-text: #d1d5db;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 250ms ease;
    --transition-slow: 400ms ease;

    /* Z-Index Scale */
    --z-base: 0;
    --z-raised: 10;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;

    /* Container */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    --container-padding: 1.5rem;
}

/* =============================================================================
   2. CSS RESET & NORMALIZE
   ============================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
video,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul,
ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* =============================================================================
   3. BASE TYPOGRAPHY
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
}

p:last-child {
    margin-bottom: 0;
}

strong, b {
    font-weight: var(--font-bold);
}

em, i {
    font-style: italic;
}

small {
    font-size: var(--text-sm);
}

blockquote {
    border-left: 4px solid var(--primary);
    padding: var(--space-4) var(--space-6);
    background: var(--primary-xlight);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: var(--space-6) 0;
    font-style: italic;
    color: var(--text-secondary);
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-tertiary);
    padding: 0.125em 0.375em;
    border-radius: var(--radius-sm);
    color: var(--primary-dark);
}

pre {
    font-family: var(--font-mono);
    background: var(--gray-800);
    color: var(--gray-100);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: var(--space-6) 0;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
}

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: var(--space-8) 0;
}

/* =============================================================================
   4. LAYOUT & GRID SYSTEM
   ============================================================================= */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }
.container-2xl { max-width: var(--container-2xl); }

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    padding: var(--space-8) 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-8);
    align-items: start;
}

.content-area.sidebar-left {
    grid-template-columns: 320px 1fr;
}

.content-area.no-sidebar {
    grid-template-columns: 1fr;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
}

.posts-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.posts-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* =============================================================================
   5. HEADER & NAVIGATION
   ============================================================================= */
.site-header {
    background: var(--header-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: box-shadow var(--transition);
}

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

.topbar {
    background: var(--topbar-bg);
    color: var(--gray-300);
    font-size: var(--text-sm);
    height: var(--topbar-height);
    display: flex;
    align-items: center;
}

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

.topbar-social a {
    color: var(--gray-400);
    margin-left: var(--space-3);
    transition: color var(--transition-fast);
    font-size: var(--text-base);
}

.topbar-social a:hover {
    color: var(--white);
}

.header-main {
    padding: var(--space-4) 0;
}

.header-main .container {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-shrink: 0;
}

.site-logo img {
    height: 48px;
    width: auto;
}

.site-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-extrabold);
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
}

.site-title a {
    color: inherit;
}

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

.site-description {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
}

.header-search {
    flex: 1;
    max-width: 400px;
    margin-left: auto;
}

.header-search form {
    display: flex;
    position: relative;
}

.header-search input[type="search"] {
    width: 100%;
    padding: var(--space-2) var(--space-4);
    padding-right: 48px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    background: var(--bg-secondary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.header-search input[type="search"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-xlight);
    background: var(--white);
}

.header-search button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    transition: color var(--transition-fast);
}

.header-search button:hover {
    color: var(--primary);
}

/* Navigation */
.site-nav {
    background: var(--white);
    border-top: 1px solid var(--border-light);
}

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

.primary-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    display: block;
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast), background-color var(--transition-fast);
    border-bottom: 3px solid transparent;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Dropdown */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border-top: 3px solid var(--primary);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: var(--z-dropdown);
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu .sub-menu li a {
    display: block;
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.primary-menu .sub-menu li:last-child a {
    border-bottom: none;
}

.primary-menu .sub-menu li a:hover {
    color: var(--primary);
    background: var(--bg-secondary);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.menu-toggle:hover {
    background: var(--primary-xlight);
    color: var(--primary);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.hamburger span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.menu-open .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-open .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-open .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =============================================================================
   6. FOOTER
   ============================================================================= */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: auto;
}

.footer-widgets {
    padding: var(--space-16) 0 var(--space-8);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.footer-widget-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-5) 0;
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--gray-400);
}

.footer-links {
    display: flex;
    gap: var(--space-5);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

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

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: var(--z-raised);
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* =============================================================================
   7. BUTTONS & FORMS
   ============================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    line-height: 1;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

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

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-xlight);
}

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

/* =============================================================================
   8. BREADCRUMBS
   ============================================================================= */
.breadcrumbs {
    background: var(--bg-secondary);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-light);
    font-size: var(--text-sm);
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
}

.breadcrumbs-list a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.breadcrumbs-list a:hover {
    color: var(--primary);
}

.breadcrumbs-list .separator {
    color: var(--text-light);
}

.breadcrumbs-list .current {
    color: var(--text-primary);
    font-weight: var(--font-medium);
}

/* =============================================================================
   9. UTILITY CLASSES
   ============================================================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: var(--font-bold); }
.font-semibold { font-weight: var(--font-semibold); }

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }

.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }

.hidden { display: none; }
.block { display: block; }

.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: var(--radius-full); }

.w-full { width: 100%; }

.section-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
    margin-top: 2px;
}

/* =============================================================================
   10. READING PROGRESS BAR
   ============================================================================= */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: calc(var(--z-sticky) + 10);
    transition: width 0.1s linear;
}

/* =============================================================================
   11. RESPONSIVE BREAKPOINTS
   ============================================================================= */
@media (max-width: 1280px) {
    .posts-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .content-area {
        grid-template-columns: 1fr;
    }

    .content-area.sidebar-left {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }

    .menu-toggle {
        display: flex;
    }

    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        gap: 0;
        z-index: var(--z-dropdown);
        border-top: 3px solid var(--primary);
    }

    .primary-menu.open {
        display: flex;
    }

    .primary-menu > li > a {
        padding: var(--space-4) var(--container-padding);
        border-bottom: 1px solid var(--border-light);
        border-bottom-color: transparent;
    }

    .primary-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--primary-xlight);
        margin-left: var(--space-6);
        display: none;
    }

    .primary-menu li.open > .sub-menu {
        display: block;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .posts-grid-2,
    .posts-grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .header-search {
        display: none;
    }

    .header-search.open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: var(--space-4);
        box-shadow: var(--shadow-md);
        max-width: none;
        margin: 0;
        z-index: var(--z-dropdown);
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 0.875rem;
    }

    h1 { font-size: var(--text-2xl); }
    h2 { font-size: var(--text-xl); }
}

/* =============================================================================
   12. PRINT STYLES
   ============================================================================= */
@media print {
    .site-header,
    .site-nav,
    .site-footer,
    .sidebar,
    .back-to-top,
    .reading-progress,
    .btn,
    .comments-section {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

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

/* =============================================================================
   13. DARK MODE
   ============================================================================= */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-tertiary: #334155;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --border-color: #334155;
        --border-light: #1e293b;
        --header-bg: #0f172a;
        --footer-bg: #020617;
    }
}
