:root {
    --brand-dark: #0f172a;
    /* Navy 900 */
    --brand-primary: #10b981;
    /* Emerald 500 */
    --brand-light: #ecfdf5;
    /* Emerald 50 */
    --brand-hover: #059669;
    /* Emerald 600 */
    --text-primary: #1e293b;
    --text-muted: #64748b;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    background-color: #f8fafc;
}

/* Custom Utilities */
.bg-navy {
    background-color: var(--brand-dark) !important;
    color: white;
}

.text-brand {
    color: var(--brand-primary) !important;
}

.bg-brand-light {
    background-color: var(--brand-light) !important;
}

.btn-brand {
    background-color: var(--brand-primary);
    color: white;
    font-weight: 600;
    border: none;
}

.btn-brand:hover {
    background-color: var(--brand-hover);
    color: white;
}

/* AdSense Slots */
.ad-slot {
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #64748b;
    margin: 1.5rem auto;
    border-radius: 0.5rem;
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Sticky Header Override */
.sticky-top {
    z-index: 1020;
    border-bottom: 4px solid var(--brand-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--brand-dark);
    color: #cbd5e1;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: white;
}

/* ========================================
   Dynamic JSON Content Styles
   ======================================== */

/* Hover Effects */
.hover-opacity {
    transition: opacity 0.3s ease;
}

.hover-opacity:hover {
    opacity: 0.85;
}

.hover-brand {
    transition: color 0.2s ease;
}

.hover-brand:hover {
    color: var(--brand-primary) !important;
}

/* Affiliate Partner Cards */
#affiliate-partners .card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

#affiliate-partners .card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#affiliate-partners .card:hover::after {
    opacity: 1;
}

/* Testimonials Styling */
#testimonials-section .card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

#testimonials-section .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Featured Images */
.figure-img {
    transition: transform 0.3s ease;
}

.figure-img:hover {
    transform: scale(1.02);
}

.figure-caption strong {
    color: var(--brand-primary);
}

/* Last Updated Badge Animation */
#last-updated-badge .alert {
    animation: fadeInDown 0.5s ease;
    border-left: 4px solid #0ea5e9;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quick Tips Styling */
.alert.border-start {
    border-left-width: 4px !important;
}

/* Table of Contents Sticky Behavior */
#table-of-contents .card {
    transition: box-shadow 0.3s ease;
    background: white;
    border: 1px solid #e2e8f0;
}

#table-of-contents .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#table-of-contents .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f5f9;
}

#table-of-contents .nav-link:last-child {
    border-bottom: none;
}

/* Author Bio Section */
#author-bio-section img {
    transition: transform 0.3s ease;
    border: 4px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#author-bio-section img:hover {
    transform: scale(1.05);
}

/* Video Section */
#video-section .btn-danger {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
}

/* Loading State */
.content-loading {
    opacity: 0.5;
    pointer-events: none;
}

.content-loaded {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Smooth Scroll */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Object Fit for Images */
.object-fit-cover {
    object-fit: cover;
}

.object-fit-contain {
    object-fit: contain;
}