/*
Theme Name: HustleHub Child Theme
Theme URI: https://hustlehub.ca
Description: Premium dark-themed child theme for HustleHub - Canadian personal finance and investing blog
Author: CJ Singh
Author URI: https://hustlehub.ca
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hustlehub-child
*/

/* ============================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================ */
:root {
    /* Backgrounds */
    --bg-primary: #0F1419;
    --bg-secondary: #1A1F26;
    --bg-tertiary: #242B35;
    
    /* Typography */
    --text-primary: #E8EAED;
    --text-secondary: #9BA3AF;
    --text-tertiary: #6B7280;
    
    /* Accents */
    --accent-primary: #3B82F6;
    --accent-secondary: #10B981;
    --accent-warning: #F59E0B;
    --accent-danger: #EF4444;
    
    /* Functional */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --shadow-elevated: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.3);
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    
    /* Layout */
    --container-max: 1200px;
    --article-max-width: 720px;
    --header-height: 64px;
}

/* ============================================
   GLOBAL OVERRIDES
   ============================================ */
body {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Prevent horizontal scroll */
html {
    overflow-x: hidden;
    width: 100%;
}

/* Links */
a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2563EB;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
}

/* ============================================
   HEADER CUSTOMIZATION
   ============================================ */
.site-header,
.main-navigation {
    background: rgba(26, 31, 38, 0.95) !important;
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.inside-header {
    padding: 0 24px;
}

.main-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.main-title a {
    color: var(--text-primary) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-title a:hover {
    opacity: 0.8;
}

/* Logo icon (if using text logo) */
.site-logo::before {
    content: 'H';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    margin-right: 8px;
}

/* Navigation */
.main-navigation .main-nav ul li a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
}

/* Mobile menu */
.menu-toggle {
    color: var(--text-primary);
    background: transparent;
    border: none;
}

.menu-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ============================================
   HOMEPAGE HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.05));
    border-bottom: 1px solid var(--border-subtle);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-md);
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-primary);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.hero-cta:hover {
    background: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    color: white;
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 60vh;
        padding: var(--spacing-xl) var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-section {
    padding: var(--spacing-2xl) 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 32px 24px;
    min-height: 280px;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-elevated);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.05);
}

.category-card:nth-child(1) .category-icon {
    background: rgba(59, 130, 246, 0.1);
}

.category-card:nth-child(2) .category-icon {
    background: rgba(16, 185, 129, 0.1);
}

.category-card:nth-child(3) .category-icon {
    background: rgba(139, 92, 246, 0.1);
}

.category-card:nth-child(4) .category-icon {
    background: rgba(245, 158, 11, 0.1);
}

.category-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.category-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: auto;
}

.category-link {
    margin-top: 20px;
    color: var(--accent-primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.category-link:hover {
    gap: 12px;
}

/* Responsive category grid */
@media (max-width: 1199px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .category-card {
        min-height: 260px;
        padding: 28px 20px;
    }
}

@media (max-width: 767px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
    
    .category-card {
        min-height: 240px;
        padding: 28px 24px;
    }
    
    .category-icon {
        width: 56px;
        height: 56px;
    }
}

/* ============================================
   BLOG POSTS GRID
   ============================================ */
.posts-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-secondary);
}

.section-header {
    max-width: var(--container-max);
    margin: 0 auto var(--spacing-xl);
    padding: 0 24px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.post-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-elevated);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-category {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    width: fit-content;
}

.post-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

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

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

.post-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-meta {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    font-size: 13px;
    color: var(--text-tertiary);
    display: flex;
    gap: 16px;
}

/* Responsive posts grid */
@media (max-width: 991px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .posts-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-tertiary);
}

.newsletter-container {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
}

.newsletter-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.newsletter-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    background: var(--bg-primary);
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text-primary);
    font-family: inherit;
}

.newsletter-input:focus {
    border-color: var(--accent-primary);
    outline: none;
}

.newsletter-button {
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.newsletter-button:hover {
    background: #2563EB;
    transform: translateY(-2px);
}

.newsletter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-tertiary);
}

@media (max-width: 640px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-button {
        width: 100%;
    }
    
    .newsletter-title {
        font-size: 28px;
    }
}

/* ============================================
   TRUST SIGNALS
   ============================================ */
.trust-section {
    padding: var(--spacing-2xl) 0;
    border-top: 1px solid var(--border-subtle);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: var(--shadow-subtle);
}

.trust-icon {
    font-size: 48px;
    margin-bottom: 20px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
}

.trust-item:nth-child(1) .trust-icon {
    background: rgba(16, 185, 129, 0.1);
}

.trust-item:nth-child(2) .trust-icon {
    background: rgba(139, 92, 246, 0.1);
}

.trust-item:nth-child(3) .trust-icon {
    background: rgba(245, 158, 11, 0.1);
}

.trust-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.trust-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 991px) {
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }
    
    .trust-item {
        padding: 28px 20px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 64px 0 0;
}

.footer-widgets {
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-subtle);
}

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

