/* ═══════════════════════════════════════════════════════════
   RedditReviewer Theme — CSS Design System
   Modern, bold, content-first review site
   Mobile-first responsive CSS
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─────────────────────────────────── */
:root {
    /* Colors */
    --color-primary: #FF4500;
    --color-primary-hover: #e03d00;
    --color-primary-light: rgba(255, 69, 0, 0.08);
    --color-accent: #FF9900;
    --color-accent-hover: #E88A00;
    --color-text: #1a1a2e;
    --color-text-secondary: #4a4a68;
    --color-text-light: #8888a4;
    --color-bg: #ffffff;
    --color-bg-light: #f7f7fb;
    --color-bg-warm: #faf8f5;
    --color-bg-card: #ffffff;
    --color-bg-dark: #1a1a2e;
    --color-border: #e8e8f0;
    --color-border-light: #f0f0f8;
    --color-link: #1a1a2e;
    --color-link-hover: #FF4500;
    --color-success: #10b981;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

    --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: 2rem;
    --text-4xl: 2.75rem;
    --text-5xl: 3.5rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --container-max: 1200px;
    --content-max: 800px;
    --sidebar-width: 300px;
    --gap: 2rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.06);
    --shadow-md: 0 4px 12px rgba(26, 26, 46, 0.08);
    --shadow-lg: 0 8px 30px rgba(26, 26, 46, 0.12);
    --shadow-xl: 0 12px 40px rgba(26, 26, 46, 0.16);
    --shadow-glow: 0 4px 20px rgba(255, 69, 0, 0.2);

    /* Borders */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

ul, ol {
    list-style: none;
}

/* ─── Container ─────────────────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ─── Layout ────────────────────────────────────────────────── */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap);
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-3xl);
}

.layout-narrow {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg) var(--space-3xl);
}

.content-area {
    min-width: 0;
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
}

.site-logo-link {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 60px;
    width: auto;
    transition: opacity 0.2s ease;
}

.site-logo-link:hover .site-logo {
    opacity: 0.85;
}

.site-branding .site-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 900;
    color: var(--color-text);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

/* Navigation */
.main-nav .nav-list {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

.main-nav .nav-list li a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.main-nav .nav-list li a:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.main-nav .nav-list li.current-menu-item a,
.main-nav .nav-list li.current-cat a {
    color: var(--color-primary);
    background: var(--color-primary-light);
    font-weight: 600;
}

/* Hamburger Menu */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

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

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.menu-toggle.is-active .hamburger {
    background: transparent;
}
.menu-toggle.is-active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.menu-toggle.is-active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile Nav */
.main-nav {
    display: none;
}

.main-nav.is-open {
    display: block;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md);
}

.main-nav.is-open .nav-list {
    flex-direction: column;
    gap: var(--space-xs);
}

.main-nav.is-open .nav-list li a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-base);
    border-radius: var(--radius-md);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-3xl) 0 var(--space-2xl);
    margin-top: var(--space-4xl);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
    text-align: center;
}

.footer-nav-list {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav-list li a {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-nav-list li a:hover {
    color: #fff;
}

.footer-info p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.4);
}

.affiliate-disclosure {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.3);
    margin-top: var(--space-xs);
}

/* ═══════════════════════════════════════════════════════════
   POST CARDS (Grid)
   ═══════════════════════════════════════════════════════════ */
.post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.post-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.post-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-border-light) 100%);
    position: relative;
}

.post-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.03) 100%);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.post-card-body {
    padding: var(--space-lg) var(--space-xl);
}

.post-card-title {
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.3;
    margin-top: var(--space-sm);
    letter-spacing: -0.01em;
}

.post-card-title a {
    color: var(--color-text);
    transition: color 0.2s ease;
}

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

.post-card-excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-top: var(--space-sm);
}

.post-card-meta {
    font-size: var(--text-xs);
    color: var(--color-text-light);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
}

/* Small Cards (category sections on homepage) */
.post-card-small .post-card-body {
    padding: var(--space-md) var(--space-lg);
}

.post-card-small .post-card-title {
    font-size: var(--text-base);
    margin-top: 0;
}

/* ─── Placeholder Images ───────────────────────────────────── */
.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.placeholder-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 30%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.25);
    position: relative;
    z-index: 1;
}

.placeholder-cat {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.35);
    position: relative;
    z-index: 1;
}

.post-card-small .placeholder-icon {
    width: 36px;
    height: 36px;
}

.post-card-small .placeholder-cat {
    font-size: 0.65rem;
}

.review-featured-image .placeholder-image {
    min-height: 300px;
    border-radius: var(--radius-lg);
}

