/*
Theme Name: SetupMobile Heritage
Theme URI: https://setupmobile.com.br
Author: SetupMobile Team
Description: Tema editorial premium para reviews de gadgets e tecnologia.
Version: 1.0.0
Requires at least: 6.0
Text Domain: setupmobile-heritage
Tags: blog, dark, featured-images, two-columns, custom-logo, custom-menu
*/

:root {
    --bg-primary: #0c0a08;
    --bg-secondary: #141210;
    --bg-surface: #1a1714;
    --accent: #b8964e;
    --accent-light: #d4ae63;
    --accent-dim: #8c7340;
    --accent-glow: rgba(184, 150, 78, 0.12);
    --text-primary: #e6dfd2;
    --text-secondary: #98908a;
    --text-muted: #5c5752;
    --border: #262220;
    --border-accent: rgba(184, 150, 78, 0.2);
    --pros: #5a9c6b;
    --cons: #c45c5c;
    --radius: 3px;
    --radius-lg: 6px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Serif 4', Georgia, serif;
    --font-ui: 'DM Sans', system-ui, sans-serif;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --content-width: 1240px;
    --sidebar-width: 300px;
    --header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 5%, var(--accent) 50%, transparent 95%);
    z-index: 10001;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.screen-reader-text:focus {
    position: fixed; top: 0; left: 0; width: auto; height: auto; padding: 12px 24px;
    background: var(--accent); color: var(--bg-primary); font-family: var(--font-ui);
    font-size: 0.85rem; font-weight: 700; z-index: 100000; clip: auto;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, textarea { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 2rem 0 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin: 1.5rem 0 0.75rem; }
h4 { font-size: 1.15rem; margin: 1.25rem 0 0.5rem; }
p { margin-bottom: 1.25rem; }

.label {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.container { max-width: var(--content-width); margin: 0 auto; padding: 0 24px; }
.content-grid {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 48px;
    padding: 48px 0;
}

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 2.5rem 0;
    font-family: var(--font-ui);
    font-size: 0.55rem;
    color: var(--accent-dim);
    letter-spacing: 0.4em;
}
.ornament::before, .ornament::after {
    content: '';
    flex: 1;
    max-width: 140px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(12, 10, 8, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.4); }
.site-header.hidden { transform: translateY(-100%); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 24px;
    gap: 20px;
}

.site-branding { display: flex; flex-direction: column; flex-shrink: 0; }
.site-branding .custom-logo { height: 44px; width: auto; }
.site-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.site-title span { color: var(--accent); }
.site-description {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Desktop Nav */
.main-nav ul { display: flex; gap: 32px; align-items: center; }
.main-nav a {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 0;
    position: relative;
    transition: color var(--transition);
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--accent); }
.main-nav a:hover::after, .main-nav .current-menu-item a::after { width: 100%; }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.header-search {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}
.header-search:focus-within { border-color: var(--accent-dim); }
.header-search input[type="search"] {
    background: transparent;
    border: none;
    padding: 8px 14px;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    width: 180px;
    outline: none;
}
.header-search input[type="search"]::placeholder { color: var(--text-muted); }
.header-search button {
    background: none;
    border: none;
    border-left: 1px solid var(--border);
    padding: 8px 12px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}
.header-search button:hover { color: var(--accent); }

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-primary);
    transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 4px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -4px); }

/* Mobile Dropdown */
.mobile-menu {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}
.mobile-menu.active { max-height: 500px; }
.mobile-menu .mobile-menu-list { list-style: none; margin: 0; padding: 8px 0; }
.mobile-menu .mobile-menu-list li { border-bottom: 1px solid var(--border); }
.mobile-menu .mobile-menu-list li:last-child { border-bottom: none; }
.mobile-menu .mobile-menu-list a {
    display: block;
    padding: 14px 24px;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    transition: color var(--transition), padding-left var(--transition);
}
.mobile-menu .mobile-menu-list a:hover,
.mobile-menu .current-menu-item a {
    color: var(--accent);
    padding-left: 32px;
}

