/* Programação de Futebol - Modern Sports Style */
:root {
    --primary: #FF5722;
    --primary-glow: rgba(255, 87, 34, 0.4);
    --secondary: #FFD700;
    --danger: #ff4444;
    --danger-glow: rgba(255, 68, 68, 0.4);
    --success: #00C851;
    --dark-bg: #121212;
    --surface: #1E1E1E;
    --surface-light: #2A2A2A;
    --border: #333333;
    --text: #FFFFFF;
    --text-muted: #B0B0B0;
    --metal-gradient: linear-gradient(180deg, #555 0%, #222 50%, #111 100%);
    --card-gradient: linear-gradient(90deg, #FF8C00 0%, #FF5722 100%);
}

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

body {
    background-color: var(--dark-bg);
    color: var(--text);
    font-family: 'Outfit', 'Roboto', sans-serif;
    line-height: 1.6;
    background-image: radial-gradient(circle at 20% 20%, #1a1a1a 0%, #121212 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header UI */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Navigation */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--surface-light);
    color: white;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
}

/* Cards Section */
.matches-list {
    display: grid;
    gap: 2rem;
}

.match-card-admin {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 8px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    transition: transform 0.2s ease;
}

.match-card-admin:hover {
    border-color: var(--primary);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

input[type="text"],
input[type="time"],
input[type="date"],
select {
    width: 100%;
    padding: 0.8rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: white;
    font-size: 1rem;
}

input:focus, select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-glow);
}

input[type="file"] {
    padding: 0.8rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
    width: 100%;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.alert-error {
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid var(--danger);
    color: #ffbbbb;
}

.alert-success {
    background: rgba(0, 200, 81, 0.2);
    border: 1px solid var(--success);
    color: #bbf7d0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: block;
    opacity: 1;
}

.modal-content {
    max-width: 600px;
    margin: 10% auto;
    position: relative;
    display: block;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary);
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* Stat Cards */
.stat-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    text-transform: uppercase;
    font-weight: 600;
}

/* Flex Utilities */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Spacing */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Text */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-sm { font-size: 0.8rem; }
.text-xs { font-size: 0.7rem; }
.uppercase { text-transform: uppercase; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Preview Section */
.preview-container {
    background: #000;
    padding: 2rem;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
}

/* Responsive */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .nav-menu {
        justify-content: center;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .match-card-admin {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .container {
        padding: 1rem;
    }
}

/* Specific Style for Football Card */
.football-card {
    position: relative;
    width: 600px;
    height: 120px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 85px;
}

.time-container {
    background: var(--metal-gradient);
    border: 2px solid #666;
    border-radius: 4px;
    padding: 2px 10px;
    font-weight: bold;
    color: var(--secondary);
    position: absolute;
    top: 5px;
    z-index: 10;
}

.team-shield {
    width: 70px;
    height: 70px;
    background: white;
    padding: 5px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 5;
}

.team-shield img {
    max-width: 100%;
    max-height: 100%;
}

.card-main-bar {
    background: var(--card-gradient);
    height: 60px;
    width: 450px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border: 2px solid #FF8C00;
    margin: 0 -35px;
    z-index: 1;
}

.team-name-box {
    background: white;
    color: black;
    font-weight: 800;
    padding: 5px 15px;
    width: 150px;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.match-vs-icon {
    width: 35px;
    height: 35px;
}

.channel-bar {
    background: white;
    color: #cc0000;
    font-weight: 700;
    font-style: italic;
    padding: 2px 30px;
    border-radius: 0 0 15px 15px;
    font-size: 0.8rem;
    margin-top: -5px;
    min-width: 300px;
    text-align: center;
    z-index: 2;
}

/* Entity Card (used in manage pages) */
.entity-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
    padding: 1.5rem;
}

.entity-card-icon {
    width: 85px;
    height: 85px;
    background: white;
    margin: 0 auto;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.entity-card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.entity-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Delete Form (inline) */
.form-delete {
    display: inline;
}
