/* ============================================
   BLOOM AI UNIVERSITY - SHARED STYLES
   ============================================
   This file contains all shared CSS for consistency
   across all pages of the website.
   ============================================ */

/* ============================================
   CSS VARIABLES - DESIGN TOKENS
   ============================================ */
:root {
    /* Primary Brand Colors */
    --navy: #1B3A5F;
    --navy-dark: #152d4a;
    --navy-light: #2a4d73;

    /* Accent Colors */
    --gold: #FFD700;
    --gold-dark: #E6C200;
    --gold-light: #FFE44D;

    --emerald: #00C851;
    --emerald-dark: #00a844;
    --emerald-light: #33d472;

    --purple: #8B5CF6;
    --purple-dark: #7c4ddb;
    --purple-light: #a78bfa;

    --orange: #E67E22;
    --orange-dark: #d35400;
    --orange-light: #f39c12;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --light-gray: #F3F4F6;
    --mid-gray: #E5E7EB;
    --gray: #6B7280;
    --dark-gray: #4B5563;
    --charcoal: #374151;
    --near-black: #1F2937;

    /* Semantic Colors */
    --success: #00C851;
    --warning: #FFB800;
    --error: #DC2626;
    --info: #3B82F6;

    /* Typography */
    --font-primary: 'Playfair Display', Georgia, serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Type Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;

    /* Shadows - Standardized */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    --shadow-glow-emerald: 0 0 20px rgba(0, 200, 81, 0.3);
    --shadow-glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
    --shadow-glow-gold: 0 0 20px rgba(255, 215, 0, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-Index Scale - Standardized */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
    --z-toast: 700;
    --z-mobile-nav: 999;

    /* Container - Standardized */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

ul, ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--navy);
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }

p {
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 600;
    color: var(--navy);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-20) 0;
}

.section-alt {
    background-color: var(--off-white);
}

.section-navy {
    background-color: var(--navy);
    color: var(--white);
}

.section-navy h2,
.section-navy h3,
.section-navy h4 {
    color: var(--white);
}

.text-center {
    text-align: center;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn-primary:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
}

.btn-accent {
    background: var(--emerald);
    color: var(--white);
    border-color: var(--emerald);
}

.btn-accent:hover {
    background: var(--emerald-dark);
    border-color: var(--emerald-dark);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--navy);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    background: var(--off-white);
    padding: var(--space-4) 0;
    margin-top: 70px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
}

.breadcrumb-link {
    color: var(--gray);
    transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
    color: var(--navy);
}

.breadcrumb-separator {
    color: var(--mid-gray);
}

.breadcrumb-current {
    color: var(--navy);
    font-weight: 500;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-secondary);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy);
    margin-bottom: var(--space-4);
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--gray);
    line-height: 1.7;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--navy);
    margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    color: var(--dark-gray);
    background: var(--off-white);
    border: 1px solid var(--mid-gray);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--navy);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(27, 58, 95, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   RESPONSIVE - TABLET (1024px)
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.25rem;
    }

    .breadcrumb {
        margin-top: 70px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    .section {
        padding: var(--space-12) 0;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (480px)
   ============================================ */
@media (max-width: 480px) {
    .btn-lg {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-base);
    }
}

/* ============================================
   CULTIVATE LMS BADGE (NAV)
   ============================================ */
.cultivate-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    background: linear-gradient(135deg, rgba(27, 58, 95, 0.06), rgba(139, 92, 246, 0.06));
    border: 1.5px solid rgba(27, 58, 95, 0.12);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
}
.cultivate-badge:hover {
    border-color: rgba(27, 58, 95, 0.25);
    background: linear-gradient(135deg, rgba(27, 58, 95, 0.08), rgba(139, 92, 246, 0.1));
    box-shadow: 0 2px 12px rgba(27, 58, 95, 0.08);
    transform: translateY(-1px);
}
.cultivate-badge-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.cultivate-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.cultivate-badge-name {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--navy);
    letter-spacing: 0.01em;
}
.cultivate-badge-name sup {
    font-size: 0.55rem;
    margin-left: 1px;
    vertical-align: super;
    color: var(--purple);
}
.cultivate-badge-sub {
    font-size: 0.6rem;
    color: var(--gray);
    letter-spacing: 0.04em;
    margin-top: 2px;
    font-weight: 500;
}
.cultivate-badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    position: absolute;
    top: 6px;
    right: 6px;
    animation: cultivate-pulse 2s ease-in-out infinite;
}
@keyframes cultivate-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.badge-primary {
    background-color: rgba(0, 200, 81, 0.15);
    color: var(--emerald-dark);
}

