/* ============================================
   Blog CSS — sherlocbot.com
   ============================================ */

:root {
    /* Blog vars */
    --c-bg: #0a0e17;
    --c-surface: #111827;
    --c-surface-2: #1a2235;
    --c-border: #1e293b;
    --c-text: #e2e8f0;
    --c-text-muted: #94a3b8;
    --c-accent: #3b82f6;
    --c-accent-hover: #60a5fa;
    --c-accent-glow: rgba(59, 130, 246, 0.15);
    --c-white: #ffffff;
    --font-main: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --container: 1140px;
    --container-narrow: 760px;
    --transition: 0.2s ease;
    /* Main site vars (for shared header/footer) */
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #1a1a1d;
    --bg-card: #151517;
    --accent-primary: #00d4aa;
    --accent-secondary: #00b894;
    --accent-glow: rgba(0, 212, 170, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a5;
    --text-muted: #6b6b70;
    --border-color: #2a2a2d;
    --border-light: #3a3a3d;
    --gradient-accent: linear-gradient(135deg, #00d4aa 0%, #00b894 50%, #009975 100%);
    --shadow-glow: 0 0 40px rgba(0, 212, 170, 0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-main);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.7;
    font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-accent-hover); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--container-narrow); }

/* ---- Header (shared with main site) ---- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}
header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}
header .logo:hover {
    color: var(--text-primary);
}
header .logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--bg-primary);
}
header .logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}
header .logo-text span {
    color: var(--accent-primary);
}
header nav {
    display: flex;
    align-items: center;
}
header nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}
header nav ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}
header nav ul li::before {
    display: none;
    content: none;
}
header nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}
header nav a:hover {
    color: var(--accent-primary);
}
header .header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-accent);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.3s, box-shadow 0.3s;
}
header .header-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--bg-primary);
}
header .mobile-menu {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-primary);
}

/* ---- Breadcrumbs ---- */
.breadcrumbs { padding: 16px 0; padding-top: 80px; }
.breadcrumbs__list { display: flex; gap: 8px; list-style: none; font-size: 14px; color: var(--c-text-muted); flex-wrap: wrap; }
.breadcrumbs__list li::after { content: '/'; margin-left: 8px; opacity: 0.4; }
.breadcrumbs__list li:last-child::after { display: none; }
.breadcrumbs__list a { color: var(--c-text-muted); }
.breadcrumbs__list a:hover { color: var(--c-accent); }

/* ---- Article Hero ---- */
.article-hero { padding: 48px 0 0; }
.article-hero__meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--c-text-muted); margin-bottom: 16px; }
.article-hero__separator { opacity: 0.4; }
.article-hero h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 700; line-height: 1.2; margin-bottom: 32px; color: var(--c-white); max-width: 800px; }
.article-hero__image { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1200/630; background: var(--c-surface); }
.article-hero__image img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Article Content ---- */
.article-content { padding: 48px 0; }
.article-content h2 { font-size: 26px; font-weight: 700; color: var(--c-white); margin: 48px 0 20px; line-height: 1.3; }
.article-content h3 { font-size: 21px; font-weight: 600; color: var(--c-white); margin: 36px 0 16px; line-height: 1.3; }
.article-content p { margin-bottom: 18px; color: var(--c-text); }
.article-content ul { margin: 0 0 24px 0; padding-left: 0; list-style: none; }
.article-content ul li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.article-content ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); opacity: 0.7; }
.article-content .inline-link { color: var(--c-accent); font-weight: 500; border-bottom: 1px solid transparent; }
.article-content .inline-link:hover { border-bottom-color: var(--c-accent); }

/* ---- Article Figures ---- */
.article-figure { margin: 36px 0; border-radius: var(--radius); overflow: hidden; background: var(--c-surface); }
.article-figure img { width: 100%; }

