/**
 * HIGH STAKES BLUEPRINT - COMPREHENSIVE CSS FIX
 * ==============================================
 * Theme: high-stakes-blueprint-theme
 * Issues Fixed:
 * 1. Text visibility (white-on-white text)
 * 2. Hamburger menu not working on mobile
 * 3. Overall design polish
 * 
 * Brand Colors:
 * - Navy: #0a1628
 * - Blue: #0073EA
 * - Orange accent: #ed8936
 */

/* ============================================
   1. TEXT VISIBILITY FIX
   Ensures all text is readable on light backgrounds
   ============================================ */

/* Force readable text on all content areas */
.single article,
.single article h1,
.single article h2,
.single article h3,
.single article h4,
.single article h5,
.single article h6,
.single article p,
.single article li,
.single article .entry-content,
.entry-content,
.entry-title,
article .content,
article p,
article li,
article h1,
article h2,
article h3,
.article-content,
.article-content p,
.article-content li,
.article-content h1,
.article-content h2,
.article-content h3,
.post-content,
.post-content p,
.post-content li {
    color: #1a365d !important;
}

/* Homepage hero and preview sections */
.home .hero-title,
.home .preview-title,
.home .article-preview h1,
.home .article-preview h2,
.home .article-preview h3,
.home .article-preview p,
.home .preview-content h1,
.home .preview-content h2,
.home .preview-content h3,
.home .preview-content p,
.hero-content h1,
.hero-content p {
    color: #1a365d !important;
}

/* Ensure contrast on white/light backgrounds */
section[style*="background"],
section.hero,
.hero-container,
.hero-content {
    color: #1a365d !important;
}

.hero-content h1 {
    color: #0a1628 !important;
}

/* Fix any remaining white text on white background issues */
body.single .entry-content,
body.single .entry-content p,
body.single .entry-content li,
body.single .entry-content h1,
body.single .entry-content h2,
body.single .entry-content h3,
body.single .entry-content h4,
body.single article,
body.single article *:not(a):not(button):not(.button) {
    color: #1a365d !important;
}

/* ============================================
   2. HAMBURGER MENU FIX
   Makes the mobile menu toggle work properly
   ============================================ */

/* Hamburger button base styles */
.hamburger {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    /* Nav links hidden by default on mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #0a1628;
        flex-direction: column;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        margin: 0;
        list-style: none;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    }
    
    /* Nav links visible when active */
    .nav-links.active,
    .nav-links.open,
    .nav-container.menu-open .nav-links {
        right: 0;
    }
    
    .nav-links li {
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    .nav-links a {
        color: #ffffff !important;
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links a:hover {
        color: #0073EA !important;
    }
    
    /* Hamburger span styling */
    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background: #0073EA;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    /* Hamburger animation when active */
    .hamburger.active span:nth-child(1),
    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2),
    .hamburger.open span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .hamburger.active span:nth-child(3),
    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Overlay when menu is open */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .nav-overlay.active,
    .nav-overlay.open {
        display: block;
    }
}

/* Desktop nav styling */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
        flex-direction: row;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }
}

/* ============================================
   3. OVERALL DESIGN POLISH
   Professional, clean appearance
   ============================================ */

/* Navigation bar */
nav {
    background: #0a1628;
    position: sticky;
    top: 0;
    z-index: 1002;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo styling */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    background: #0073EA;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 8px;
}

.logo-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Nav links desktop */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #0073EA;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 100%);
    min-height: auto;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    color: #ffffff;
}

/* Episode/article meta */
.episode-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
    color: #ed8936;
}

.episode-tag {
    background: rgba(0, 115, 234, 0.2);
    color: #0073EA;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Content sections */
section {
    background: #0a1628;
}

/* Footer */
footer {
    background: #0a1628;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-top: 1rem;
}

.footer-links h4 {
    color: #0073EA;
    margin-bottom: 1rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* Link styling */
a {
    color: #0073EA;
    transition: color 0.2s ease;
}

a:hover {
    color: #ed8936;
}

/* Button styling */
.button,
button:not(.hamburger) {
    background: #0073EA;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.button:hover,
button:not(.hamburger):hover {
    background: #0056b3;
}

/* ============================================
   4. RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem !important;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    section {
        padding: 2rem 1rem !important;
    }
}

/* ============================================
   5. ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Focus states */
a:focus,
button:focus {
    outline: 2px solid #0073EA;
    outline-offset: 2px;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #0073EA;
    color: #ffffff;
    padding: 8px 16px;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
