/* ===== CORI COMMON STYLES ===== */
/* Shared styles across all pages */

/* CSS Variables */
:root {
    /* Color Palette */
    --background-gradient-start: #000000;
    --background-gradient-end: #121212;
    --primary-accent: #00E5FF; /* Electric Cyan */
    --secondary-accent: #00FF7F; /* Success Green */
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --card-bg: rgba(25, 25, 25, 0.6);
    --input-bg: rgba(30, 30, 30, 0.8);
    --glow-primary: rgba(0, 229, 255, 0.4);
    --glow-secondary: rgba(0, 255, 127, 0.3);
    --video-overlay: rgba(0, 0, 0, 0.7);
}

/* Reset and Base Settings */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    min-width: 280px;
    background-color: var(--background-gradient-start);
}

/* ===== TOP BANNER ===== */
.top-banner {
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    color: #000;
    text-align: center;
    padding: 0.8rem 1rem;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1.05rem; /* Slightly increased from default 1rem */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    letter-spacing: 0.01rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    height: 3.5rem;
}

.top-banner a {
    color: #000;
    font-weight: 600;
    margin-left: 0.5rem;
    position: relative;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.top-banner a:hover {
    text-decoration: underline;
}

/* ===== MAIN HEADER ===== */
.main-header {
    position: fixed;
    top: 3.5rem;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

/* Opaque when over body container */
.main-header.over-body {
    background: rgba(0, 0, 0, 1) !important;
}

.main-header .container {
    width: 100%;
    margin: 0;
    padding: 0 2rem;
    box-sizing: border-box;
}

.main-header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.main-header-logo {
    position: absolute;
    left: 0;
}

.main-header-logo img {
    height: 2rem;
    margin-top: 0.2rem;
    margin-bottom: -0.1rem;
}

.main-header-nav {
    display: flex;
    gap: 3rem;
}

.main-header-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-header-nav a:hover {
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-header-nav a.active {
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* ===== SHARED UTILITIES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Override for main header container */
.main-header .container {
    max-width: none !important;
    margin: 0 !important;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ===== DEBUG BOXES FOR SECTIONS 2.2, 2.3, 2.4 ===== */

/* Mobile adjustments */
@media (max-width: 768px) {
    .top-banner {
        font-size: 0.875rem;
        padding: 0.75rem 0.75rem;
        height: auto;
        min-height: 3.5rem;
        white-space: nowrap;
    }

    .top-banner a {
        margin-left: 0.3rem;
    }

    .main-header {
        padding: 0.75rem 0;
        background: rgba(10, 10, 10, 0.85);
        backdrop-filter: blur(10px);
    }

    .main-header .container {
        padding: 0 1rem;
    }

    .main-header-content {
        justify-content: flex-start;
        gap: 1rem;
        overflow-x: hidden;
    }

    .main-header-logo {
        position: static;
        flex-shrink: 0;
    }

    .main-header-logo img {
        height: 1.8rem;
    }

    .main-header-nav {
        display: flex;
        font-size: 0.9rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        white-space: nowrap;
        justify-content: space-evenly;
        width: 100%;
        gap: 0;
    }

    .main-header-nav::-webkit-scrollbar {
        display: none;
    }

    .main-header-nav a {
        flex-shrink: 0;
    }
}