/* =========================================
   VARIÁVEIS GLOBAIS E DESIGN SYSTEM
   ========================================= */
:root {
    /* Cores Principais - Inspirado no Hattrick */
    --color-green: #007E3A;
    --color-green-dark: #005626;
    --color-green-light: #28a745;
    --color-yellow: #FFBD00; 
    --color-yellow-dark: #D49D00;
    --color-yellow-light: #FFD040;
    --color-white: #FFFFFF;
    
    /* Tons Neutros */
    --color-bg-page: #F4F6F8;
    --color-text-main: #212529;
    --color-text-muted: #555555;
    --color-border: #E0E0E0;
    
    /* Sombras e 3D */
    --shadow-soft: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-3d-green: 0 5px 0px var(--color-green-dark);
    --shadow-3d-yellow: 0 5px 0px var(--color-yellow-dark);
    --shadow-3d-white: 0 5px 0px #E0E0E0;
    
    /* Raios de Borda */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 20px;
    
    /* Tipografia */
    --font-main: 'Inter', sans-serif;
}

/* =========================================
   RESETS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Botões 3D */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    text-align: center;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.btn-3d:active {
    transform: translateY(5px);
}

.btn-yellow {
    background-color: var(--color-yellow);
    color: var(--color-text-main);
    box-shadow: var(--shadow-3d-yellow);
}

.btn-yellow:active {
    box-shadow: 0 0px 0px var(--color-yellow-dark);
}

.btn-green-light {
    background-color: var(--color-green-light);
    color: var(--color-white);
    box-shadow: 0 5px 0px #1e7e34;
}

.btn-green-light:active {
    box-shadow: 0 0px 0px #1e7e34;
}

.btn-espanol {
    display: inline-block;
    margin-top: 15px;
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: underline;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.btn-espanol:hover {
    opacity: 1;
    color: var(--color-yellow);
}

/* Divisores */
.divider {
    height: 4px;
    width: 60px;
    background-color: var(--color-yellow);
    border-radius: 2px;
    margin: 15px 0 25px 0;
}
.dark-divider {
    background-color: var(--color-green-dark);
}

/* =========================================
   NAVBAR & MENU
   ========================================= */
.navbar {
    background-color: var(--color-green);
    color: var(--color-white);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
}
.logo img {
    max-height: 45px;
    height: auto;
    width: auto;
    object-fit: contain;
}
.logo-text { color: var(--color-yellow); }
.logo-rest { color: var(--color-white); }

/* Menu Desktop */
.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--color-green-dark);
    color: var(--color-yellow);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    min-width: 200px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
    padding: 10px 0;
    border-bottom: 3px solid var(--color-green);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--color-text-main);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.dropdown a:hover {
    background-color: var(--color-bg-page);
    color: var(--color-green);
    padding-left: 25px; /* Subtle hover effect */
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s linear;
}

/* =========================================
   1. HERO SECTION
   ========================================= */
.hero {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    background-color: var(--color-green);
    background-image: url('imagens/fundo-estadio.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--color-white);
    display: flex;
    align-items: center;
    position: relative;
    padding: 60px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-green-dark);
    opacity: 0.85;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-logo {
    max-height: 180px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 30px;
    display: inline-block;
    filter: drop-shadow(3px 3px 0px var(--color-green-dark));
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px var(--color-green-dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: #e0f2e9;
    line-height: 1.5;
}

.hero-impact-phrase {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--color-yellow);
    font-weight: 600;
    margin-bottom: 40px;
    border-left: 4px solid var(--color-yellow);
    padding-left: 15px;
}

/* =========================================
   2. DIFERENCIAIS SECTION
   ========================================= */
.differentials {
    padding: 80px 0;
    background-color: var(--color-bg-page);
    text-align: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.diff-card {
    background: var(--color-white);
    padding: 40px 25px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 0px var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

.diff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 0px var(--color-green-light);
    border-color: var(--color-green-light);
}

.diff-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.diff-card h3 {
    font-size: 1.25rem;
    color: var(--color-text-main);
    margin-bottom: 12px;
}

.diff-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.diff-support-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-green-dark);
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
}

