/*
Theme Name: AV Consultant Blog
Theme URI: https://audiovisualconsultant.blog
Author: Crunchy Tech
Description: Commercial AV Intelligence — News, Guides & Industry Insights
Version: 1.0.0
Text Domain: avblog
*/

/* === CSS CUSTOM PROPERTIES === */
:root {
    --primary: #0D1B2A;
    --primary-light: #1B3A5C;
    --secondary: #1B98E0;
    --accent-green: #00C853;
    --surface: #F5F7FA;
    --surface-white: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-muted: #6B7280;
    --border: #E5E7EB;
}

body {
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    background: var(--surface);
    color: var(--text-dark);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* === HEADER === */
#site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--primary);
    box-shadow: 0 1px 8px rgba(0,0,0,0.15);
}
#site-header .header-inner {
    max-width: 80rem; margin: 0 auto;
    padding: 0 1rem; display: flex;
    align-items: center; justify-content: space-between;
    height: 64px; gap: 16px;
}
@media(min-width:1024px) { #site-header .header-inner { padding: 0 2rem; } }

/* Desktop/Mobile nav toggle */
@media(max-width:1023px) { #hamburger-btn { display:flex !important; } #desktop-nav { display:none !important; } }
@media(min-width:1024px) { #hamburger-btn { display:none !important; } #desktop-nav { display:flex !important; } }

/* Nav links */
#desktop-nav ul { list-style:none; display:flex; align-items:center; gap:2px; margin:0 0 0 24px; padding:0; }
#desktop-nav a, #desktop-nav a:link, #desktop-nav a:visited, #desktop-nav a:active {
    color: #fff !important; text-decoration: none !important;
    font-weight: 600; font-size: 0.8125rem; padding: 6px 10px;
    border-radius: 6px; transition: background 0.2s, color 0.2s;
    white-space: nowrap; display: inline-block;
}
#desktop-nav a:hover { background: rgba(27,152,224,0.2); color: #1B98E0 !important; }

/* Drawer */
#drawer-overlay { position:fixed;inset:0;background:rgba(0,0,0,0.6);z-index:200;opacity:0;pointer-events:none;transition:opacity 0.3s; }
#drawer-overlay.open { opacity:1;pointer-events:auto; }
#mobile-drawer { position:fixed;top:0;right:0;bottom:0;width:300px;max-width:85vw;background:var(--primary);z-index:201;padding:24px;overflow-y:auto;transform:translateX(100%);transition:transform 0.3s ease; }
#mobile-drawer.open { transform:translateX(0); }

/* === HERO === */
.hero-section {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: linear-gradient(135deg, #0D1B2A 0%, #1B3A5C 50%, #1B98E0 100%);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(13,27,42,0.97) 0%, rgba(13,27,42,0.8) 40%, rgba(13,27,42,0.5) 70%, rgba(13,27,42,0.35) 100%);
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 2;
    padding-bottom: 2.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* === ARTICLE CARDS === */
.post-card {
    background: var(--surface-white);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.post-card-img {
    width: 100%; height: 200px;
    object-fit: cover; display: block;
}
.post-card-body { padding: 1.25rem; }
.post-card-category {
    display: inline-block;
    font-size: 0.6875rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--secondary); margin-bottom: 0.5rem;
    text-decoration: none;
}
.post-card-category:hover { color: var(--accent-green); }
.post-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem; font-weight: 700;
    line-height: 1.3; margin: 0 0 0.5rem;
    color: var(--text-dark);
}
.post-card-title a { color: inherit; text-decoration: none; }
.post-card-title a:hover { color: var(--secondary); }
.post-card-meta {
    font-size: 0.75rem; color: var(--text-muted);
    display: flex; align-items: center; gap: 12px;
}
.post-card-excerpt {
    font-size: 0.875rem; color: var(--text-muted);
    line-height: 1.6; margin: 0.75rem 0 0;
}

/* === SINGLE POST === */
.article-header { margin-bottom: 2rem; }
.article-title {
    font-family: 'Inter', sans-serif;
    font-size: 2rem; font-weight: 800;
    line-height: 1.2; margin: 0 0 1rem;
    color: var(--text-dark);
}
@media(min-width:768px) { .article-title { font-size: 2.5rem; } }

.article-content {
    font-size: 1.0625rem; line-height: 1.8;
    color: #374151;
}
.article-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem; font-weight: 800;
    margin: 2.5rem 0 1rem; color: var(--text-dark);
    border-left: 4px solid var(--secondary);
    padding-left: 12px;
}
.article-content h3 {
    font-size: 1.25rem; font-weight: 700;
    margin: 2rem 0 0.75rem; color: var(--primary-light);
}
.article-content p { margin: 0 0 1.25rem; }
.article-content a { color: var(--secondary); text-decoration: underline; }
.article-content a:hover { color: var(--accent-green); }
.article-content blockquote {
    border-left: 4px solid var(--accent-green);
    background: #F0FFF4; padding: 1rem 1.5rem;
    margin: 1.5rem 0; border-radius: 0 8px 8px 0;
    font-style: normal; color: #1A1A2E;
}
.article-content ul, .article-content ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }

/* Featured image */
.featured-image-wrap {
    margin: -1rem -1rem 2rem;
    border-radius: 12px; overflow: hidden;
}
@media(min-width:768px) { .featured-image-wrap { margin: -1.5rem -1.5rem 2rem; } }
.featured-image-wrap img { width: 100%; height: auto; display: block; }

/* === AUTHOR BIO === */
.author-bio-card {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 1.5rem; background: var(--surface);
    border-radius: 12px; border: 1px solid var(--border);
}
.author-bio-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700; font-size: 1rem;
    color: var(--text-dark); margin-bottom: 4px;
}
.author-bio-role {
    font-size: 0.75rem; font-weight: 600;
    color: var(--secondary); text-transform: uppercase;
    letter-spacing: 0.03em; margin-bottom: 6px;
}
.author-bio-desc {
    font-size: 0.875rem; color: var(--text-muted);
    line-height: 1.5; margin: 0;
}

/* === SIDEBAR === */
.sidebar-widget {
    background: var(--surface-white);
    border-radius: 12px; padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
}
.sidebar-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted); margin: 0 0 1rem;
    display: flex; align-items: center; gap: 6px;
}

/* === CATEGORY CHIPS === */
.category-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 14px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700;
    color: #fff; text-decoration: none; white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.15s;
}
.category-chip:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

/* === FOOTER === */
.site-footer {
    background: var(--primary); color: rgba(255,255,255,0.6);
    padding: 3rem 0 1.5rem;
}
.site-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.site-footer a:hover { color: var(--secondary); }

/* === READING TIME === */
.reading-time {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.75rem; color: var(--text-muted);
}
