/*
 * Global styles for pepguide.ai
 * Extracted from existing pages and converted from inline styles
 */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

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

/* Container System */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container, .container-narrow {
        padding: 0 24px;
    }
}

/* Navigation Styles */
.nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    padding: 1rem 0;
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

.logo .pep {
    color: #0f172a;
}

.logo .guide {
    color: #0ea5e9;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: #0ea5e9;
}

.nav-cta {
    background: #0ea5e9 !important;
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    border: 2px solid #0ea5e9;
}

.nav-cta:hover {
    background: #0284c7 !important;
    border-color: #0284c7;
    color: white !important;
    transform: translateY(-1px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Footer Styles (converted from inline) */
.site-footer {
    background: #0f172a;
    color: white;
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.footer-brand .pep {
    color: white;
}

.footer-brand .guide {
    color: #0ea5e9;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.footer-bottom p + p {
    margin-top: 16px;
}

.footer-bottom a {
    color: #94a3b8;
}

/* Consent Banner Styles (converted from inline) */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    color: white;
    padding: 16px 24px;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.consent-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.consent-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}

.consent-text a {
    color: #0ea5e9;
    text-decoration: underline;
}

.consent-button {
    background: #0ea5e9;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}

.consent-button:hover {
    background: #0284c7;
}

/* Common Button Styles */
.btn-primary {
    background: #0ea5e9;
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    border: 2px solid #0ea5e9;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
    background: #0284c7;
    border-color: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #0ea5e9;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #0ea5e9;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-secondary:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-1px);
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}

.badge-category {
    background: #dbeafe;
    color: #1e40af;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-free {
    background: #fef3c7;
    color: #92400e;
}

/* Gated Content Styles */
/* Content is fully ungated for SEO and shareability.
   Gated classes kept in HTML for future re-gating if needed. */
.gated {
    position: relative;
    margin-top: 2rem;
}

.gated-body {
    /* Ungated - full content visible to all */
}

.gated-faded {
    display: none;
}

/* Medical Disclaimer */
.medical-disclaimer {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 8px;
    padding: 1rem;
    margin: 3rem 0;
    font-size: 0.875rem;
    color: #7f1d1d;
}

.medical-disclaimer h4 {
    color: #dc2626;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.medical-disclaimer p {
    margin: 0;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

.section-gray {
    background: #f8fafc;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    ul.nav-links {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: #ffffff !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        z-index: 1000 !important;
        padding: 80px 32px 40px !important;
        margin: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        box-sizing: border-box !important;
    }
    
    ul.nav-links.open {
        display: flex !important;
    }
    
    .nav-links li {
        list-style: none;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
        margin-top: 16px;
    }
    
    .nav-links a {
        font-size: 18px;
        font-weight: 500;
        color: #0f172a;
        display: block;
        padding: 20px 0;
    }
    
    .nav-links a:hover {
        color: #0ea5e9;
    }
    
    .nav-links a.nav-cta {
        font-size: 16px;
        padding: 14px 32px;
        display: inline-block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    section {
        padding: 60px 0;
    }
    
    .container,
    .container-narrow {
        padding: 0 16px;
    }

    .nav-container,
    .nav-content {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .consent-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .consent-text {
        text-align: center;
        min-width: auto;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Fade in animation */
.fade-in {
    opacity: 0.001;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}