/* ================================
   AIMS Summer School - Base Styles
   Shared CSS variables and common components
   ================================ */

/* ================================
   CSS VARIABLES
   ================================ */
:root {
    /* Primary Colors */
    --navy: #1e3a5f;
    --navy-dark: #152a45;
    --slate: #475569;

    /* Text Colors */
    --text: #1e293b;
    --text-light: #64748b;

    /* Accent Colors */
    --electric: #e94560;    /* Pink/red - AI track, primary accent */
    --lavender: #9d4edd;    /* Purple - Math track, secondary accent */
    --gold: #d4a533;        /* Gold - highlights, badges */
    --gold-light: #f5e6c8;  /* Light gold - backgrounds */
    --teal: #0d9488;        /* Teal - alternative accent */
    --mint: #43aa8b;        /* Green - success, shared content */
    --sky: #4cc9f0;         /* Light blue - optional accent */

    /* Background Colors */
    --cream: #faf9f7;       /* Primary background */
    --soft: #f0ede8;        /* Secondary background */
    --white: #ffffff;

    /* Utility Colors */
    --border: #e2e8f0;

    /* Legacy Aliases (for backward compatibility) */
    --deep: var(--navy);
    --ocean: var(--slate);
    --sun: var(--gold);
}

/* ================================
   RESET & BASE
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.65;
    font-size: 1.125rem;
}

h1, h2, h3, h4 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
}

a {
    color: var(--navy);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ================================
   LAYOUT
   ================================ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container.wide {
    max-width: 1200px;
}

.container.narrow {
    max-width: 900px;
}

/* ================================
   HERO SECTION (Standard Pages)
   ================================ */
.hero {
    padding: 10rem 0 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.hero h1 .highlight {
    color: var(--electric);
}

.hero h1 .highlight-alt {
    color: var(--lavender);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--slate);
    max-width: 700px;
    margin: 0 auto;
}

/* ================================
   BUTTONS
   ================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--electric), var(--lavender));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
    text-decoration: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold);
    color: var(--navy);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 165, 51, 0.4);
    text-decoration: none;
}

/* ================================
   CARDS
   ================================ */
.card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card-large {
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ================================
   CTA SECTION
   ================================ */
.cta {
    padding: 3rem 0 5rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
    color: white;
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
}

.cta-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-box p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Gradient CTA variant */
.cta-box.gradient {
    background: linear-gradient(135deg, var(--electric), var(--lavender));
}

/* ================================
   FOOTER
   ================================ */
footer {
    background: var(--navy-dark);
    color: white;
    padding: 3.5rem 0 1.5rem;
}

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

.footer-brand {
    text-align: left;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    max-width: 280px;
    line-height: 1.5;
}

.footer-logo {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.footer-links h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 1rem;
}

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

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

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

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

footer a {
    color: var(--gold);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 0 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .cta-box {
        padding: 2rem;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
