﻿/* ARQUIVO: css/estilo.css - VERSÃO 4.3 (FIFA RETURN) */

/* 1. CONFIGURAÇÕES GERAIS */
:root {
    --bg-dark: #0d1117;
    --bg-card: #161b22;
    --border: #30363d;
    --gold: #ffd700;
    --gold-dark: #b8860b;
    --green: #238636;
    --green-hover: #2ea043;
    --red: #f85149;
    --blue: #1f6feb;
    --text-main: #c9d1d9;
    --text-muted: #8b949e;
    --text-white: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
}

/* 2. NAVBAR */
.navbar {
    background-color: var(--bg-card);
    padding: 15px 30px;
    border-bottom: 2px solid var(--gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-white);
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-main);
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--gold);
}

.btn-login {
    background: var(--gold);
    color: #000 !important;
    padding: 8px 20px;
    border-radius: 5px;
}

/* Dropdowns */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--bg-card);
    min-width: 220px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
    /* FIX: Ponte invisível para não fechar o menu */
    padding-top: 10px;
    margin-top: 0;
    background-clip: padding-box;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main) !important;
    text-transform: none;
}

.dropdown-content a:hover {
    background: #21262d;
    color: var(--gold) !important;
}

/* 3. LAYOUT GERAL */
.container-main {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 60vh;
}

.page-title {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
    border-left: none;
    padding-left: 0;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
    text-align: center;
    padding-left: 0;
}

/* 4. GRIDS */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}



/* 5. CARDS GENÉRICOS DE LISTAGEM */
.camp-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s;
    min-height: 280px;
    /* Mais compacto */
}

.camp-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.camp-header {
    height: 130px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.camp-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #161b22);
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.camp-logo-mini {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: -30px;
    z-index: 2;
    background: #161b22;
    border-radius: 50%;
    padding: 5px;
    border: 1px solid #30363d;
}

.camp-body {
    padding: 20px 15px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* Badges e Botões */
.badge {
    background: var(--red);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    margin-left: 5px;
}

.status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 5;
}

.status-aberto {
    background: var(--green);
    color: white;
}

.status-andamento {
    background: var(--gold);
    color: black;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.btn-gold {
    background: var(--gold);
    color: #000;
}

.btn-primary {
    background: var(--green);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.btn-danger {
    background: var(--red);
    color: white;
}

input,
select {
    width: 100%;
    padding: 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: white;
    border-radius: 5px;
}

/* 6. MODAL E CROPPER */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--gold);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crop-container {
    max-height: 60vh;
    overflow: hidden;
    background: #000;
}

.crop-container img {
    max-width: 100%;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}


/* 7. FIFA PLAYER CARD STYLE */
.fifa-card-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
}

.fifa-card {
    position: relative;
    width: 300px;
    height: 450px;
    background: linear-gradient(135deg, #e6c268 0%, #a67c00 100%);
    /* Efeito Ouro */
    border-radius: 15px;
    clip-path: polygon(10% 0, 90% 0, 100% 15%, 100% 100%, 0 100%, 0 15%);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15);
    color: #3e3206;
    font-family: 'Arial Narrow', sans-serif;
    text-transform: uppercase;
    flex-shrink: 0;
}

.fifa-card::before {
    /* Borda interna decorativa */
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid rgba(62, 50, 6, 0.3);
    clip-path: polygon(10% 0, 90% 0, 100% 15%, 100% 100%, 0 100%, 0 15%);
    pointer-events: none;
}

.card-top-info {
    position: absolute;
    top: 35px;
    left: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
    font-size: 1.4rem;
    line-height: 1.1;
}

.card-rating {
    font-size: 2.2rem;
}

.card-position {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.card-club-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.card-face {
    position: absolute;
    top: 50px;
    right: 20px;
    width: 160px;
    height: 160px;
    object-fit: cover;
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.3));
}

