/* =========================================
   CNP — Design System | Dark Theme
   ========================================= */

:root {
    /* Dark backgrounds */
    --bg-base: #111318;
    --bg-surface: #1A1D24;
    --bg-elevated: #21252E;
    --bg-card: #252A34;

    /* Club accent colours */
    --accent-blue: #3B82F6;
    --accent-blue-dim: #1D4ED8;
    --accent-yellow: #F4C430;
    --accent-green: #10B981;
    --accent-green-dim: #059669;

    /* Text */
    --text-primary: #F0F2F5;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-accent: rgba(244, 196, 48, 0.35);

    /* Glassmorphism */
    --glass-bg: rgba(17, 19, 24, 0.72);
    --glass-border: rgba(255, 255, 255, 0.10);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.25);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Base ── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

:focus-visible {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 3px;
}

/* =========================================
   NAVBAR — Glassmorphism
   ========================================= */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.85rem 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand img {
    height: 52px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.3));
}

.brand:hover img {
    transform: scale(1.06);
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.55));
}

.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.925rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.25s, background 0.25s;
    letter-spacing: 0.01em;
}

.nav-links a.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
}

.nav-links .btn-primary {
    color: #052e16;
}

/* ── Botão Associar-me ── */
.btn-primary {
    background: var(--accent-green);
    color: #052e16;
    padding: 8px 22px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    display: inline-block;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background: var(--accent-green-dim);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    color: #fff;
}

/* =========================================
   MAIN
   ========================================= */
main {
    flex: 1;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 5rem 8%;
    position: relative;
    overflow: hidden;
    min-height: 78vh;

    /* Subtle radial glow behind content */
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 70%),
        var(--bg-base);
}

/* Decorative grid lines */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    opacity: 0.5;
}

.hero-text {
    flex: 1;
    max-width: 580px;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-yellow);
    margin-bottom: 20px;
}

.hero-eyebrow span {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--accent-yellow);
    border-radius: 2px;
}

.hero-text h2 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.hero-text h2 em {
    font-style: normal;
    color: var(--accent-blue);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 480px;
}

/* Legacy .details bar — keep for compat */
.hero-text .details {
    display: inline-block;
    width: 40px;
    height: 3px;
    background: var(--accent-green);
    margin-bottom: 18px;
    border-radius: 2px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Glowing backdrop behind skater */
.hero-image::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
    animation: float 7s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-18px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* =========================================
   WELCOME CARD (index.html page-container)
   ========================================= */
.page-container {
    padding: 56px 8%;
    text-align: center;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    margin: 40px auto;
    max-width: 960px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
}

.page-container h2 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-container p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-accent);
    padding: 24px 8%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.footer-section {
    flex: 1;
    min-width: 0;
}

.footer-section h3 {
    color: var(--accent-yellow);
    margin-bottom: 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.25s;
}

.footer-section a:hover {
    color: var(--accent-green);
}

.footer-nav {
    flex: 3;
    min-width: 0;
}

.footer-nav-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px 20px;
    align-items: center;
    justify-content: center;
}

.footer-nav-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.25s;
    white-space: nowrap;
    font-weight: 500;
}

.footer-nav-links a:hover {
    color: var(--accent-green);
}

.bottom-bar {
    text-align: center;
    padding: 12px;
    background: var(--bg-base);
    color: var(--text-muted);
    font-size: 0.78rem;
    border-top: 1px solid var(--border-subtle);
    letter-spacing: 0.02em;
}

/* =========================================
   FLASH TOASTS
   ========================================= */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    /* Allows clicks through empty space */
}

.toast {
    padding: 14px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-weight: 600;
    font-size: 0.9rem;
    animation: fadeInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    /* Re-enable clicks on actual toasts */
}

.toast.success {
    background: rgba(16, 185, 129, 0.12);
    color: #6EE7B7;
    border-left: 4px solid var(--accent-green);
}

.toast.error {
    background: rgba(239, 68, 68, 0.12);
    color: #FCA5A5;
    border-left: 4px solid #EF4444;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    footer {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .footer-nav {
        flex: 1 1 100%;
    }

    .footer-nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem 5%;
        gap: 12px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3.5rem 6%;
        min-height: auto;
    }

    .hero-text p {
        max-width: 100%;
    }

    .hero-text .details,
    .hero-eyebrow {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image::before {
        width: 260px;
        height: 260px;
    }

    .footer-section {
        min-width: 100%;
        text-align: center;
    }
}

/* =========================================
   SPONSOR CAROUSEL
   ========================================= */
.sponsor-carousel-wrapper {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 40px 0;
    overflow: visible;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sponsor-carousel-wrapper::before,
.sponsor-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.sponsor-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-surface) 0%, transparent 100%);
}

.sponsor-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-surface) 0%, transparent 100%);
}

.sponsor-carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 12px 0;
}

.sponsor-track {
    display: flex;
    align-items: center;
    width: fit-content;
    /* A animação é injetada dinamicamente pelo JS após carregar a configuração */
}

/* Pause animation on hover */
.sponsor-carousel-container:hover .sponsor-track {
    animation-play-state: paused !important;
}

.sponsor-item {
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%) opacity(0.6);
}

.sponsor-item:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}

.sponsor-item img {
    height: 96px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

@keyframes scroll-sponsors {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* -50% because the track is duplicated */
}