/* ---- CTA Blocks ---- */
.cta-block { margin: 40px 0; }
.cta-block__inner {
    background: linear-gradient(135deg, var(--c-surface-2), var(--c-surface));
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}
.cta-block__text { font-size: 20px; font-weight: 600; color: var(--c-white); margin-bottom: 20px; }
.cta-block__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition);
    cursor: pointer;
}
.cta-btn--primary {
    background: var(--c-accent);
    color: var(--c-white);
    box-shadow: 0 0 24px var(--c-accent-glow);
}
.cta-btn--primary:hover { background: var(--c-accent-hover); color: var(--c-white); transform: translateY(-2px); box-shadow: 0 4px 32px var(--c-accent-glow); }
.cta-btn--secondary {
    background: transparent;
    color: var(--c-accent);
    border: 1px solid var(--c-accent);
}
.cta-btn--secondary:hover { background: var(--c-accent-glow); color: var(--c-accent-hover); transform: translateY(-2px); }

/* ---- Author E-E-A-T ---- */
.article-author { padding: 0 0 48px; }
.article-author__card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}
.article-author__avatar img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.article-author__name { font-weight: 600; color: var(--c-white); font-size: 16px; margin-bottom: 4px; }
.article-author__bio { font-size: 14px; color: var(--c-text-muted); }
.article-author__dates { margin-top: 16px; font-size: 13px; color: var(--c-text-muted); display: flex; gap: 24px; }

/* ---- Related Articles ---- */
.related-articles { padding: 48px 0; border-top: 1px solid var(--c-border); }
.related-articles h2 { font-size: 24px; font-weight: 700; color: var(--c-white); margin-bottom: 28px; }
.related-articles__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* ---- Hub Page ---- */
.hub-hero { padding: 56px 0 40px; text-align: center; }
.hub-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; color: var(--c-white); margin-bottom: 12px; }
.hub-hero__subtitle { font-size: 18px; color: var(--c-text-muted); max-width: 560px; margin: 0 auto; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; padding-bottom: 64px; }
.hub-card {
    display: flex;
    flex-direction: column;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    color: var(--c-text);
    text-decoration: none;
}
.hub-card:hover { border-color: var(--c-accent); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.hub-card__image { aspect-ratio: 16/9; overflow: hidden; background: var(--c-surface-2); }
.hub-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.hub-card:hover .hub-card__image img { transform: scale(1.05); }
.hub-card__body { padding: 20px 24px 24px; }
.hub-card__body time { font-size: 13px; color: var(--c-text-muted); }
.hub-card__body h2 { font-size: 19px; font-weight: 600; color: var(--c-white); margin: 8px 0 10px; line-height: 1.35; }
.hub-card__body p { font-size: 15px; color: var(--c-text-muted); line-height: 1.5; }

/* ---- Footer (shared with main site) ---- */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}
footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}
footer .footer-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}
footer .footer-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 14px;
}
footer .footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
footer .footer-section ul li {
    margin-bottom: 12px;
    padding: 0;
}
footer .footer-section ul li::before {
    display: none;
    content: none;
}
footer .footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
footer .footer-section a:hover {
    color: var(--accent-primary);
}
footer .footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
footer .footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}
footer .legal-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
footer .legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}
footer .legal-links a:hover {
    color: var(--accent-primary);
}

/* ---- Responsive ---- */
@media (max-width: 968px) {
    header nav ul { display: none; }
    header .mobile-menu { display: block; }
    header .header-cta { display: none; }
}
@media (max-width: 768px) {
    body { font-size: 16px; }
    .article-hero { padding: 32px 0 0; }
    .article-content h2 { font-size: 22px; margin-top: 36px; }
    .article-content h3 { font-size: 19px; }
    .cta-block__inner { padding: 24px 16px; }
    .cta-block__buttons { flex-direction: column; }
    .cta-btn { justify-content: center; }
    .article-author__card { flex-direction: column; text-align: center; }
    .article-author__dates { flex-direction: column; gap: 4px; }
    .hub-grid { grid-template-columns: 1fr; }
    footer .footer-bottom { flex-direction: column; text-align: center; }
}
