/* |--------------------------------------------------------------------------
| CONTROLUS SPORT - MASTER GLOBAL STYLES (2026)
|--------------------------------------------------------------------------
*/

/* 1. ESTRUTURA BASE & RESET */
/* |--------------------------------------------------------------------------

/* 1. ESTRUTURA BASE & RESET */
/* 1. ESTRUTURA BASE & RESET - ESTRATÉGIA ABSOLUTA */
html {
    height: 100%;
    margin: 0;
}

/* O rodape fica no fim da pagina via flexbox (body/main no layouts/portal.blade.php),
   nao por um padding-bottom fixo no body -- o header agora e sticky (nao mais
   fixed-top), entao tambem nao precisa de padding-top compensando a altura dele. */

.mt-25 {margin-top: 25px;}
.mt-50 {margin-top: 50px;}
.mt-75 {margin-top: 75px;}
.mt-100 {margin-top: 100px;}
.mt-125 {margin-top: 125px;}
.mt-150 {margin-top: 150px;}

.mb-25 {margin-bottom: 25px;}
.mb-50 {margin-bottom: 50px;}
.mb-75 {margin-bottom: 75px;}
.mb-100 {margin-bottom: 100px;}
.mb-125 {margin-bottom: 125px;}
.mb-150 {margin-bottom: 150px;}

.pt-25 {padding-top: 25px;}
.pt-50 {padding-top: 50px;}
.pt-75 {padding-top: 75px;}
.pt-100 {padding-top: 100px;}
.pt-125 {padding-top: 125px;}
.pt-150 {padding-top: 150px;}

.pb-25 {padding-bottom: 25px;}
.pb-50 {padding-bottom: 50px;}
.pb-75 {padding-bottom: 75px;}
.pb-100 {padding-bottom: 100px;}
.pb-125 {padding-bottom: 125px;}
.pb-150 {padding-bottom: 150px;}

/* Garante que o container ocupe o espaço necessário */
.main-content-wrapper {
    display: block;
    width: 100%;
    position: relative;
    /* Adiciona um respiro no final para as seções não colarem no footer */
    padding-bottom: 50px; 
}

/* Limpa qualquer flutuação de elementos internos (BI Cards, Torneios) */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Força o footer a não encolher */
footer.footer-global {
    flex-shrink: 0;
}

/* Garante que containers internos não limitem a altura */
.content-wrapper, .clearfix {
    display: block;
    width: 100%;
    height: auto;
}