/* ─── Category Badge ────────────────────────────────────────── */
.category-badge {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.category-badge:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   AMAZON CTA BUTTON
   ═══════════════════════════════════════════════════════════ */
.amazon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: linear-gradient(135deg, var(--color-accent) 0%, #ffad33 100%);
    color: #fff;
    font-size: var(--text-lg);
    font-weight: 700;
    padding: 16px 36px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 153, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.amazon-button:hover {
    background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 153, 0, 0.4);
}

.cta-wrapper {
    text-align: center;
    margin: var(--space-xl) 0;
}

.cta-wrapper .amazon-button {
    width: 100%;
    max-width: 420px;
}

/* ═══════════════════════════════════════════════════════════
   SINGLE REVIEW (single.php)
   ═══════════════════════════════════════════════════════════ */
.single-review {
    max-width: var(--content-max);
}

.review-header {
    margin-bottom: var(--space-xl);
}

.review-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-top: var(--space-md);
    color: var(--color-text);
}

.review-meta {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-top: var(--space-md);
}

.reading-time::before {
    content: '\00b7';
    margin-right: var(--space-md);
}

.review-featured-image {
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.review-featured-image img {
    width: 100%;
    height: auto;
}

/* ─── Review Content (Article Body) ─────────────────────────── */
.review-content {
    font-size: var(--text-lg);
    line-height: 1.85;
    color: var(--color-text);
}

.review-content h2 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border-light);
}

.review-content h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.review-content p {
    margin-bottom: var(--space-lg);
    color: var(--color-text-secondary);
}

.review-content ul,
.review-content ol {
    margin: var(--space-md) 0 var(--space-lg);
    padding-left: var(--space-xl);
}

.review-content ul {
    list-style: disc;
}

.review-content ol {
    list-style: decimal;
}

.review-content li {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.review-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-xl) 0;
    background: var(--color-primary-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-text-secondary);
    font-size: var(--text-lg);
    position: relative;
}

.review-content blockquote::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 12px;
    line-height: 1;
}

.review-content strong {
    font-weight: 700;
    color: var(--color-text);
}

.review-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(255, 69, 0, 0.3);
    transition: text-decoration-color 0.2s ease;
}

.review-content a:hover {
    text-decoration-color: var(--color-primary);
}

.review-content img {
    border-radius: var(--radius-md);
    margin: var(--space-lg) auto;
    box-shadow: var(--shadow-sm);
}

.review-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.review-content th,
.review-content td {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    text-align: left;
}

.review-content th {
    background: var(--color-bg-light);
    font-weight: 700;
    color: var(--color-text);
}

/* ─── Related Posts ──────────────────────────────────────────── */
.related-posts {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 2px solid var(--color-border-light);
}

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE (front-page.php)
   ═══════════════════════════════════════════════════════════ */
.hero {
    background: linear-gradient(160deg, var(--color-bg-dark) 0%, #2d2d4a 50%, #3a2038 100%);
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 69, 0, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(255, 153, 0, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    background: rgba(255, 69, 0, 0.12);
    padding: 6px 20px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255, 69, 0, 0.2);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #fff;
    max-width: 750px;
    margin: 0 auto;
}

.hero-title em {
    font-style: normal;
    color: var(--color-primary);
    font-family: var(--font-display);
    font-weight: 800;
}

.hero-tagline {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-md);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-search {
    margin-top: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search .search-form {
    display: flex;
    gap: 0;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.hero-search .search-form:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 69, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 69, 0, 0.1);
}

.hero-search .search-field {
    flex: 1;
    padding: 14px 24px;
    border: none;
    background: transparent;
    font-size: var(--text-base);
    font-family: var(--font-body);
    color: #fff;
    outline: none;
}

.hero-search .search-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.hero-search .search-submit {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-search .search-submit:hover {
    background: var(--color-primary-hover);
}

.home-section {
    margin-top: var(--space-3xl);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-border-light);
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0;
    color: var(--color-text);
}

.home-section > .section-title {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-border-light);
}

.section-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-primary);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.section-link:hover {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════
   ARCHIVE PAGES
   ═══════════════════════════════════════════════════════════ */
.archive-header {
    margin-bottom: var(--space-xl);
}

.archive-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.archive-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-top: var(--space-sm);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   STATIC PAGES
   ═══════════════════════════════════════════════════════════ */
.page-content .page-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 800;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

.entry-content {
    font-size: var(--text-lg);
    line-height: 1.85;
}

.entry-content p {
    margin-bottom: var(--space-lg);
    color: var(--color-text-secondary);
}

.entry-content h2 {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.entry-content ul,
.entry-content ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li {
    margin-bottom: var(--space-sm);
    color: var(--color-text-secondary);
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    position: sticky;
    top: 100px;
    align-self: start;
}

.widget {
    background: var(--color-bg-light);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
}

.widget-title {
    font-size: var(--text-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border);
}

/* ─── About Widget ─────────────────────────────────────────── */
.widget-about {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4a 100%);
    color: #fff;
    text-align: center;
    border: none;
}

.widget-about-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: #fff;
}

.widget-about-heading {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.widget-about-text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ─── Category Widget ──────────────────────────────────────── */
.widget-categories ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.widget-categories ul li a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.widget-categories ul li a:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
    border-color: rgba(255, 69, 0, 0.12);
    transform: translateX(2px);
}

.widget-categories .cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    flex-shrink: 0;
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
}

.widget-categories ul li a:hover .cat-icon {
    color: var(--color-primary);
    border-color: rgba(255, 69, 0, 0.2);
    background: var(--color-primary-light);
}

.widget-categories .cat-name {
    flex: 1;
}

.widget-categories .cat-count {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-text-light);
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    min-width: 24px;
    text-align: center;
}

/* ─── Popular Reviews Widget ───────────────────────────────── */
.widget-popular {
    padding-bottom: var(--space-md);
}

.popular-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border-light);
    text-decoration: none;
    transition: all 0.2s ease;
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-item:hover {
    color: inherit;
}

.popular-item:hover .popular-title {
    color: var(--color-primary);
}

.popular-rank {
    font-size: var(--text-xs);
    font-weight: 800;
    color: var(--color-text-light);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.popular-item:first-child .popular-rank {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.popular-thumb {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

.popular-thumb-placeholder {
    width: 100%;
    height: 100%;
}

.popular-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.popular-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-cat {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Newsletter Widget ────────────────────────────────────── */
.widget-newsletter {
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff6b35 100%);
    color: #fff;
    text-align: center;
    border: none;
}

.newsletter-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: #fff;
}

.newsletter-heading {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.newsletter-text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.newsletter-btn {
    display: inline-block;
    background: #fff;
    color: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: 700;
    padding: 10px 28px;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    text-decoration: none;
}

.newsletter-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ─── Ad Slot Placeholders ──────────────────────────────────── */
.ad-slot {
    background: var(--color-bg-light);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.ad-slot-sidebar {
    width: 100%;
    min-height: 250px;
}

.ad-slot-footer {
    max-width: 728px;
    min-height: 90px;
    margin: var(--space-xl) auto 0;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════════════════════ */
.error-404 {
    text-align: center;
    padding: var(--space-4xl) 0;
}

.error-title {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.error-404 h2 {
    font-size: var(--text-2xl);
    margin-top: var(--space-md);
    font-weight: 800;
}

.error-404 p {
    color: var(--color-text-secondary);
    margin-top: var(--space-sm);
    margin-bottom: var(--space-xl);
    font-size: var(--text-lg);
}

.error-search {
    margin-top: var(--space-2xl);
}

.error-search h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

/* ═══════════════════════════════════════════════════════════
   SEARCH
   ═══════════════════════════════════════════════════════════ */
.search-term {
    color: var(--color-primary);
}

.search-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 500px;
    margin: 0 auto;
}

.search-form .search-field {
    flex: 1;
    padding: 12px var(--space-lg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-family: var(--font-body);
    transition: all 0.2s ease;
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(255, 69, 0, 0.1);
}

.search-form .search-submit {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 12px var(--space-xl);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.search-form .search-submit:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

/* ─── Pagination ────────────────────────────────────────────── */
.pagination {
    margin-top: var(--space-2xl);
}

.pagination .nav-links {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    align-items: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--space-sm);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.pagination .page-numbers.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.pagination .prev,
.pagination .next {
    font-weight: 700;
}

/* ─── No Results ────────────────────────────────────────────── */
.no-results {
    text-align: center;
    padding: var(--space-4xl) 0;
}

.no-results h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
    font-weight: 800;
}

.no-results p {
    color: var(--color-text-secondary);
    font-size: var(--text-lg);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (640px+)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Desktop (900px+)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 900px) {
    /* Show desktop nav, hide hamburger */
    .menu-toggle {
        display: none;
    }

    .main-nav {
        display: block;
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .main-nav .nav-list {
        flex-direction: row;
    }

    /* Sidebar layout */
    .layout-with-sidebar {
        grid-template-columns: 1fr var(--sidebar-width);
    }

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

    .post-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero {
        padding: var(--space-4xl) 0 calc(var(--space-4xl) + 1rem);
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Large Desktop (1100px+)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1100px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        padding: 0 var(--space-xl);
    }
}

/* ─── WordPress Generated Classes ───────────────────────────── */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: var(--space-lg);
    margin-bottom: var(--space-md);
}

.alignright {
    float: right;
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    text-align: center;
    margin-top: var(--space-xs);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

/* ─── Print Styles ──────────────────────────────────────────── */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .ad-slot,
    .amazon-button,
    .menu-toggle,
    .pagination {
        display: none;
    }

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

    .layout-with-sidebar {
        grid-template-columns: 1fr;
    }
}