/* =========================================
   3. IMERSÃO SECTION
   ========================================= */
.immersion {
    padding: 80px 0;
    background-color: var(--color-yellow);
    color: var(--color-text-main);
}

.split-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.split-content {
    flex: 1;
}

.split-content .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.split-content p {
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.immersion-final.highlight {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-green-dark);
    margin-top: 30px;
}

/* Pseudo Hattrick Pitch */
.split-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tactical-board {
    width: 300px;
    height: 400px;
    background-color: #3f9a46; /* Grass green */
    border: 5px solid white;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background-image: repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.1) 40px, rgba(255,255,255,0.1) 80px);
}

.pitch-center {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    background: white;
}
.pitch-center::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px solid white;
    border-radius: 50%;
}

.penalty-box {
    position: absolute;
    width: 140px;
    height: 60px;
    border: 2px solid white;
    left: 50%;
    transform: translateX(-50%);
}
.penalty-top { top: 0; border-top: none; }
.penalty-bottom { bottom: 0; border-bottom: none; }

.player {
    width: 16px;
    height: 16px;
    background-color: var(--color-yellow);
    border: 2px solid var(--color-text-main);
    border-radius: 50%;
    position: absolute;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.p1 { bottom: 20px; left: 50%; transform: translateX(-50%); background: white; } /* GK */
.p2 { bottom: 100px; left: 30%; } /* DF */
.p3 { bottom: 100px; right: 30%; } /* DF */
.p4 { top: 180px; left: 50%; transform: translateX(-50%); } /* MID */
.p5 { top: 60px; left: 50%; transform: translateX(-50%); } /* FW */

/* =========================================
   4. RANKING SECTION
   ========================================= */
.ranking-section {
    padding: 100px 0;
    background-color: var(--color-white);
}

.section-header .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-green-dark);
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.ranking-wrapper {
    max-width: 800px;
    margin: 40px auto 30px auto;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.hattrick-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.hattrick-table th {
    background-color: var(--color-green);
    color: var(--color-white);
    padding: 15px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.hattrick-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.hattrick-table tr:last-child td {
    border-bottom: none;
}

.hattrick-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Highlighting Top 3 */
.hattrick-table tr.top-3 td {
    background-color: #FFFCDF;
}

.col-pos { width: 80px; text-align: center; font-weight: 700; color: var(--color-text-muted); }
.col-pts { width: 100px; text-align: right; font-weight: 700; }
.rank-medal { font-size: 1.4rem; }

.ranking-final {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-green-dark);
    font-style: italic;
    margin-top: 20px;
}

/* =========================================
   5. COMUNIDADE SECTION
   ========================================= */
.community {
    padding: 80px 0;
    background-color: var(--color-bg-page);
}

.community .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-green-dark);
}

.community-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: var(--color-text-muted);
}

.community-impact {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-green);
    font-style: italic;
}

/* =========================================
   6. CTA FINAL SECTION
   ========================================= */
.cta-final {
    padding: 100px 0;
    background-color: var(--color-green-dark);
    color: var(--color-white);
}

.cta-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: #e0f2e9;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: #111;
    color: #ccc;
    padding: 80px 0 30px 0;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    flex: 1 1 250px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.footer-logo p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-links-container {
    display: flex;
    flex: 2 1 500px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    flex: 1 1 150px;
}

.footer-column h4 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    color: #bbb;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-column ul a:hover {
    color: var(--color-yellow);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .footer-flex {
        flex-direction: column;
        text-align: center;
    }
    .footer-logo {
        margin: 0 auto;
    }
    .footer-logo p {
        margin: 0 auto;
    }
    .footer-links-container {
        justify-content: center;
        text-align: center;
    }
    .footer-column ul a:hover {
        transform: none;
    }
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   RESPONSIVIDADE (MOBILE)
   ========================================= */
@media (max-width: 900px) {
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-green);
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-list.active {
        display: flex;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        transform: none;
        background-color: var(--color-green-dark);
        border: none;
        display: none;
        padding: 0;
    }

    .has-dropdown.active .dropdown {
        display: block;
    }

    .dropdown a {
        color: var(--color-white);
        padding: 10px 40px;
    }
    
    .dropdown a:hover {
        background-color: rgba(255,255,255,0.1);
        color: var(--color-yellow);
    }

    .menu-toggle {
        display: flex;
    }

    /* Transform menu toggle to X when active */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .split-container {
        flex-direction: column;
        text-align: center;
    }

    .split-image {
        margin-top: 40px;
    }

    .footer-flex {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-logo {
        max-height: 120px;
        margin-bottom: 20px;
    }
    .cta-title {
        font-size: 2.2rem;
    }
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    .btn-3d:active {
        transform: translateY(3px);
    }
    .hattrick-table th, .hattrick-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
    .col-pos { width: 50px; }
}

/* =========================================
   ESPAÑOL EXTENSIONS
   ========================================= */
.dropdown-right {
    left: auto;
    right: 0;
}

.jornada-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.jornada-step {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    font-weight: 700;
    color: var(--color-text-main);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

/* =========================================
   PÁGINA CAMPEÕES (NOVO DESIGN)
   ========================================= */
.champ-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 5px;
}

.champ-tab {
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all 0.2s ease;
    position: relative;
    font-family: var(--font-main);
}

.champ-tab:hover {
    color: var(--color-green);
    background: rgba(0, 126, 58, 0.05);
}

.champ-tab.active {
    color: var(--color-green-dark);
    font-weight: 700;
}

.champ-tab.active::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-green-dark);
    border-radius: 3px 3px 0 0;
}

@media (max-width: 768px) {
    .champ-selector { border-bottom: none; }
    .champ-tab {
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        margin-bottom: 5px;
        width: calc(50% - 4px);
    }
    .champ-tab.active {
        background: var(--color-green);
        color: var(--color-white);
        border-color: var(--color-green);
    }
    .champ-tab.active::after { display: none; }
}

.champ-pane {
    display: none;
    animation: fadePaneIn 0.4s ease-out forwards;
}

.champ-pane.active-pane {
    display: block;
}

.pane-header {
    text-align: center;
    margin-bottom: 30px;
}

.pane-header h2 {
    font-size: 2rem;
    color: var(--color-text-main);
    font-weight: 800;
}

.champ-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 850px;
    margin: 0 auto;
}

.c-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.c-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: var(--color-green-light);
}

.c-card-header {
    background: #f8f9fa;
    padding: 14px 20px;
    font-weight: 700;
    color: var(--color-text-main);
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.c-card-body {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: center;
}

@media (max-width: 768px) {
    .c-card-body {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.c-row {
    margin-bottom: 0;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    color: var(--color-text-main);
    line-height: 1.3;
}

.c-medal {
    font-size: 1.3rem;
    margin-right: 12px;
}

.c-label {
    color: var(--color-text-muted);
    font-weight: 600;
    margin-right: 8px;
    font-size: 0.95rem;
}

.c-label.vice-label {
    font-weight: 400;
}

.champ-name {
    color: var(--color-green-dark);
    font-weight: 800;
    font-size: 1.05rem;
}

.flag-icon {
    cursor: help;
    margin-left: 5px;
    font-size: 1.15em;
    display: inline-block;
    transition: transform 0.2s;
}


/* =========================================
   PÁGINA DE CALENDÁRIO VISUAL MENSAL
   ========================================= */
.cal-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    background: var(--color-white);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
}

.legend-item {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--color-text-main);
    font-size: 0.95rem;
}

.l-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 8px;
}
.l-yellow { background-color: #ffd700; box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
.l-blue { background-color: #007bff; box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); }
.l-green { background-color: #28a745; box-shadow: 0 0 5px rgba(40, 167, 69, 0.5); }
.l-orange { background-color: #fd7e14; box-shadow: 0 0 5px rgba(253, 126, 20, 0.5); }

.cal-months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.cal-month {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.cal-month:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.cal-header {
    background: var(--color-green-dark);
    color: var(--color-white);
    text-align: center;
    padding: 12px 0;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 15px;
    gap: 5px;
}

.cal-day-name {
    text-align: center;
    font-weight: 800;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.cal-day {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-main);
    background: #f1f3f5;
    position: relative;
    cursor: default;
}

.cal-day.empty {
    background: transparent;
    pointer-events: none;
}

.cal-day.has-event {
    cursor: pointer;
    color: #333;
    font-weight: 800;
    transition: transform 0.2s, filter 0.2s;
}

.cal-day.has-event:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.event-yellow { background-color: #ffd700; color: #333; }
.event-blue { background-color: #007bff; color: #fff; }
.event-green { background-color: #28a745; color: #fff; }
.event-orange { background-color: #fd7e14; color: #fff; }

.ev-icon {
    font-size: 0.7rem;
    margin-top: -2px;
}

/* Custom CSS Tooltip */
.cal-day.has-event[data-tooltip] {
    position: relative;
}
.cal-day.has-event[data-tooltip]:hover::after,
.cal-day.has-event[data-tooltip]:active::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-weight: 500;
}
.cal-day.has-event[data-tooltip]:hover::before,
.cal-day.has-event[data-tooltip]:active::before {
    content: '';
    position: absolute;
    bottom: calc(115% - 8px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
    z-index: 100;
    pointer-events: none;
}

/* =========================================
   ELITE FAHT (HALL OF FAME)
   ========================================= */
.elite-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    background: var(--color-white);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
}
.e-legend-item {
    display: flex;
    align-items: center;
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 0.95rem;
}
.e-legend-item span {
    margin-left: 8px;
    color: var(--color-text-muted);
}
.elite-block {
    margin-bottom: 50px;
}
.elite-block-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
.elite-block-header h2 {
    font-size: 1.8rem;
    color: var(--color-green-dark);
    font-weight: 800;
    display: flex;
    align-items: center;
}
.elite-block-header h2::before {
    content: '👑';
    margin-right: 12px;
    font-size: 1.6rem;
}
.elite-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}
.e-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.e-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--color-green-light);
}
.e-team {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
}
.e-trophies {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.e-trophy {
    font-size: 1.4rem;
    cursor: help;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: #f8f9fa;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    transition: transform 0.2s, background 0.2s;
    position: relative;
}
.e-trophy:hover {
    transform: scale(1.15) rotate(5deg);
    background: #fff;
    border-color: var(--color-green);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,126,58,0.15);
}
.e-trophy[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-weight: 600;
    font-family: var(--font-main);
}
.e-trophy[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(125% - 5px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
    pointer-events: none;
}
@media (max-width: 600px) {
    .e-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    .e-trophies {
        justify-content: center;
    }
    .elite-block-header {
        text-align: center;
    }
    .elite-block-header h2 {
        justify-content: center;
    }
}

/* =========================================
   TABELA DE LIGA (PONTOS CORRIDOS)
   ========================================= */
.league-table-wrapper {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    overflow: hidden;
    margin: 20px auto 40px auto;
    max-width: 800px;
}
.league-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.league-table th {
    background: var(--color-green-dark);
    color: var(--color-white);
    padding: 15px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.league-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-main);
    font-weight: 500;
    transition: background 0.2s;
}
.league-table tr:last-child td {
    border-bottom: none;
}
.league-table tr:hover td {
    background: #f1f8f3;
}
/* POSITIONS STYLING */
.pos-col { width: 80px; text-align: center; }
.pts-col { width: 80px; text-align: right; font-weight: 800 !important; color: var(--color-green-dark); }
.pos-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}
.pos-liberta { background-color: var(--color-green-dark); }
.pos-liberta-extra { background-color: #198754; }
.pos-sula { background-color: #007bff; }
.pos-rebaixado { background-color: #dc3545; }
.pos-normal { background-color: #edf2f7; color: #64748b; }

.champ-row td { font-weight: 800; background-color: rgba(0, 126, 58, 0.04); }
.champ-row td:nth-child(2) { color: var(--color-green-dark); }
.champ-label { font-size: 0.75rem; color: var(--color-text-muted); font-weight: 600; margin-left: 8px; text-transform: uppercase; }

.league-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
    border: 1px solid var(--color-border);
}
.l-item { display: flex; align-items: center; }
.l-color { width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; }

/* =========================================
   MATA-MATA (COPAS E FASES FINAIS)
   ========================================= */
.cup-stage {
    margin-bottom: 40px;
}
.cup-stage-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.cup-final-card {
    background: linear-gradient(135deg, var(--color-green-dark) 0%, #0c3e26 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 35px 30px;
    margin: 0 auto 50px auto;
    max-width: 750px;
    color: var(--color-white);
    text-align: center;
    border: 2px solid #ffd700;
    position: relative;
    overflow: hidden;
}
.cup-final-card::before {
    content: '🏆';
    font-size: 8rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    pointer-events: none;
}
.cup-match {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}
.cup-team {
    flex: 1;
    font-size: 1.3rem;
    font-weight: 700;
}
.cup-final-card .cup-team.neutral {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}
.cup-team.winner {
    color: #ffd700;
    font-size: 1.6rem;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(255,215,0,0.3);
}
.cup-team.loser {
    opacity: 0.8;
}
.cup-vs {
    font-weight: 900;
    font-size: 1.3rem;
    color: rgba(255,255,255,0.5);
    padding: 0 20px;
    text-align: center;
}
.cup-final-card .cup-vs {
    color: #ffd700;
    font-size: 1.6rem;
}
.cup-score {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-top: 5px;
}
.cup-score small {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
}
.cup-champion {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 25px;
    color: #ffd700;
    text-align: center;
}
.cup-semis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto 50px auto;
}
.cup-match-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 25px;
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cup-match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: var(--color-green-light);
}
.cup-match-card .cup-team {
    font-size: 1.1rem;
    color: var(--color-text-main);
}
.cup-match-card .cup-team.neutral {
    font-weight: 700;
}
.cup-match-card .cup-team.winner {
    color: var(--color-green-dark);
    font-weight: 800;
    text-shadow: none;
}
.cup-match-card .cup-vs {
    color: var(--color-text-main);
    text-align: center;
    font-size: 1.4rem;
}
.cup-match-card .cup-score {
    color: var(--color-text-main);
}
.cup-match-card .cup-score small {
    color: var(--color-text-muted);
}
.cup-phases-list {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    overflow: hidden;
}
.cup-phase-item {
    border-bottom: 1px solid var(--color-border);
}
.cup-phase-item:last-child {
    border-bottom: none;
}
.cup-phase-header {
    background: #f8f9fa;
    padding: 12px 20px;
    font-weight: 800;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
}
.cup-phase-matches {
    padding: 15px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.c-phase-match {
    font-size: 0.95rem;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 12px 15px;
    border-radius: 6px;
}
.c-phase-match .team {
    flex: 1;
    font-weight: 600;
}
.c-phase-match .team.home { text-align: right; }
.c-phase-match .team.away { text-align: left; }
.c-phase-match .score-badge {
    margin: 0 15px;
    background: var(--color-bg-page);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text-main);
    text-align: center;
    min-width: 70px;
}
.c-phase-match .score-badge small {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-top: 2px;
}

@media (max-width: 768px) {
    .cup-match { flex-direction: column; gap: 15px; }
    .cup-vs { padding: 5px 0; }
    .cup-semis { grid-template-columns: 1fr; }
    .league-table th, .league-table td { padding: 12px 10px; font-size: 0.9rem; }
    .league-table tr:nth-child(1) td { font-size: 1rem; }
    
    .c-phase-match {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .c-phase-match .team.home, 
    .c-phase-match .team.away { 
        text-align: center; 
    }
    .c-phase-match .score-badge {
        margin: 5px 0;
    }
}



.pos-sula-extra { background: #003366; color: white; }