/* HERO */
.hero { padding: 48px 0 40px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    min-height: 480px;
}
.hero-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color var(--transition);
}
.hero-main:hover { border-color: var(--border-accent); }
.hero-main .hero-image {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: opacity 0.5s ease, transform 0.6s ease;
}
.hero-main:hover .hero-image { opacity: 0.65; transform: scale(1.03); }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12,10,8,0.95) 0%, rgba(12,10,8,0.6) 50%, transparent 100%);
}
.hero-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px;
}
.hero-content .post-category { margin-bottom: 14px; }
.hero-content .entry-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 10px;
    max-width: 640px;
}
.hero-content .entry-title a { color: var(--text-primary); }
.hero-content .entry-title a:hover { color: var(--accent); }
.hero-content .entry-excerpt {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 14px;
    line-height: 1.6;
}
.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.hero-side-card {
    flex: 1;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color var(--transition);
    min-height: 220px;
}
.hero-side-card:hover { border-color: var(--border-accent); }
.hero-side-card .hero-image {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: opacity 0.4s ease;
}
.hero-side-card:hover .hero-image { opacity: 0.55; }
.hero-side-card .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 28px;
    background: linear-gradient(to top, rgba(12,10,8,0.9) 0%, transparent 100%);
}
.hero-side-card .hero-content .post-category { margin-bottom: 10px; }
.hero-side-card .entry-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}
.hero-side-card .entry-title a {
    color: var(--text-primary);
    font-size: 1.1rem;
}
.hero-side-card .entry-title a:hover { color: var(--accent); }

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-sidebar { flex-direction: row; }
    .hero-side-card { min-height: 260px; }
}
@media (max-width: 768px) {
    .hero { padding: 24px 0; }
    .hero-sidebar { flex-direction: column; }
    .hero-side-card { min-height: 200px; }
}

/* Reviews Strip */
.reviews-strip { padding: 48px 0; }
.reviews-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-dim) var(--bg-surface);
    padding-bottom: 8px;
}
.reviews-scroll::-webkit-scrollbar { height: 4px; }
.reviews-scroll::-webkit-scrollbar-track { background: var(--bg-surface); border-radius: 4px; }
.reviews-scroll::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 4px; }
.reviews-scroll::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.rv-card {
    min-width: 280px;
    max-width: 280px;
    scroll-snap-align: start;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all var(--transition);
}
.rv-card:hover {
    border-color: var(--border-accent);
    background: var(--accent-glow);
    transform: translateY(-3px);
}
.rv-card .rv-score {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.rv-card .rv-circle {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}
.rv-card .rv-label {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.rv-card .rv-product {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 8px;
}
.rv-card .rv-verdict {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rv-card .rv-pc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.rv-card .rv-pc .rv-pros-label {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pros);
    font-weight: 600;
}
.rv-card .rv-pc .rv-cons-label {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cons);
    font-weight: 600;
}
.rv-card .rv-pc ul {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
}
.rv-card .rv-pc li {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-left: 10px;
    position: relative;
}
.rv-card .rv-pc .rv-pros li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--pros);
    font-weight: 700;
}
.rv-card .rv-pc .rv-cons li::before {
    content: '\2212';
    position: absolute;
    left: 0;
    color: var(--cons);
    font-weight: 700;
}

/* Category Badge */
.post-category {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--border-accent);
    padding: 4px 12px;
    border-radius: 2px;
    background: var(--accent-glow);
}

/* Section Header */
.posts-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.posts-section-header h2 {
    font-size: 1.1rem;
    font-family: var(--font-ui);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0;
}
.section-link {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color var(--transition);
}
.section-link:hover { color: var(--accent); }