.badge-secondary {
    background-color: rgba(139, 92, 246, 0.15);
    color: var(--purple-dark);
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--navy);
    color: var(--navy);
}

.badge-gold {
    background-color: rgba(230, 194, 0, 0.15);
    color: var(--gold-dark);
}

.badge-navy {
    background-color: rgba(27, 58, 95, 0.15);
    color: var(--navy);
}

.badge-emerald {
    background-color: rgba(0, 200, 81, 0.15);
    color: var(--emerald-dark);
}

.badge-purple {
    background-color: rgba(139, 92, 246, 0.15);
    color: var(--purple-dark);
}

.badge-orange {
    background-color: rgba(230, 126, 34, 0.15);
    color: var(--orange-dark);
}

.badge-warning {
    background-color: rgba(255, 184, 0, 0.15);
    color: var(--orange-dark);
}

.badge-info {
    background-color: rgba(27, 58, 95, 0.1);
    color: var(--navy);
}

.badge-white {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.badge-sm { font-size: 0.625rem; padding: 0.125rem 0.5rem; }
.badge-live { background-color: rgba(220, 38, 38, 0.12); color: #DC2626; }

/* Mobile Cultivate Badge (inside hamburger menu) */
.nav-mobile .cultivate-badge-mobile {
    display: none;
}
.cultivate-badge-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin: var(--space-4) 0 var(--space-2) 0;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, rgba(27, 58, 95, 0.04), rgba(139, 92, 246, 0.06));
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
}
.cultivate-badge-mobile:hover {
    border-color: rgba(27, 58, 95, 0.25);
    background: linear-gradient(135deg, rgba(27, 58, 95, 0.08), rgba(139, 92, 246, 0.1));
}
.cultivate-badge-mobile-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.cultivate-badge-mobile-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.cultivate-badge-mobile-name {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--navy);
}
.cultivate-badge-mobile-name sup {
    font-size: 0.55rem;
    color: var(--purple);
    margin-left: 1px;
}
.cultivate-badge-mobile-sub {
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 0.02em;
    margin-top: 3px;
}

@media (max-width: 1024px) {
    .cultivate-badge { display: none; }
}

/* ============================================
   FOOTER - BACK TO TOP
   Duplicated here from footer.css so it works
   even when includes.js is browser-cached.
   ============================================ */
.footer-back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-12);
    padding: var(--space-3) 0;
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition-fast);
    cursor: pointer;
}

.footer-back-to-top:hover {
    color: var(--white);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 299;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-2px);
}

.scroll-to-top-ring {
    width: 48px;
    height: 48px;
    transform: rotate(-90deg);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
}

.scroll-to-top-bg {
    fill: var(--white);
    stroke: var(--light-gray);
    stroke-width: 3;
}

.scroll-to-top-progress {
    fill: none;
    stroke: var(--navy);
    stroke-width: 3;
    stroke-linecap: round;
    transition: none;
}

.scroll-to-top-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    fill: var(--orange);
    pointer-events: none;
}

@media (max-width: 1024px) {
    .scroll-to-top {
        right: 16px;
    }
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 44px;
        height: 44px;
    }

    .scroll-to-top-ring {
        width: 44px;
        height: 44px;
    }
}