.footer-brand h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.social-link:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.footer-widget h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    margin-bottom: 12px;
}

.footer-widget a {
    color: var(--text-secondary);
    font-size: 15px;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-widget a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.site-info {
    padding: 32px 0;
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: var(--text-tertiary);
}

@media (max-width: 991px) {
    .footer-widget-area {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .footer-widget-area {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 16px;
    }
    
    .site-footer {
        padding: 48px 0 0;
    }
}

/* ============================================
   ARTICLE/SINGLE POST STYLES
   ============================================ */
.single .site-content {
    padding: 0;
}

.article-header {
    max-width: var(--article-max-width);
    margin: 0 auto;
    padding: 48px 20px 32px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-category-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-date,
.article-reading-time {
    color: var(--text-tertiary);
    font-size: 14px;
}

.entry-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
    letter-spacing: -0.02em;
}

.article-excerpt {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.article-author-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 32px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

/* Article content wrapper */
.article-wrapper {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: block;
}

/* Desktop: Sidebar layout for TOC */
@media (min-width: 1200px) {
    .article-wrapper {
        display: grid;
        grid-template-columns: 250px 1fr;
        gap: 48px;
        padding: 0 24px;
    }
}

/* Table of Contents */
.toc-sidebar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
}

.toc-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    display: block;
    padding: 6px 0 6px 12px;
    border-left: 2px solid transparent;
    margin-left: -12px;
    transition: all 0.2s;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
}

@media (min-width: 1200px) {
    .toc-sidebar {
        position: sticky;
        top: 96px;
        margin-bottom: 0;
    }
}

/* Main article content */
.entry-content {
    max-width: var(--article-max-width);
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
}

.entry-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 16px;
    line-height: 1.3;
    scroll-margin-top: 100px;
}

.entry-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 12px;
    scroll-margin-top: 100px;
}

.entry-content h4 {
    font-size: 19px;
    font-weight: 600;
    margin: 24px 0 10px;
    scroll-margin-top: 100px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-decoration-color: rgba(59, 130, 246, 0.3);
    text-underline-offset: 3px;
}

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

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 28px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--accent-primary);
    background: var(--bg-secondary);
    border-radius: 0 8px 8px 0;
    font-size: 17px;
    color: var(--text-secondary);
}

.entry-content code {
    background: var(--bg-tertiary);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 15px;
    color: var(--accent-secondary);
}

.entry-content pre {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--border-subtle);
}

.entry-content pre code {
    background: none;
    padding: 0;
    font-size: 14px;
    color: var(--text-primary);
}

/* Tables */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
}

.entry-content thead {
    background: var(--bg-tertiary);
}

.entry-content th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-subtle);
}

.entry-content td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 15px;
}

.entry-content tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* Images */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
}

/* Responsive article styles */
@media (max-width: 767px) {
    .article-header {
        padding: 40px 16px 24px;
    }
    
    .entry-title {
        font-size: 28px !important;
    }
    
    .article-excerpt {
        font-size: 17px;
    }
    
    .entry-content {
        font-size: 17px;
        padding: 0 16px;
    }
    
    .entry-content h2 {
        font-size: 24px;
    }
    
    .entry-content h3 {
        font-size: 20px;
    }
}

/* ============================================
   KEY TAKEAWAYS WIDGET
   ============================================ */
.key-takeaways {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 24px 20px;
    margin: 32px 0;
}

.key-takeaways-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.key-takeaways-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.key-takeaways-title {
    font-size: 18px;
    font-weight: 700;
}

.key-takeaways ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-takeaways li {
    padding: 10px 0 10px 28px;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
}

.key-takeaways li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-weight: 700;
}

@media (min-width: 768px) {
    .key-takeaways {
        padding: 32px;
        margin: 40px 0;
    }
}

/* ============================================
   CALLOUT BOXES
   ============================================ */
.callout {
    margin: 28px 0;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid;
}

.callout-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.callout-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.callout-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.callout-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.callout-title {
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.callout-info .callout-title { color: var(--accent-primary); }
.callout-success .callout-title { color: var(--accent-secondary); }
.callout-warning .callout-title { color: var(--accent-warning); }
.callout-danger .callout-title { color: var(--accent-danger); }

/* ============================================
   AD PLACEMENTS
   ============================================ */
.ad-container {
    margin: 32px auto;
    text-align: center;
    max-width: var(--article-max-width);
}

.ad-container.in-content {
    padding: 24px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.ad-label {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

/* Sticky bottom ad */
.sticky-bottom-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 12px;
    text-align: center;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.sticky-bottom-ad .ad-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.sticky-bottom-ad .ad-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-danger);
}

/* Ensure content doesn't hide behind sticky ad */
.has-sticky-ad {
    padding-bottom: 120px;
}

@media (max-width: 767px) {
    .sticky-bottom-ad {
        padding: 8px;
    }
    
    .has-sticky-ad {
        padding-bottom: 100px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .reading-progress,
    .toc-sidebar,
    .sticky-bottom-ad,
    .ad-container,
    .site-footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .entry-content {
        max-width: 100%;
    }
}