/* ==========================================================================
   SPORTTOTAL PRO -- Coming Soon Landing Page
   Styles for the single-page "Coming Soon" holding page.
   ==========================================================================

   Structure:
     1. CSS Custom Properties (design tokens)
     2. Reset
     3. Base / Body
     4. Canvas Background
     5. Glass Header
     6. Content Overlay (hero section)
     7. Progress / Loading Indicator
     8. Keyframe Animations
     9. Responsive Overrides
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */

:root {
    --color-bg:              #050505;
    --color-text:            #f9f9f9;
    --color-text-muted:      #a0a0a0;
    --color-text-dimmed:     #777;
    --color-accent-primary:  #e50914;   /* SPORTTOTAL PRO red */
    --color-accent-pink:     #e62061;   /* Pink accent (matches icon_pink.svg) */
    --color-glass-bg:        rgba(255, 255, 255, 0.03);
    --color-glass-border:    rgba(255, 255, 255, 0.1);
    --color-progress-track:  rgba(255, 255, 255, 0.1);

    --font-family:           'Outfit', sans-serif;
    --header-height:         70px;
}


/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* --------------------------------------------------------------------------
   3. Base / Body
   Fullscreen viewport, dotted background pattern, no scroll.
   -------------------------------------------------------------------------- */

body {
    background-color: #000;
    color: var(--color-text);
    font-family: var(--font-family);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}


/* --------------------------------------------------------------------------
   4. Background Layers
   Stacking order (bottom to top): .bg-dots (0) -> #bg-canvas (1) -> content (10)
   The polka dot pattern is on a separate div instead of body because Safari
   macOS composites canvas elements as opaque layers, hiding body backgrounds.
   -------------------------------------------------------------------------- */

#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}


/* --------------------------------------------------------------------------
   5. Glass Header
   Frosted glass effect bar pinned to the top of the viewport.
   Uses backdrop-filter for the blur; -webkit- prefix for Safari support.
   -------------------------------------------------------------------------- */

.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--color-glass-bg);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-bottom: 1px solid var(--color-glass-border);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeInDown 1s ease-out forwards;
}

.header-icon {
    height: 13px;
    width: auto;
}

.header-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #fff;
}


/* --------------------------------------------------------------------------
   6. Content Overlay (Hero)
   Centered vertically and horizontally over the canvas.
   pointer-events: none lets mouse events pass through to the canvas
   so the particle interaction works even when hovering over text.
   -------------------------------------------------------------------------- */

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 800px;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.logo-container {
    margin-bottom: 1rem;
    animation: fadeInDown 1.5s ease-out forwards;
    opacity: 0;
}

.logo {
    max-width: 280px;
    height: auto;
}

/* Gradient text effect: white-to-grey for a metallic look */
.title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, var(--color-text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1.5s ease-out 0.3s forwards;
    opacity: 0;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 1.5s ease-out 0.6s forwards;
    opacity: 0;
}


/* --------------------------------------------------------------------------
   7. Progress / Loading Indicator
   Animated shimmer bar to convey "under construction".
   -------------------------------------------------------------------------- */

.notify-section {
    margin-top: 2rem;
    animation: fadeIn 2s ease-out 1s forwards;
    opacity: 0;
}

.notify-section p {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-dimmed);
    margin-bottom: 0.8rem;
}

.progress-bar-container {
    width: 200px;
    height: 2px;
    background: var(--color-progress-track);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 2px;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: loading 2s infinite ease-in-out;
}


/* --------------------------------------------------------------------------
   8. Keyframe Animations
   -------------------------------------------------------------------------- */

/* Shimmer loop for the progress bar */
@keyframes loading {
    0%   { left: -50%;  width: 30%; }
    50%  { left: 40%;   width: 50%; }
    100% { left: 120%;  width: 30%; }
}

/* Header + logo entrance */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Title + subtitle entrance */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Generic fade for the progress section */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/* --------------------------------------------------------------------------
   9. Responsive Overrides
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .logo {
        max-width: 200px;
    }
}