/* 2. MENU SUPERIOR (HEADER) - estrutura reaproveitada do controlus_gov */
.topbar { background: var(--primary-color); color: rgba(255,255,255,.88); font-size: .82rem; }
.topbar a { color: rgba(255,255,255,.88); text-decoration: none; }
.social-pill { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background .15s; }
.social-pill:hover { background: rgba(255,255,255,.28); color: #fff; }

.site-header { background: #fff; box-shadow: 0 1px 0 rgba(15,23,42,.06); position: sticky; top: 0; z-index: 1030; }
.site-header .container { position: relative; z-index: 1; }

.site-logo { text-decoration: none; position: relative; z-index: 1; }
.site-logo img { max-height: 44px; }
.site-logo .logo-fallback { width: 44px; height: 44px; border-radius: .75rem; background: var(--primary-color); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; }
.site-logo .brand-title { color: #1f2937; }
.site-logo .brand-subtitle { color: #6b7280; }

.main-nav .nav-link { font-weight: 600; color: #33404d; padding: .6rem .9rem !important; border-radius: .6rem; font-size: .93rem; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--primary-color); background: var(--primary-soft); }
.main-nav .dropdown-menu { border: 0; border-radius: 1rem; box-shadow: 0 14px 34px -12px rgba(15,23,42,.22); padding: .5rem; }
.main-nav .dropdown-item { border-radius: .6rem; padding: .55rem .8rem; font-size: .89rem; font-weight: 500; }
.main-nav .dropdown-item:hover { background: var(--primary-soft); color: var(--primary-color); }

/* Campo de busca do cabecalho -- input-group em formato de pilula. */
.search-pill-wrap { border-radius: 999px; overflow: hidden; background: #f1f4f8; }
.search-pill { background: #f1f4f8 !important; border: 0 !important; box-shadow: none !important; }
.search-pill:focus { background: #fff !important; }
#mobileNav .search-pill-wrap, #mobileNav .search-pill { background: rgba(255,255,255,.15) !important; }
#mobileNav .search-pill::placeholder { color: rgba(255,255,255,.75); }
#mobileNav .search-pill { color: #fff !important; }

.btn-brand { background: var(--secondary-color); border-color: var(--secondary-color); color: var(--primary-color) !important; font-weight: 800; }
.btn-brand:hover { background: color-mix(in srgb, var(--secondary-color) 85%, black); border-color: color-mix(in srgb, var(--secondary-color) 85%, black); color: var(--primary-color) !important; }
.text-brand { color: var(--secondary-color); }

/* Menu mobile (offcanvas): por padrao o Bootstrap usa 400px de largura e
   fundo branco -- em telas pequenas isso visualmente cobre a tela quase
   toda. Reduz pra 80% da viewport e usa a cor primaria do tenant, com os
   textos/icones internos ajustados pro contraste ficar legivel. */
#mobileNav { width: 80vw; max-width: 340px; background: var(--primary-color); color: #fff; }
#mobileNav .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,.15); }
#mobileNav .offcanvas-header span { color: #fff !important; }
#mobileNav .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
#mobileNav .nav-link { color: rgba(255,255,255,.9) !important; }
#mobileNav .nav-link:hover, #mobileNav .nav-link:focus { color: #fff !important; background: rgba(255,255,255,.12); }
#mobileNav .text-muted { color: rgba(255,255,255,.65) !important; }
#mobileNav .admin-link-mobile { color: rgba(255,255,255,.6) !important; }


/* 3. HERO & BANNERS */
.hero-swiper { width: 100%; height: 480px; }
.hero-slide { height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; color: white; position: relative; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; }
.hero-content h1 { font-weight: 900; text-transform: uppercase; text-shadow: 0 4px 15px rgba(0,0,0,0.3); line-height: 1; margin-bottom: 1rem; }

/* 4. TÍTULOS E CARDS GLOBAIS */
.section-title-gov {
    font-weight: 800;
    border-left: 6px solid var(--primary-color);
    padding-left: 15px;
    text-transform: uppercase;
    color: #334155;
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.card-larose {
    border: none;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    background: white;
    transition: all 0.3s ease;
    height: 100%;
}

.card-larose:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.venue-img { height: 200px; object-fit: cover; width: 100%; }

/* 5. DASHBOARD BI (CARDS VIBRANTES) */
.stat-card-vibrant {
    border-radius: 1.5rem;
    padding: 2.5rem 1.5rem;
    color: white;
    border: none;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card-vibrant:hover { transform: translateY(-10px) rotate(1deg); }
.stat-card-vibrant i { font-size: 2.5rem; margin-bottom: 10px; opacity: 0.9; }
.stat-card-vibrant h3 { font-size: 2.8rem; font-weight: 900; margin: 0; line-height: 1; }
.stat-card-vibrant small { font-weight: 800; text-transform: uppercase; opacity: 0.85; letter-spacing: 1.5px; font-size: 0.7rem; }

.bg-stat-athletes { background: linear-gradient(135deg, #4f46e5, #3b82f6); }
.bg-stat-venues { background: linear-gradient(135deg, #059669, #10b981); }
.bg-stat-tournaments { background: linear-gradient(135deg, #d97706, #f59e0b); }

/* Cores Adicionais para Landing Page */
.bg-blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.bg-purple { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.bg-orange { background: linear-gradient(135deg, #ea580c, #f97316); }
.bg-pink { background: linear-gradient(135deg, #db2777, #f472b6); }

/* 6. CENTRAL DE EVENTOS (TABELAS E BOTÕES) */
.tournament-wrapper { 
    display: flex; 
    gap: 15px; 
    overflow-x: auto; 
    padding: 15px 5px; 
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.tournament-wrapper::-webkit-scrollbar { display: none; }

.tournament-btn { 
    min-width: 260px; 
    background: white; 
    padding: 22px; 
    border-radius: 1.5rem; 
    cursor: pointer; 
    border: 2px solid #e2e8f0; 
    transition: 0.3s; 
    text-align: left;
    position: relative;
}

.tournament-btn.active { 
    border-color: var(--primary-color); 
    background: rgba(var(--primary-rgb), 0.04); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); 
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
    font-weight: 700;
}

/* |--------------------------------------------------------------------------
| 7. FOOTER GLOBAL - estrutura reaproveitada do controlus_gov
|--------------------------------------------------------------------------
*/

.footer-global.site-footer {
    flex-shrink: 0; /* Impede que o footer seja esmagado */
    width: 100%;
    margin-top: auto; /* Alinhamento ao fundo via Flexbox do Body */
    background: var(--primary-color);
    color: rgba(255,255,255,.82);
}

.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h6 { color: #fff; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-bottom { background: color-mix(in srgb, var(--primary-color) 85%, black); font-size: .82rem; }

/* Responsividade do Footer */
@media (max-width: 991px) {
    .site-footer { text-align: center; }
}
/* Card de Resultado Estilo 'Glass-Modern' */
.game-card-modern {
    background: #ffffff;
    border: none !important;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 5px solid var(--primary-color) !important; /* Indicador lateral */
}

.game-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.game-card-info {
    border-color: #0dcaf0 !important; /* Cor diferente para 'Próxima Partida' */
}

.score-display {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    background: #f8fafc;
    padding: 8px 15px;
    border-radius: 10px;
    color: var(--primary-color);
    min-width: 80px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

/* 8. RESPONSIVIDADE & AJUSTES MOBILE */
@media (max-width: 991px) {
    .hero-swiper { height: 380px; }
    .hero-content h1 { font-size: 2.2rem; }
    
    .stat-card-vibrant { padding: 1.5rem; }
    .stat-card-vibrant h3 { font-size: 2.2rem; }
    
    .tournament-btn { min-width: 220px; padding: 15px; }
}

@media (max-width: 576px) {
    .section-title-gov { font-size: 1.1rem; }
    .hero-content h1 { font-size: 1.8rem; }
}