.card-name {
    position: absolute;
    top: 230px;
    width: 100%;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(62, 50, 6, 0.4);
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.card-stats {
    position: absolute;
    bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    font-weight: bold;
    font-size: 1rem;
}

.card-stat-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-row {
    display: flex;
    gap: 5px;
}

.stat-val {
    font-weight: 900;
}

.stat-label {
    font-weight: 400;
    font-size: 0.9rem;
}

/* FIX RODAPÉ */
.footer-logo {
    height: 40px;
    margin: 0 auto;
    display: block;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}


/* RESPONSIVIDADE */
@media (max-width: 900px) {
    .fifa-card-container {
        flex-direction: column;
        align-items: center;
    }

    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar {
        flex-direction: column;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 600px) {

    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: 1fr;
    }
}
/* ARQUIVO: css/estilo.css - APPENDING NEW STYLES */

/* ESTATISTICAS DO TIME */
.team-stats-container {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px;
    background: rgba(255,255,255,0.05); padding: 20px; border-radius: 10px;
    margin-bottom: 30px; border: 1px solid var(--border);
}
.ts-box { text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.ts-box:last-child { border-right: none; }
.ts-val { font-size: 1.8rem; font-weight: bold; color: var(--gold); display: block; }
.ts-label { font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; }

/* �LTIMOS JOGOS */
.match-history {
    display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 30px;
}
.match-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
    min-width: 160px; padding: 10px; text-align: center;
    flex-shrink: 0;
}
.match-result { font-weight: bold; font-size: 1.2rem; margin: 5px 0; }
.win { color: var(--green); } .draw { color: var(--text-muted); } .loss { color: var(--red); }
.match-opponent { font-size: 0.9rem; color: var(--text-white); }
.match-date { font-size: 0.75rem; color: var(--text-muted); }

/* GRID DE ELENCO (MINI CARDS) */
.squad-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px;
}
.player-mini-card {
    background: linear-gradient(135deg, #21262d, #161b22);
    border: 1px solid var(--border); border-radius: 10px;
    padding: 15px; text-align: center; position: relative;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}
.player-mini-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.pm-avatar {
    width: 80px; height: 80px; object-fit: cover; border-radius: 50%;
    margin: 0 auto 10px auto; border: 3px solid #30363d;
}
.pm-name { color: var(--text-white); font-weight: bold; font-size: 1rem; margin-bottom: 2px; }
.pm-pos { color: var(--gold); font-size: 0.85rem; font-weight: bold; text-transform: uppercase; }
.pm-gamertag { font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; }
.pm-badge-cap {
    position: absolute; top: 10px; right: 10px; 
    background: var(--gold); color: #000; font-weight: bold; font-size: 0.7rem;
    padding: 2px 6px; border-radius: 4px;
}
.pm-actions {
    margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: center; gap: 5px;
}

/* INPUTS CUSTOMIZADOS */
textarea.custom-input {
    width: 100%; background: var(--bg-dark); border: 1px solid var(--border);
    color: white; padding: 10px; border-radius: 5px; resize: vertical; min-height: 80px;
}
.custom-date {
    width: 100%; background: var(--bg-dark); border: 1px solid var(--border);
    color: white; padding: 10px; border-radius: 5px;
}

/* --- REVIS�O V2 TEAM PROFILE --- */

.team-hero {
    background: linear-gradient(to bottom, #0f1218, #000); 
    padding: 50px 20px;
    display: flex; flex-direction: column; align-items: center; 
    text-align: center;
    border-bottom: 3px solid var(--gold);
    position: relative;
    overflow: hidden;
}

/* Background Blur */
.team-hero::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    /* No JS we will set var(--bg-image) to the crest url */
    background-image: var(--bg-hero); 
    background-size: cover; background-position: center; 
    opacity: 0.15; filter: blur(20px); z-index: 0; pointer-events: none;
}

.team-content-wrapper { position: relative; z-index: 2; width: 100%; max-width: 800px; display: flex; flex-direction: column; align-items: center; }

/* Escudo Centralizado */
.escudo-wrapper {
    position: relative; 
    width: 200px; height: 200px; 
    margin: 0 auto 20px auto;
}
.escudo-img {
    width: 200px; height: 200px; object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.8));
    transition: transform 0.3s;
}
.escudo-wrapper:hover .escudo-img { transform: scale(1.05); }

/* Overlay de Upload (Sutil) */
.escudo-edit-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s; cursor: pointer;
    color: white; font-weight: bold; font-size: 0.8rem; text-transform: uppercase;
}
.escudo-wrapper:hover .escudo-edit-overlay { opacity: 1; }

.team-name {
    font-size: 3.5rem; font-weight: 900; color: white; margin: 0; line-height: 1;
    text-transform: uppercase; letter-spacing: -2px;
    text-shadow: 0 5px 15px rgba(0,0,0,1);
}
.team-desc {
    font-size: 1.1rem; color: #c9d1d9; margin-top: 15px; font-weight: 400;
    background: rgba(22, 27, 34, 0.8); padding: 15px 30px; border-radius: 30px;
    display: inline-block; border: 1px solid rgba(255,255,255,0.1);
    max-width: 80%;
}

/* Stats 6 Colunas */
.stats-grid-6 {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
    margin-bottom: 30px; margin-top: -20px; z-index: 5; position: relative;
    background: #161b22; padding: 20px; border-radius: 12px;
    border: 1px solid #30363d; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.stat-card-mini {
    text-align: center; border-right: 1px solid rgba(255,255,255,0.05);
}
.stat-card-mini:last-child { border-right: none; }
.stat-val-big { font-size: 1.8rem; color: var(--gold); font-weight: 800; display: block; }
.stat-lbl-small { font-size: 0.75rem; color: #8b949e; text-transform: uppercase; letter-spacing: 1px; }

/* Botao Editar Discreto */
.btn-edit-minimal {
    margin-top: 20px;
    background: transparent; border: 1px solid rgba(255,255,255,0.3); color: white;
    padding: 8px 20px; border-radius: 20px; font-size: 0.85rem;
    cursor: pointer; transition: 0.2s;
}
.btn-edit-minimal:hover { background: white; color: black; }

@media (max-width: 800px) {
    .stats-grid-6 { grid-template-columns: repeat(3, 1fr); }
    .team-name { font-size: 2.5rem; }
}

/* --- HOMEPAGE REDESIGN (DARK PREMIUM) --- */

.hero-section-modern {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    background: url('../img/banner-fundo.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    border-bottom: 4px solid var(--gold);
}

.hero-section-modern::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 70%, #0d0d0d 100%);
    z-index: 1;
}

.hero-content-modern {
    position: relative; z-index: 2;
    padding: 20px;
    animation: fadeInName 1s ease-out;
}

.hero-title-modern {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
    background: linear-gradient(to right, #fff, #d4af37, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle-modern {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-actions {
    display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--gold);
    color: #000;
    font-weight: 900;
    text-transform: uppercase;
    padding: 15px 40px;
    font-size: 1.1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-hero-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.7);
    filter: brightness(1.1);
}

.btn-hero-secondary {
    background: transparent;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    padding: 13px 38px;
    font-size: 1.1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-hero-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* GLASS GRID */
.home-glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: -80px auto 50px auto;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.glass-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
    color: white;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.glass-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 0 10px var(--gold));
}

.glass-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #fff;
}

.glass-desc {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.5;
}

/* Animations */
@keyframes fadeInName {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title-modern { font-size: 3rem; }
    .hero-section-modern { height: auto; padding: 100px 0; }
    .home-glass-grid { margin-top: -40px; }
}
/* --- PHASE 2: INTERNAL PAGES REDESIGN --- */

/* PAGE HEADER PREMIUM */
.page-header-premium {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.page-header-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    margin: 0;
    letter-spacing: 2px;
}

.page-subtitle {
    color: #aaa;
    margin-top: 10px;
    font-size: 1.1rem;
}

/* CONTENT CONTAINER */
.content-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 70vh;
}

/* SEARCH BAR PREMIUM */
.search-bar-premium {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    display: flex;
    padding: 5px 10px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 40px auto;
    transition: 0.3s;
}

.search-bar-premium:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 10px 15px;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
}

.search-btn {
    background: var(--gold);
    color: black;
    border: none;
    border-radius: 50px;
    padding: 0 25px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.search-btn:hover {
    background: #fff;
}

/* LEGACY GRIDS & CARDS (RE-IMPLEMENTED MODERNISED) */
.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .grid-5 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
    .grid-5 { grid-template-columns: 1fr; }
}

.camp-card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    padding: 15px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.camp-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.camp-card img {
    width: 60%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.camp-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.camp-details {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* Responsive Grids */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
/* GRID 3 FOR COMPETITIONS */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* FORM ELEMENTS PREMIUM */
.form-group label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    color: white;
    padding: 12px;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--gold);
    outline: none;
}

/* STATUS BADGES */
.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.75rem;
    z-index: 10;
}

.status-aberto {
    background: var(--green, #2ea44f);
    color: white;
}

.status-andamento {
    background: var(--gold, #d4af37);
    color: black;
}

.status-finalizado {
    background: #666;
    color: white;
}

/* COMPETITION CARD HEADER */
.camp-header {
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.camp-overlay {
    background: rgba(0, 0, 0, 0.6);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camp-logo-mini {
    height: 80px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}
/* --- FORMATION VIEW STYLES --- */





.formation-grid {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.player-slot {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: grab;
    transition: transform 0.2s;
}

.player-slot:active {
    cursor: grabbing;
}

.player-slot.dragging {
    opacity: 0.5;
    transform: scale(1.1);
}









/* Formation positions (4-3-3) */






















/* Formation positions (3-5-2) */




















/* Reserves List */
.reserves-container {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reserves-title {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.reserves-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.reserve-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    cursor: grab;
}

.reserve-player:active {
    cursor: grabbing;
}

.reserve-player-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    background: #1a1a1a;
}

.reserve-player-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reserve-player-name {
    margin-top: 5px;
    font-size: 0.7rem;
    color: #aaa;
    text-align: center;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* View Toggle Buttons */
.view-toggle-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.view-toggle-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.view-toggle-btn.active {
    background: var(--gold);
    color: black;
    border-color: var(--gold);
}

.view-toggle-btn:hover:not(.active) {
    border-color: var(--gold);
    color: white;
}

/* Formation Selector */
.formation-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.formation-btn {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.formation-btn.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    color: var(--gold);
}

.formation-btn:hover {
    border-color: var(--gold);
}

@media (max-width: 768px) {
    .player-slot-circle {
        width: 50px;
        height: 50px;
    }
}

/* STATS STRIP - FIXED TO SINGLE ROW */
.stats-strip {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px auto;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    max-width: 100%;
    padding: 10px 0;
}

.stat-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 20px 15px;
    min-width: 110px;
    max-width: 150px;
    flex: 1 1 110px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.stat-val {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 5px;
}

.stat-lbl {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* FORMATION POSITIONS - FIXED COORDINATES */
.player-slot {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}








.formation-field {
    position: relative;
    width: 100%;
    max-width: 600px; height: 750px;
    margin: 0 auto;
    background: linear-gradient(180deg, #2d5a2d 0%, #1e3d1e 50%, #0f210f 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    border: 3px solid rgba(255,255,255,0.2);
    transform: perspective(1200px) rotateX(15deg);
    transform-style: preserve-3d;
}

.formation-field::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../img/logo.png");
    background-size: 50% auto;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    pointer-events: none;
}

.formation-field::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

/* Player Circles with Red Background */
.player-slot-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, #d32f2f 0%, #b71c1c 100%);
    border: 3px solid var(--gold);
    overflow: visible;
    box-shadow: 0 6px 20px rgba(0,0,0,0.8), 0 0 0 2px rgba(0,0,0,0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-slot-circle::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
}

.player-slot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.player-slot-name {
    margin-top: 8px;
    background: rgba(0,0,0,0.95);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-slot-empty {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
    font-weight: bold;
}

/* === FORMATION POSITIONS - VERTICAL FIELD (600x750) === */
.player-slot { position: absolute; display: flex; flex-direction: column; align-items: center; }

/* GK - Bottom center */
.pos-gk { left: 50%; bottom: 8%; transform: translateX(-50%); }

/* 4-3-3 Formation - Vertical */
.pos-lb-433 { left: 20%; bottom: 20%; }
.pos-cb1-433 { left: 38%; bottom: 18%; }
.pos-cb2-433 { left: 62%; bottom: 18%; }
.pos-rb-433 { left: 80%; bottom: 20%; }

.pos-cm1-433 { left: 25%; bottom: 42%; }
.pos-cm2-433 { left: 50%; bottom: 40%; transform: translateX(-50%); }
.pos-cm3-433 { left: 75%; bottom: 42%; }

.pos-lw-433 { left: 20%; bottom: 68%; }
.pos-st-433 { left: 50%; bottom: 70%; transform: translateX(-50%); }
.pos-rw-433 { left: 80%; bottom: 68%; }

/* 3-5-2 Formation - Vertical */
.pos-cb1-352 { left: 25%; bottom: 18%; }
.pos-cb2-352 { left: 50%; bottom: 16%; transform: translateX(-50%); }
.pos-cb3-352 { left: 75%; bottom: 18%; }

.pos-lwb-352 { left: 15%; bottom: 38%; }
.pos-cm1-352 { left: 32%; bottom: 42%; }
.pos-cm2-352 { left: 50%; bottom: 40%; transform: translateX(-50%); }
.pos-cm3-352 { left: 68%; bottom: 42%; }
.pos-rwb-352 { left: 85%; bottom: 38%; }

.pos-st1-352 { left: 38%; bottom: 68%; }
.pos-st2-352 { left: 62%; bottom: 68%; }