/* ────────────────────────────────────────────────────────
   NeuroHarvest — Main CSS v2.0
   Dark theme: bg #0d0d0d | cards #111 | accent #00e5cc
   ──────────────────────────────────────────────────────── */

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

body {
    background: #0d0d0d !important;
    color: #e0e0e0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; background: #0d0d0d; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ── Hide default TT5 chrome ───────────────────────────── */
.wp-block-template-part,
header.wp-block-template-part,
footer.wp-block-template-part,
.site-header, .site-footer,
#masthead, #colophon,
.wp-site-blocks > header,
.wp-site-blocks > footer { display: none !important; }
.wp-site-blocks { padding: 0 !important; margin: 0 !important; }
.wp-site-blocks > main { margin: 0 !important; }

/* ── Site Header ───────────────────────────────────────── */
.nh-site-header {
    background: #111;
    border-bottom: 2px solid #00e5cc;
    position: sticky;
    top: 0;
    z-index: 200;
}
.admin-bar .nh-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .nh-site-header { top: 46px; } }

.nh-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nh-logo {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.nh-logo span { color: #00e5cc; }
.nh-logo:hover { text-decoration: none; color: #fff; }

.nh-site-nav .nh-nav-list {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.nh-site-nav .nh-nav-list li a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 5px;
    transition: color 0.18s, background 0.18s;
    white-space: nowrap;
}
.nh-site-nav .nh-nav-list li a:hover { color: #fff; background: #1a1a1a; }
.nh-site-nav .nh-nav-list li.current-menu-item a { color: #00e5cc; }
@media (max-width: 600px) { .nh-site-nav { display: none; } }

/* ── Hero ──────────────────────────────────────────────── */
.nh-hero {
    background: linear-gradient(135deg, #0d0d0d 0%, #0a1a18 50%, #0d0d0d 100%);
    border-bottom: 1px solid #1a1a1a;
    padding: 60px 24px;
    text-align: center;
}
.nh-hero-eyebrow {
    display: inline-block;
    background: rgba(0,229,204,0.08);
    border: 1px solid rgba(0,229,204,0.25);
    color: #00e5cc;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}
.nh-hero h1 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -1px;
}
.nh-hero h1 span { color: #00e5cc; }
.nh-hero p {
    color: #888;
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.nh-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Stat Bar ──────────────────────────────────────────── */
.nh-stat-bar {
    background: #111;
    border-bottom: 1px solid #1a1a1a;
    padding: 12px 24px;
}
.nh-stat-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.nh-stat { text-align: center; }
.nh-stat-num { font-size: 1.2rem; font-weight: 900; color: #00e5cc; }
.nh-stat-label { font-size: 0.75rem; color: #555; margin-left: 6px; }

/* ── Category Pills ────────────────────────────────────── */
.nh-cat-bar {
    background: #0d0d0d;
    border-bottom: 1px solid #1a1a1a;
    padding: 10px 24px;
    position: sticky;
    top: 62px;
    z-index: 100;
}
.admin-bar .nh-cat-bar { top: 94px; }
.nh-cat-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.nh-cat-bar-inner::-webkit-scrollbar { display: none; }
.nh-cat-pill {
    display: inline-block;
    flex-shrink: 0;
    background: #161616;
    border: 1px solid #222;
    color: #888;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.nh-cat-pill:hover,
.nh-cat-pill.active {
    background: #00e5cc;
    border-color: #00e5cc;
    color: #000;
    text-decoration: none;
}

/* ── Breadcrumb ────────────────────────────────────────── */
.nh-breadcrumb {
    background: #0d0d0d;
    border-bottom: 1px solid #1a1a1a;
}
.nh-breadcrumb-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 24px;
    font-size: 0.78rem;
    color: #555;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.nh-breadcrumb-inner a { color: #777; text-decoration: none; transition: color 0.15s; }
.nh-breadcrumb-inner a:hover { color: #00e5cc; }
.nh-breadcrumb-sep { color: #333; }
.nh-breadcrumb-current { color: #bbb; }

/* ── Page Wrap (sidebar + main) ────────────────────────── */
.nh-page-wrap {
    max-width: 1400px;
    margin: 28px auto 0;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}
@media (max-width: 960px) {
    .nh-page-wrap { grid-template-columns: 1fr; }
    .nh-sidebar { order: 2; position: static !important; }
    .nh-main-content { order: 1; }
}

/* ── Sidebar ───────────────────────────────────────────── */
.nh-sidebar { position: sticky; top: 110px; }
.nh-sidebar-box {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 18px 16px;
    margin-bottom: 16px;
}
.nh-sidebar-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #00e5cc;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1e1e1e;
}
.nh-sidebar-links { list-style: none; margin: 0; padding: 0; }
.nh-sidebar-links li { margin: 1px 0; }
.nh-sidebar-links li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    border-radius: 5px;
    color: #888;
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.15s, background 0.15s;
}
.nh-sidebar-links li a:hover { color: #fff; background: #1a1a1a; }
.nh-sidebar-links li a span { color: #444; font-size: 0.72rem; }
.nh-sidebar-disclaimer {
    font-size: 0.75rem;
    color: #555;
    line-height: 1.6;
    padding: 12px;
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
}
.nh-sidebar-disclaimer strong { color: #777; }

/* ── Section Title ─────────────────────────────────────── */
.nh-section-title {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #00e5cc;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nh-section-title span { color: #444; font-size: 0.8rem; font-weight: 400; font-family: 'Inter', sans-serif; }

/* ── Post / Article Grid ───────────────────────────────── */
.nh-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 1100px) { .nh-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .nh-post-grid { grid-template-columns: 1fr; } }

/* ── Post Card ─────────────────────────────────────────── */
.nh-post-card {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.nh-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 229, 204, 0.12);
    border-color: #00e5cc;
}

.nh-card-thumb {
    height: 140px;
    background: #161616;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    flex-shrink: 0;
}
.nh-card-thumb-icon { font-size: 2.8rem; opacity: 0.6; transition: transform 0.3s; }
.nh-post-card:hover .nh-card-thumb-icon { transform: scale(1.1); }

.nh-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #00e5cc;
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 9px;
    border-radius: 50px;
    text-transform: uppercase;
}

.nh-card-stars {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 0.75rem;
    color: #f5a623;
    letter-spacing: 1px;
}

.nh-card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nh-card-cat {
    font-size: 0.68rem;
    font-weight: 700;
    color: #00e5cc;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
}
.nh-card-cat:hover { color: #00b8a8; text-decoration: none; }

.nh-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ddd;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.nh-card-title a { color: inherit; text-decoration: none; transition: color 0.15s; }
.nh-card-title a:hover { color: #00e5cc; }

.nh-card-meta {
    font-size: 0.72rem;
    color: #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #1a1a1a;
    margin-top: auto;
}
.nh-card-read-more {
    font-size: 0.75rem;
    font-weight: 600;
    color: #00e5cc;
    text-decoration: none;
    transition: color 0.15s;
}
.nh-card-read-more:hover { color: #fff; text-decoration: none; }

/* ── Buttons ───────────────────────────────────────────── */
.nh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.18s;
    cursor: pointer;
    border: none;
}
.nh-btn-primary {
    background: #00e5cc;
    color: #000;
    box-shadow: 0 4px 20px rgba(0,229,204,0.3);
}
.nh-btn-primary:hover {
    background: #00b8a8;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,229,204,0.4);
    text-decoration: none;
}
.nh-btn-outline {
    background: transparent;
    color: #00e5cc;
    border: 1px solid #00e5cc;
}
.nh-btn-outline:hover {
    background: rgba(0,229,204,0.1);
    color: #00e5cc;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ── Pagination ────────────────────────────────────────── */
.nh-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #1a1a1a;
}
.nh-pagination a,
.nh-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.82rem;
    transition: border-color 0.18s, color 0.18s;
}
.nh-pagination a:hover { border-color: #00e5cc; color: #00e5cc; }
.nh-pagination .current { background: #00e5cc; border-color: #00e5cc; color: #000; font-weight: 700; }
.nh-pagination .dots { border-color: transparent; background: transparent; }

/* ── Single Article ────────────────────────────────────── */
.nh-single-wrap {
    max-width: 1400px;
    margin: 28px auto 0;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 960px) {
    .nh-single-wrap { grid-template-columns: 1fr; }
    .nh-single-sidebar { display: none; }
}

.nh-article-header { margin-bottom: 28px; }

.nh-article-cat-badge {
    display: inline-block;
    background: rgba(0,229,204,0.08);
    border: 1px solid rgba(0,229,204,0.25);
    color: #00e5cc;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    text-decoration: none;
    margin-bottom: 14px;
}
.nh-article-cat-badge:hover { color: #00e5cc; text-decoration: none; }

.nh-article-title {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 18px;
    letter-spacing: -0.5px;
}

.nh-article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: #555;
    padding-bottom: 20px;
    border-bottom: 1px solid #1a1a1a;
}
.nh-article-meta-stars { color: #f5a623; letter-spacing: 2px; }

/* ── Article Content ───────────────────────────────────── */
.nh-article-content {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 32px 36px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #b0b0b0;
}
@media (max-width: 600px) { .nh-article-content { padding: 20px 18px; } }

.nh-article-content h2 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin: 36px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1e1e1e;
}
.nh-article-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ccc;
    margin: 24px 0 10px;
}
.nh-article-content p { margin: 0 0 16px; }
.nh-article-content strong { color: #e0e0e0; }
.nh-article-content a { color: #00e5cc; text-decoration: none; }
.nh-article-content a:hover { text-decoration: underline; }
.nh-article-content ul,
.nh-article-content ol { padding-left: 22px; margin: 0 0 16px; }
.nh-article-content li { margin-bottom: 5px; }
.nh-article-content hr {
    border: none;
    border-top: 1px solid #1e1e1e;
    margin: 32px 0;
}
.nh-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.875rem;
}
.nh-article-content table th {
    background: #1a1a1a;
    color: #ccc;
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid #00e5cc;
}
.nh-article-content table td {
    padding: 10px 14px;
    border-bottom: 1px solid #1a1a1a;
    color: #b0b0b0;
}
.nh-article-content table tr:nth-child(even) td { background: #0d0d0d; }
.nh-article-content blockquote {
    border-left: 3px solid #00e5cc;
    background: rgba(0,229,204,0.04);
    margin: 24px 0;
    padding: 14px 20px;
    border-radius: 0 7px 7px 0;
    color: #888;
    font-style: italic;
}

/* Affiliate disclosure in articles */
.affiliate-disclosure {
    background: #0d0d0d;
    border-left: 3px solid #333;
    border-radius: 0 5px 5px 0;
    padding: 10px 14px;
    font-size: 0.78rem;
    color: #666;
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.5;
}
.affiliate-disclosure a { color: #00e5cc; }

/* ── Single Sidebar (TOC + categories) ─────────────────── */
.nh-single-sidebar { position: sticky; top: 110px; }

/* ── Tags ──────────────────────────────────────────────── */
.nh-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
}
.nh-tag {
    background: #161616;
    border: 1px solid #2a2a2a;
    color: #777;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.15s;
}
.nh-tag:hover { border-color: #00e5cc; color: #00e5cc; text-decoration: none; }

/* ── Related Articles ──────────────────────────────────── */
.nh-related { margin-top: 36px; padding-top: 28px; border-top: 1px solid #1a1a1a; }
.nh-related-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1e1e1e;
    letter-spacing: 0.2px;
}
.nh-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 700px) { .nh-related-grid { grid-template-columns: 1fr; } }
.nh-related-card {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 14px;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}
.nh-related-card:hover { border-color: #00e5cc; background: #111; text-decoration: none; }
.nh-related-card-icon { font-size: 1.4rem; margin-bottom: 8px; opacity: 0.7; }
.nh-related-card-title { font-size: 0.8rem; font-weight: 600; color: #bbb; line-height: 1.4; }
.nh-related-card:hover .nh-related-card-title { color: #00e5cc; }

/* ── Site Footer ───────────────────────────────────────── */
.nh-site-footer {
    background: #0a0a0a;
    border-top: 1px solid #161616;
    padding: 40px 24px 24px;
    margin-top: 20px;
}
.nh-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #161616;
}
@media (max-width: 700px) { .nh-footer-inner { grid-template-columns: 1fr; gap: 28px; } }
.nh-footer-brand .nh-logo { display: block; margin-bottom: 10px; }
.nh-footer-brand p { font-size: 0.82rem; color: #555; line-height: 1.7; max-width: 280px; }
.nh-footer-brand .nh-footer-disclaimer {
    margin-top: 12px;
    font-size: 0.72rem;
    color: #444;
    line-height: 1.6;
}
.nh-footer h4 { font-size: 0.68rem; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: #00e5cc; margin: 0 0 14px; }
.nh-footer ul { list-style: none; margin: 0; padding: 0; }
.nh-footer ul li { margin-bottom: 8px; }
.nh-footer ul li a { color: #555; font-size: 0.82rem; text-decoration: none; transition: color 0.15s; }
.nh-footer ul li a:hover { color: #00e5cc; }
.nh-footer-bottom {
    max-width: 1400px;
    margin: 20px auto 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.72rem;
    color: #333;
}
.nh-footer-bottom a { color: #444; text-decoration: none; }
.nh-footer-bottom a:hover { color: #00e5cc; }
