:root {
    --primary: #0b193c; /* Navy Blue */
    --primary-light: #222e52;
    --secondary: #79ff5b; /* Neon Green */
    --on-primary: #ffffff;
    --background: #fbf8ff;
    --surface: #ffffff;
    --surface-low: #f5f2fb;
    --text: #1b1b21;
    --text-muted: #454652;
    --error: #ba1a1a;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.5;
    padding-bottom: 80px; /* Espaço para a nav inferior */
}

h1, h2, h3, .font-headline {
    font-family: 'Lexend', sans-serif;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.top-bar {
    background-color: rgba(251, 248, 255, 0.8);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary);
    font-size: 28px;
}

.logo h1 {
    font-size: 18px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
    color: var(--primary);
}

.year-select {
    background-color: var(--surface-low);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 4px 8px;
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    outline: none;
    font-size: 14px;
}

.year-select:focus {
    border-color: var(--primary);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    height: 72px;
    display: flex;
    align-items: center;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.06);
    border-top: 1px solid rgba(0,0,0,0.05);
    z-index: 100;
}

.bottom-nav .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.nav-item span:first-child {
    font-size: 24px;
}

.nav-item span:last-child {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    width: 4px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 50%;
}

/* Content Sections */
main {
    padding-top: 24px;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 24px;
    letter-spacing: -2px;
}

/* Match Cards */
.match-card {
    background-color: var(--surface-low);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    transition: transform 0.2s;
}

.match-card:active {
    transform: scale(0.98);
}

.match-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.match-status {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.match-status.live {
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.match-status.live::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--secondary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.team img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.team span {
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}

.score {
    font-family: 'Lexend', sans-serif;
    font-size: 32px;
    font-weight: 900;
    font-style: italic;
    color: var(--primary);
}

.vs {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-muted);
    opacity: 0.3;
}

/* Table */
.table-container {
    background-color: var(--surface-low);
    border-radius: 20px;
    overflow: hidden;
}

.sticky-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--primary) transparent;
}

.sticky-table::-webkit-scrollbar {
    height: 4px;
    display: block;
}

.sticky-table::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.sticky-table table {
    min-width: 600px;
}

/* Date Pill */
.date-pill {
    background-color: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    display: inline-block;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    padding: 24px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--surface-low);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.event-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.event-row:last-child {
    border-bottom: none;
}

.campaign-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: var(--surface-low);
}

.result-badge {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    color: white;
}

.badge-v { background: #2e7d32; }
.badge-e { background: #f9a825; }
.badge-d { background: #d32f2f; }

.sticky-col {
    position: sticky;
    z-index: 10;
    background-color: var(--surface);
}

tr:nth-child(even) .sticky-col {
    background-color: var(--surface-low);
}

/* Offset das colunas fixas */
.col-pos {
    left: 0;
    width: 40px;
    min-width: 40px;
}

.col-team {
    left: 40px;
    width: 140px;
    min-width: 140px;
}

.col-pts {
    left: 180px;
    width: 45px;
    min-width: 45px;
    box-shadow: 4px 0 8px rgba(0,0,0,0.05);
}

/* Destaques */
.pts-highlight {
    background-color: #48fe20 !important;
    color: var(--primary) !important;
    font-weight: 900 !important;
}

.highlight-pos {
    color: var(--secondary) !important;
    font-weight: 900 !important;
}

.sg-pos { color: #2e7d32; } /* Verde */
.sg-neg { color: #d32f2f; } /* Vermelho */

thead .sticky-col {
    background-color: var(--primary) !important;
    z-index: 20;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 12px 8px;
    text-align: center;
}

td {
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.td-team {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.td-team img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.pts {
    font-weight: 900;
    color: var(--primary);
}

/* Buttons */
.btn-neon {
    background-color: var(--secondary);
    color: var(--primary);
    border: none;
    padding: 12px 24px;
    border-radius: 100px;
    font-family: 'Lexend', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(121, 255, 91, 0.4);
    transition: all 0.2s;
}

.btn-neon:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(121, 255, 91, 0.6);
}

.btn-neon:active {
    transform: scale(0.95);
}

/* Round Selector */
.round-selector {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 16px 0;
    margin-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.round-selector::-webkit-scrollbar {
    height: 4px;
    display: block;
}

.round-selector::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.round-btn {
    flex: 0 0 auto;
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.6);
    border: 2px solid transparent;
    padding: 6px 10px;
    border-radius: 10px;
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 44px;
    text-align: center;
}

.round-btn.active {
    background-color: var(--secondary);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(121, 255, 91, 0.4);
}

/* Table Toggle */
.table-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.toggle-btn {
    flex: 1;
    background-color: var(--surface-low);
    color: var(--text-muted);
    border: none;
    padding: 12px;
    border-radius: 15px;
    font-family: 'Lexend', sans-serif;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(11, 25, 60, 0.2);
}

.table-num {
    font-size: 11px;
    font-weight: 900;
    font-family: 'Lexend', sans-serif;
    color: var(--text-muted);
}

.table-row-separator td {
    border-top: 1px dashed rgba(0,0,0,0.15) !important;
    padding: 4px 0 !important;
    background: rgba(0,0,0,0.02);
}

.pos-muted {
    color: #999 !important;
    font-weight: 600 !important;
}

/* Cards Genéricos */
.generic-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: 1px dashed #48fe20;
    text-align: center;
}

.generic-card .generic-title {
    font-family: 'Lexend', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--primary);
    font-style: italic;
    opacity: 0.3;
}

.generic-card .generic-subtitle {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer Criador */
.site-footer {
    padding: 30px 0 110px 0; /* Espaço para a nav-bar no mobile */
    text-align: center;
    opacity: 0.6;
}

.site-footer p {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999; /* Cor cinza */
    margin-bottom: 12px;
}

.site-footer img {
    height: 72px; /* Triplicado o tamanho (era 24px) */
    object-fit: contain;
    transition: all 0.3s;
    cursor: pointer;
}

.site-footer:hover {
    opacity: 1;
}

.admin-footer {
    padding: 40px 0;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}


