﻿/* Estilização do Dropdown (Select) */
.fifa-select {
    padding: 10px 15px;
    margin-top: 10px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--fifa-dark);
    background-color: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    /* Largura adaptável */
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
    /* Aparência customizada */
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23003399' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
}

    /* Efeito de Foco */
    .fifa-select:focus {
        border-color: var(--fifa-blue);
        box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.1);
    }

/* Estilização do Campo de Texto */
.fifa-input {
    width: 45px;
    padding: 12px 16px;
    font-family: inherit; /* Herda o Segoe UI do seu body */
    font-size: 16px;
    color: var(--fifa-dark);
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-sizing: border-box; /* Garante que o padding não estoure a largura */
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

    /* Placeholder (Texto de fundo) */
    .fifa-input::placeholder {
        color: #aaa;
        font-size: 16px;
    }

    /* Estado de Foco - Realce com a cor FIFA Blue */
    .fifa-input:focus {
        outline: none;
        border-color: var(--fifa-blue);
        box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.15);
        background-color: #fff;
    }

    /* Estado de Hover */
    .fifa-input:hover {
        border-color: #bbb;
    }



:root {
    --fifa-blue: #003399;
    --fifa-dark: #001a4d;
    --highlight: #00e0ff;
    --bg-gray: #f4f7f6;
    --border: #ddd;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-gray);
    padding: 5px; /* Reduzido para mobile */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

h2 {
    color: var(--fifa-dark);
    margin: 20px 0;
    text-align: center;
}

.world-cup-table {
    width: 100%;
    max-width: 1100px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    overflow: hidden;
    border: 1px solid var(--border);
}

/* Container de Rolagem Otimizado */
.scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Scroll suave no iOS */
    scrollbar-width: thin; /* Scrollbar discreta no Firefox */
}

/* Linha do Grupo */
.row {
    display: flex;
    min-width: 550px; /* Força a linha a não quebrar */
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

    .row:last-child {
        border-bottom: none;
    }

    .row:hover {
        background-color: #f0faff;
    }

/* Células */
.cell {
    padding: 16px 12px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    color: #444;
    border-right: 1px solid #eee;
    white-space: nowrap; /* Impede que nomes de países quebrem linha */
}

/* COLUNA FIXA (STICKY): O segredo da responsividade neste caso */
.group-tag {
    flex: 0 0 80px; /* Largura fixa menor para mobile */
    background: linear-gradient(135deg, var(--fifa-dark), var(--fifa-blue));
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-right: 4px solid var(--highlight);
    /* Mantém o nome do grupo visível enquanto desliza as seleções */
    position: sticky;
    left: 0;
    z-index: 2;
}

.team-name {
    font-weight: 500;
}

