/* =========================
   FIFA WORLD CUP 2026 SIMULATOR
   STYLE.CSS
   ========================= */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #050b1a;
    color: #fff;
    overflow-x: hidden;
}

/* FUNDO ESTÁDIO */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/stadium.webp') center/cover no-repeat;
    filter: brightness(0.25) saturate(1.2);
    z-index: -2;
}

/* OVERLAY ESCURO */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(0, 140, 255, 0.25), transparent 60%),
                radial-gradient(circle at bottom, rgba(255, 215, 0, 0.15), transparent 60%);
    z-index: -1;
}

/* HEADER */
header {
    text-align: center;
    padding: 30px 10px;
}

.logo {
    width: 90px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.6));
}

header h1 {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
}

header p {
    opacity: 0.7;
    margin-top: 8px;
}

/* TOOLBAR */
.toolbar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
}

.toolbar button {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 10px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.toolbar button:hover {
    transform: scale(1.05);
    background: rgba(0, 140, 255, 0.25);
    border-color: rgba(0, 140, 255, 0.5);
}

/* BRACKET PRINCIPAL */
.bracket {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 20px;
    flex-wrap: wrap;
}

/* COLUNAS */
.column {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 15px;
    min-width: 230px;
    backdrop-filter: blur(12px);
}

.column h2 {
    text-align: center;
    font-size: 16px;
    margin-bottom: 10px;
    color: #ffd700;
}

/* MATCHES */
.matches {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* CARD JOGO */
.match {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.match:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 140, 255, 0.6);
}

/* TIMES */
.team {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin: 4px 0;
}

.team span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* CAMPEÃO */
.champion-area {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

#championCard {
    margin-top: 10px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    display: inline-block;
    animation: glow 2s infinite alternate;
}

#championCard img {
    width: 90px;
    margin-bottom: 10px;
}

#championCard h3 {
    font-size: 18px;
    font-weight: 800;
}

/* ANIMAÇÃO CAMPEÃO */
@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    }
    to {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    }
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    opacity: 0.5;
    font-size: 12px;
}

/* RESPONSIVO BÁSICO */
@media (max-width: 900px) {
    .bracket {
        flex-direction: column;
        align-items: center;
    }

    .column {
        width: 90%;
    }
}