/* Site Chrome — header, promo banner with search, footer
   Extracted verbatim from public/index.html so every page has identical chrome. */

/* Header Styles */
.header {
    background: #000000 !important;
    color: white !important;
    padding: 0 !important;
    position: relative !important;
    width: 100% !important;
    z-index: 1000 !important;
}

.nav-container {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 0.5rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
}

.logo {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin-right: 1rem !important;
}

.nav-menu {
    display: flex !important;
    list-style: none !important;
    gap: 0.35rem !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.nav-menu a {
    color: white !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    padding: 0.6rem 0.9rem !important;
    border-radius: 0.5rem !important;
    white-space: nowrap !important;
    font-size: 1.05rem !important;
}

.nav-menu a:hover {
    background:linear-gradient(90deg,#14b8a6,#3b82f6,#8b5cf6)!important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4) !important;
}

.cta-button {
    background: linear-gradient(90deg, #14b8a6, #3b82f6, #8b5cf6) !important;
    color: white !important;
    padding: 0.6rem 1.25rem !important;
    border: none !important;
    border-radius: 0.5rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-family: 'Libre Franklin', 'Franklin Gothic Medium', 'Franklin Gothic', sans-serif !important;
    white-space: nowrap !important;
    font-size: 1.1rem !important;
}

.cta-button:hover {
    background:linear-gradient(90deg,#14b8a6,#3b82f6,#8b5cf6)!important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4) !important;
}

.cta-button:active {
    background: #991b1b !important;
    transform: scale(0.98) !important;
}

/* Start Free Trial button - pink gradient */
.trial-btn {
    background: linear-gradient(90deg, #fb7185, #ec4899, #d946ef) !important;
    color: white !important;
}

.trial-btn:hover {
    background:linear-gradient(90deg,#14b8a6,#3b82f6,#8b5cf6)!important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4) !important;
}

.mobile-menu-toggle {
    display: none !important;
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0.5rem !important;
}

/* Responsive Header */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .nav-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
        flex-direction: column !important;
        padding: 1rem !important;
        gap: 0.5rem !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
    }
    .nav-menu.active {
        display: flex !important;
    }
    .nav-menu a {
        width: 100% !important;
        text-align: center !important;
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
    }
}

/* Promo Banner with integrated search */
.promo-banner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #6366f1) !important;
    color: white !important;
    padding: 0.65rem 1.5rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    gap: 1rem !important;
}
.promo-text {
    white-space: nowrap !important;
}
.search-wrapper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 600px !important;
    background: #111827 !important;
    border-radius: 999px !important;
    border: 2px solid #ffffff !important;
    padding: 0 1rem !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
.search-wrapper:focus-within {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.3) !important;
}
.search-wrapper svg.search-icon {
    flex-shrink: 0 !important;
    margin-right: 0.5rem !important;
    pointer-events: none !important;
}
.search-input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 0.5rem 0 !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-family: 'Libre Franklin', sans-serif !important;
    outline: none !important;
    caret-color: #ffffff !important;
}
.search-input::placeholder { color: #ffffff !important; font-weight: 500 !important; }
.search-results {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    right: 0 !important;
    background: #1f2937 !important;
    border: 1px solid #374151 !important;
    border-radius: 0.75rem !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    display: none !important;
    z-index: 9999 !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5) !important;
}
.search-results.active { display: block !important; }
.sr-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.7rem 1rem !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
    text-decoration: none !important;
    color: white !important;
}
.sr-item:hover { background: linear-gradient(90deg, rgba(20,184,166,0.15), rgba(59,130,246,0.15)) !important; }
.sr-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 0.4rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
}
.sr-title { font-size: 0.9rem !important; font-weight: 600 !important; }
.sr-cat { font-size: 0.72rem !important; color: #9ca3af !important; margin-top: 0.1rem !important; }
.sr-empty { padding: 1.5rem !important; text-align: center !important; color: #9ca3af !important; font-size: 0.9rem !important; }
@media (max-width: 1024px) {
    .promo-banner { flex-direction: column !important; text-align: center !important; gap: 0.5rem !important; }
    .promo-text { white-space: normal !important; }
    .search-wrapper { max-width: 100% !important; }
}

/* Footer */
.footer {
    background: #000000 !important;
    color: white !important;
    padding: 3rem 0 2rem !important;
}

.footer-content {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
    padding: 0 2.5% !important;
}

.footer-section h3 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

.footer-section ul {
    list-style: none !important;
}

.footer-section ul li {
    margin-bottom: 0.5rem !important;
}

.footer-section ul li a {
    color: #9ca3af !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.footer-section ul li a:hover {
    color: white !important;
}

.footer-bottom {
    border-top: 1px solid #374151 !important;
    padding-top: 2rem !important;
    text-align: center !important;
    color: #9ca3af !important;
}

/* Responsive footer + nav */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr !important;
        padding: 0 5% !important;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }
    .nav-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
        flex-direction: column !important;
        padding: 1rem 0 !important;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15) !important;
        z-index: 1000 !important;
    }
    .nav-menu.active,
    .nav-menu.mobile-active {
        display: flex !important;
    }
    .nav-menu a {
        padding: 0.75rem 2rem !important;
        width: 100% !important;
        text-align: center !important;
    }
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem !important;
    }
}


/* === Footer outer margin (matches article-hero 5% inset) === */
.footer { margin: 0 5% !important; border-radius: 1.25rem !important; }
@media (max-width: 768px) { .footer { margin: 0 2% !important; border-radius: 0.75rem !important; } }

/* === Blog article hero h1 gradient (skill-tracker style) === */
.article-hero h1 {
    background: linear-gradient(90deg,#14b8a6,#3b82f6,#8b5cf6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}