/* Post Cards Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.post-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}
.post-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.post-card:nth-child(2) { animation-delay: 0.08s; }
.post-card:nth-child(3) { animation-delay: 0.16s; }
.post-card:nth-child(4) { animation-delay: 0.24s; }
.post-card:nth-child(5) { animation-delay: 0.32s; }
.post-card:nth-child(6) { animation-delay: 0.4s; }

.post-card .card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.post-card .card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.post-card:hover .card-image img { transform: scale(1.05); }
.post-card .card-image .post-category {
    position: absolute;
    top: 16px; left: 16px;
    z-index: 2;
}
.post-card .card-image .card-rating {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(12, 10, 8, 0.85);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent);
    z-index: 2;
}
.post-card .card-content { padding: 20px 24px 24px; }
.post-card .entry-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}
.post-card .entry-title a { color: var(--text-primary); }
.post-card .entry-title a:hover { color: var(--accent); }
.post-card .entry-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card .card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--text-muted);
}
.post-card .card-meta .meta-dot {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* SINGLE POST */
.single-post-header {
    padding: 60px 24px 0;
    max-width: var(--content-width);
    margin: 0 auto;
}
.single-post-header .post-category { margin-bottom: 16px; }
.single-post-header .entry-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    max-width: 800px;
}
.single-review-subtitle {
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.single-review-subtitle strong { color: var(--text-primary); }
.inline-rating { color: var(--accent); font-weight: 700; }

.single-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    margin-bottom: 32px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.meta-left { display: flex; align-items: center; gap: 12px; }
.author-avatar-small img {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-accent);
}
.meta-author-info { display: flex; flex-direction: column; gap: 2px; }
.meta-author-info .author-name {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--accent);
}
.meta-author-info .meta-date {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
}
.meta-right { display: flex; align-items: center; gap: 20px; }
.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-muted);
}
.meta-item svg { opacity: 0.6; }

.single-featured-image {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto 40px;
    padding: 0 24px;
}
.single-featured-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

/* Entry Content */
.entry-content { font-size: 1.05rem; line-height: 1.8; }
.entry-content > *:first-child::first-letter {
    font-family: var(--font-display);
    font-size: 3.5em;
    float: left;
    line-height: 0.8;
    margin-right: 12px;
    margin-top: 6px;
    color: var(--accent);
    font-weight: 700;
}
.entry-content h2 { padding-top: 1rem; border-top: 1px solid var(--border); }
.entry-content h2:first-child { border-top: none; padding-top: 0; }
.entry-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--border-accent);
}
.entry-content a:hover { text-decoration-color: var(--accent); }
.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--accent);
    background: var(--accent-glow);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}
.entry-content ul, .entry-content ol { margin: 1rem 0 1.25rem 1.5rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content img {
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}
.entry-content pre {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    overflow-x: auto;
    font-size: 0.85rem;
    margin: 1.5rem 0;
}
.entry-content code {
    font-size: 0.85em;
    background: var(--bg-surface);
    padding: 2px 6px;
    border-radius: 3px;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.entry-content th, .entry-content td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    text-align: left;
}
.entry-content th {
    background: var(--bg-surface);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
}

/* TOC */
.toc {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 2.5rem;
}
.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.toc-header .toc-title {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}
.toc-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.65rem;
    padding: 4px 10px;
    cursor: pointer;
    transition: all var(--transition);
}
.toc-toggle:hover { border-color: var(--accent-dim); color: var(--accent); }
.toc.collapsed .toc-list { display: none; }
.toc.collapsed .toc-toggle { transform: rotate(180deg); }
.toc ol { counter-reset: toc; list-style: none; margin: 0; padding: 0; }
.toc li { counter-increment: toc; margin-bottom: 8px; }
.toc li::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-dim);
    margin-right: 10px;
}
.toc li a {
    font-family: var(--font-ui);
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: none;
}
.toc li a:hover, .toc li a.active { color: var(--accent); }
.toc li a.active { font-weight: 600; }
.toc li.toc-sub { padding-left: 28px; }
.toc li.toc-sub::before { content: '\2014'; margin-right: 8px; }

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 2px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    z-index: 10002;
}

