/* ==================== GERAL ==================== */
* {
    box-sizing: border-box;
}

:root {
    /* Cores inspiradas no escudo do Casa Pia AC e logo da Grow Up */
    --cp-black: #000000;          /* Preto puro - fundo e base */
    --cp-red: #B30000;            /* Vermelho sangue - cor principal */
    --cp-red-light: #FF0033;      /* Vermelho elétrico - destaque */
    --cp-white: #FFFFFF;          /* Branco - contraste e limpeza */

    /* Dourado para prestígio (troféus, conquistas) */
    --gold: #FFD700;              /* ✅ Perfeito para simbolizar troféus, elite, PS5-style luxury */
    --gold-glow: rgba(255, 215, 0, 0.4); /* ✅ Usar em hover ou bordas pulsantes para efeito futurista */

    /* Cores para fundos e superfícies */
    --bg-dark: #0A001A;           /* 🔧 AJUSTE: Usei um roxo escuro quase preto (#0A001A) para dar profundidade "cyberpunk", mais moderno que #0A000A */
    --surface: #120012;           /* Superfície card/box - bom, mas pode ter leve gradiente */

    /* Sombra e brilho */
    --shadow-sm: 0 2px 4px rgba(255, 0, 51, 0.1);
    --shadow: 0 4px 15px rgba(255, 0, 51, 0.3);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Texto e normal e cor do body */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #100000;
    background-color: #939393;
    transition: background-color 0.4s ease, color 0.4s ease;
    line-height: 1.7;
}
/* 💡 NOTA: O body light mode está com bg branco, mas isso conflita com o dark theme. Recomendo: mudar para --bg-dark no dark-mode e manter claro só se for tema alternativo. Melhor focar num tema DARK como padrão, alinhado com eSports profissional. */

/* ==================== PRELOADER ==================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cp-black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--cp-red-light);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 💡 DICA: Para estilo PS5, adiciona um anel externo com dourado animado? Pode ser feito com ::before + conic-gradient rotativo */

/* ==================== NAVBAR ==================== */
.navbar-brand .brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: -0.5px;
    color: var(--cp-white);
}
.highlight {
    color: var(--cp-red-light);
    font-weight: 700;
}
.btn-primary {
    background-color: var(--cp-red-light) !important;
    border-color: var(--cp-red-light) !important;
    color: var(--cp-white);
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #e6002b !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 0, 51, 0.3);
}
.navbar {
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--cp-red-light);
    padding: 0.7rem 0;
}
.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95) !important;
    box-shadow: 0 8px 20px rgba(255, 0, 51, 0.15);
}
.nav-link {
    color: var(--cp-white) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}
.nav-link:hover {
    color: var(--cp-red-light) !important;
    text-shadow: 0 0 8px rgba(255, 0, 51, 0.5);
}
/* 💡 NOTA: Excelente uso de blur e transição. Para ficar mais "PS5", pensa em adicionar um pequeno glow dourado no hover dos links ou na seta do scroll. */

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: linear-gradient(135deg, var(--cp-red) 0%, var(--cp-black) 100%) url('assets/hero-bg.jpg') center/cover no-repeat;
    min-height: 100dvh;
    position: relative;
    color: var(--cp-white);
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}
.hero-section > .container {
    position: relative;
    z-index: 2;
    height: 100%;
    padding-top: 5rem;
}
.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
}
.image-wrapper {
    padding: 2px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--cp-red), var(--cp-red-light));
    box-shadow: 0 0 30px rgba(255, 0, 51, 0.4);
    animation: pulseGlow 2s ease-in-out infinite alternate;
    display: inline-block;
}
@keyframes pulseGlow {
    from { box-shadow: 0 0 20px rgba(255, 0, 51, 0.3); }
    to { box-shadow: 0 0 40px var(--cp-red-light), 0 0 60px rgba(255, 0, 51, 0.2); }
}
.image-wrapper::before {
    content: '';
    position:relative;/* Tornar o circulo maior absolute ou por tras da foto */
    top: 20%;
    left: 50%;
    width: 80%;
    height: 110%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent,
        var(--cp-red),
        transparent,
        var(--cp-red-light),
        transparent,
        var(--gold)
    );
    filter: blur(2px);
    opacity: 0.6;
    z-index: -1;
    animation: rotateLaser 30s linear infinite;/* Velocidade da animação 25s atras da foto */
    box-shadow: 0 0 20px var(--cp-red-light);
}
@keyframes rotateLaser {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.hero-image img {
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    border: 3px solid var(--cp-white);
}
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 3;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}
.btn-rounded {
    background: linear-gradient(90deg, var(--cp-red), var(--cp-red-light));
    border: none;
    color: var(--cp-white);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 51, 0.4);
}
.btn-rounded::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}
.btn-rounded:hover::before {
    opacity: 1;
}
.btn-rounded:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 0, 51, 0.5);
}
.fa-trophy:hover {
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 0 10px var(--gold);
}
/* 💡 HERO: MUITO BOM. O efeito laser rotativo é perfeito para o estilo competitivo. Para elevar:
   ✅ Adiciona um glow dourado estático sob a foto (como halo).
   ✅ Usa uma sombra interna vermelha no image-wrapper.
   ✅ Animação de entrada da badge com AOS.js já no HTML */

/* ==================== SEÇÕES GERAIS ==================== */
#about {
    background-color: #3532329e;
    padding: 5rem 0;
}
body.dark-mode #about {
    background: linear-gradient(135deg, #030003 0%, #1d0d00 100%);
    color: var(--cp-white);
}
.hover-bg {
    transition: all 0.4s ease;
    border-radius: 10px;
    padding: 0.8rem 1rem;
}
.hover-bg:hover {
    background: rgba(149, 159, 4, 0.1);
    border-left: 3px solid var(--cp-red-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 0, 51, 0.1);
}
.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--cp-red-light);
    text-shadow: 0 0 10px rgba(94, 2, 20, 0.673);
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70%;
    height: 4px;
    background: linear-gradient(90deg, var(--cp-red), var(--cp-red-light), var(--gold));
    box-shadow: 0 0 8px var(--cp-red-light);
    border-radius: 2px;
}
.quote-highlight {
    background: rgba(179, 0, 0, 0.1);
    border-left: 5px solid var(--cp-red-light);
    padding: 1.4rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    font-style: italic;
    box-shadow: 0 4px 12px rgba(255, 0, 51, 0.1);
    color: var(--cp-white);
}
/* 💡 CITAÇÃO: Perfeita. Considera adicionar um ícone small de 🏆 ou ⚡ antes da citação, flutuando à esquerda. */

/* ==================== TIMELINE ==================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem 0;
}
.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--cp-red-light);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--cp-red-light);
}
.timeline-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--gold);
    border: 4px solid var(--cp-red-light);
    border-radius: 50%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 15px var(--gold);
}
.timeline-content {
    width: 45%;
    padding: 1.6rem;
    background: var(--surface);
    border-radius: 14px;
    box-shadow: var(--shadow);
    color: var(--cp-white);
    border: 1px solid rgba(255, 0, 51, 0.1);
}
@media (max-width: 768px) {
    .timeline::before { left: 30px; }
    .timeline-dot { left: 30px; transform: none; }
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
}
/* 💡 LINHA DO TEMPO: TOP! O ponto dourado é ótimo. Para melhorar:
   ✅ Adiciona um glow pulsante no timeline-dot.
   ✅ Em mobile, usa uma borda superior fina vermelha no conteúdo. */

/* ==================== ESTATÍSTICAS ==================== */
.stat-item {
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--cp-red-light);
    margin-bottom: 0.4rem;
    text-shadow: 0 0 8px rgba(255, 0, 51, 0.3);
}
.stat-label {
    font-size: 1rem;
    color: var(--cp-white);
}
/* 💡 Estilos bons. Para impacto maior:
   ✅ Usa um counter animado (com JS) nos números grandes.
   ✅ Cor de fundo escuro com leve borda dourada nos stat-item. */

/* Dark Mode para todos os elementos claros */
body.dark-mode .stat-label,
body.dark-mode .bg-light,
body.dark-mode .contact-info,
body.dark-mode .timeline-content,
body.dark-mode .chart-container,
body.dark-mode .form-control,
body.dark-mode .card,
body.dark-mode .table,
body.dark-mode .alert {
    background-color: var(--bg-dark) !important;
    color: var(--cp-white);
    border: 1px solid rgba(255, 0, 51, 0.1);
}
/* 💡 Ótimo uso de dark-mode. Certifica-te que o Chart.js também respeita as cores escuras. */

/* ==================== DARK MODE GLOBAL ==================== */
body.dark-mode {
    background: linear-gradient(135deg, #0A000A 0%, #000000 100%);
    color: var(--cp-white);
}
body.dark-mode .navbar-brand .brand-name,
body.dark-mode .nav-link {
    color: var(--cp-white) !important;
}
body.dark-mode .form-control {
    background-color: #0F000F;
    color: var(--cp-white);
    border: 1px solid var(--cp-red-light);
}
body.dark-mode .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
/* 💡 Recomendo usar apenas dark-mode como padrão. Light mode não combina com eSports profissional. */

/* ==================== MODAL DE LOGIN ==================== */
#loginModal .modal-content {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, var(--cp-red), var(--cp-black));
    color: var(--cp-white);
    border: 1px solid var(--cp-red-light);
}
#loginModal .modal-header {
    border-bottom: none;
    padding: 2rem 2rem 0;
    text-align: center;
}
#loginModal .modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--cp-red-light);
}
#loginModal label {
    color: #ccc;
}
#loginModal .form-control {
    background-color: rgba(179, 0, 0, 0.4);
    border: 1px solid var(--cp-red-light);
    color: var(--cp-white);
    border-radius: 8px;
}
#loginModal .btn-primary {
    background: linear-gradient(90deg, var(--cp-red-light), var(--cp-red));
    border: none;
    border-radius: 8px;
    padding: 0.7rem 0;
    font-weight: 600;
}
#loginModal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 0, 51, 0.4);
}
#loginError {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: var(--cp-white);
}
/* 💡 Modal muito bem feito. Para exclusividade:
   ✅ Adiciona uma pequena borda dourada animada no hover do botão.
   ✅ Usa um ícone de 🔐 animado no título. */

/* ==================== SCROLL TO TOP ==================== */
#scrollTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
    background: linear-gradient(45deg, var(--cp-red-light), var(--cp-red));
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(255, 0, 51, 0.5);
    animation: floatUp 3s ease-in-out infinite;
    border-radius: 50%;
}
#scrollTop.visible {
    opacity: 1;
    visibility: visible;
}
@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
/* 💡 Botão perfeito. Pode-se adicionar um mini-som com JS no clique, mas opcional. */

/* ==================== REDES SOCIAIS ==================== */
.social-links a i {
    color: #555;
    transition: all 0.3s ease;
}
body.dark-mode .social-links a i {
    color: var(--cp-white);
}
.social-links a i:hover {
    color: var(--cp-red-light) !important;
    transform: scale(1.3);
    text-shadow: 0 0 10px rgba(255, 0, 51, 0.5);
}
/* 💡 Ideal. Para alinhar com PS5 style:
   ✅ Troca os ícones por versões custom SVG com gradiente vermelho-dourado.
   ✅ Adiciona um glow suave no hover. */