/* Review Summary */
.review-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, var(--bg-surface), rgba(184, 150, 78, 0.06));
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 2.5rem;
}
.review-score-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}
.review-score {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.review-score-label {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.review-stars { display: flex; gap: 3px; margin-bottom: 6px; }
.review-stars .star { font-size: 1.2rem; }
.review-stars .star.full { color: var(--accent); }
.review-stars .star.half { color: var(--accent-light); }
.review-stars .star.empty { color: var(--text-muted); opacity: 0.4; }
.review-summary-text .label { display: block; margin-bottom: 4px; }
.review-summary-text .verdict {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
}

/* Pros & Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 2.5rem 0;
}
.pros-box, .cons-box {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.pros-box { background: rgba(90, 156, 107, 0.06); border-color: rgba(90, 156, 107, 0.2); }
.cons-box { background: rgba(196, 92, 92, 0.06); border-color: rgba(196, 92, 92, 0.2); }
.pros-cons h4 {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.pros-box h4 { color: var(--pros); }
.cons-box h4 { color: var(--cons); }
.pros-cons ul { margin: 0; padding: 0; list-style: none; }
.pros-cons li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}
.pros-cons li::before { position: absolute; left: 0; top: 2px; font-size: 0.8rem; }
.pros-box li::before { content: '\2713'; color: var(--pros); font-weight: 700; }
.cons-box li::before { content: '\2715'; color: var(--cons); font-weight: 700; }

/* Affiliate Box */
.affiliate-box {
    display: flex;
    align-items: center;
    gap: 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 2.5rem 0;
}
.affiliate-box .product-image {
    width: 120px; height: 120px;
    object-fit: contain;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    padding: 12px;
    flex-shrink: 0;
}
.affiliate-box .product-info { flex: 1; }
.affiliate-box .product-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.affiliate-box .product-price {
    font-family: var(--font-ui);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}
.affiliate-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-amazon, .btn-ml {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}
.btn-amazon { background: #ff9900; color: #111; }
.btn-amazon:hover { background: #ffad33; color: #111; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255,153,0,0.3); }
.btn-ml { background: #ffe600; color: #111; }
.btn-ml:hover { background: #fff033; color: #111; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255,230,0,0.3); }

/* Post Tags */
.post-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 2rem 0 0.5rem;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}
.tag-link {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 5px 14px;
    border-radius: 2px;
    transition: all var(--transition);
}
.tag-link:hover { color: var(--accent); border-color: var(--border-accent); background: var(--accent-glow); }

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin: 2.5rem 0;
}
.author-avatar-wrap { flex-shrink: 0; }
.author-box .author-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 2px solid var(--border-accent);
}
.author-box .author-info .label { margin-bottom: 6px; }
.author-box .author-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.author-box .author-bio { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* Related Posts */
.related-posts { margin: 3rem 0; }
.related-posts h3 { font-size: 1.3rem; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Sidebar */
.sidebar { position: sticky; top: calc(var(--header-height) + 24px); }
.widget {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}
.widget-title {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.widget_search .search-form { display: flex; gap: 8px; }
.widget_search .search-form label { flex: 1; display: block; }
.widget_search .screen-reader-text { display: none; }
.widget_search input[type="search"] {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font-ui);
    box-sizing: border-box;
}
.widget_search input[type="search"]:focus { outline: none; border-color: var(--accent-dim); }
.widget_search .search-submit {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius);
    padding: 10px 16px;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}
.widget_search .search-submit:hover { background: var(--accent-light); }

.sidebar-posts { list-style: none; }
.sidebar-posts li {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.sidebar-posts li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-posts li:first-child { padding-top: 0; }
.sidebar-posts .post-thumb {
    width: 72px; height: 72px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}
.sidebar-posts .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-posts .post-info { flex: 1; min-width: 0; }
.sidebar-posts .post-info a {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-posts .post-info a:hover { color: var(--accent); }
.sidebar-posts .post-meta {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.sidebar-posts .view-count {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    color: var(--accent-dim);
    font-weight: 600;
}

.widget_categories ul { list-style: none; }
.widget_categories li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.widget_categories li:last-child { border-bottom: none; }
.widget_categories a {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.widget_categories a:hover { color: var(--accent); }
.widget_categories .cat-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 2px;
}

.widget_newsletter {
    background: linear-gradient(135deg, var(--bg-surface), rgba(184, 150, 78, 0.08));
    border-color: var(--border-accent);
}
.widget_newsletter p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input[type="email"] {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.88rem;
}
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--accent-dim); }
.newsletter-form button {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius);
    padding: 10px 20px;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}
.newsletter-form button:hover { background: var(--accent-light); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 48px 0 24px;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.comments-area h3 { font-size: 1.3rem; margin-bottom: 24px; }
.comment-list { list-style: none; }
.comment { padding: 20px 0; border-bottom: 1px solid var(--border); }
.comment .comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment .comment-author img { width: 40px; height: 40px; border-radius: 50%; }
.comment .comment-author .fn { font-family: var(--font-ui); font-weight: 600; font-size: 0.9rem; }
.comment .comment-date { font-family: var(--font-ui); font-size: 0.72rem; color: var(--text-muted); }
.comment .comment-body { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; }
.comment-respond { margin-top: 2rem; }
.comment-respond h3 { font-size: 1.1rem; }
.comment-respond label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    margin-top: 16px;
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.92rem;
}
.comment-respond input:focus,
.comment-respond textarea:focus { outline: none; border-color: var(--accent-dim); }
.comment-respond textarea { min-height: 120px; resize: vertical; }
.comment-respond .submit {
    margin-top: 16px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius);
    padding: 12px 28px;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}
.comment-respond .submit:hover { background: var(--accent-light); }

/* Breadcrumb */
.breadcrumb {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; color: var(--border); }

/* Archive */
.archive-header { padding: 60px 0 40px; text-align: center; }
.archive-header .archive-title { font-size: 2rem; margin-bottom: 8px; }
.archive-header .archive-description { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* 404 */
.page-404 { text-align: center; padding: 120px 24px; max-width: 600px; margin: 0 auto; }
.page-404 .error-code {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    opacity: 0.3;
}
.page-404 h1 { font-size: 2rem; margin: 16px 0; }
.page-404 p { color: var(--text-secondary); margin-bottom: 32px; }
.page-404 .btn {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 12px 32px;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Footer */
.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}
.footer-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 60px 24px 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-col h4 {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}
.footer-col p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-family: var(--font-ui); font-size: 0.85rem; color: var(--text-secondary); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 32px; right: 32px;
    width: 44px; height: 44px;
    background: var(--bg-surface);
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
    pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--accent); color: var(--bg-primary); border-color: var(--accent); }

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.animate-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
    .content-grid { grid-template-columns: 1fr; }
    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav { display: none !important; }
    .mobile-menu { display: block; }
    .menu-toggle { display: flex !important; }
    .header-search { flex: 1; max-width: 220px; }
    .header-search input[type="search"] { width: 100%; min-width: 0; padding: 8px 10px; font-size: 0.82rem; }
    .header-search button { padding: 8px 10px; }
    .posts-grid { grid-template-columns: 1fr; }
    .pros-cons { grid-template-columns: 1fr; }
    .affiliate-box { flex-direction: column; text-align: center; }
    .related-grid { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .author-box { flex-direction: column; text-align: center; }
    .author-box .author-avatar-wrap { display: flex; justify-content: center; }
    .single-post-header { padding-top: 32px; }
    .single-post-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
    .meta-right { gap: 14px; }
}

@media (max-width: 480px) {
    :root { --header-height: 64px; }
    .site-title { font-size: 1.2rem; }
    .review-summary { flex-direction: column; text-align: center; }
    .header-search { max-width: 160px; }
    .header-search input[type="search"] { padding: 7px 8px; font-size: 0.78rem; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #3a342c; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }