/* Estilos Generales */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar Personalizado */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Cards Hover Effect */
.hover-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Tablas Responsive */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
}

/* Equipos */
.team-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Partidos */
.match-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.match-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.match-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.match-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pendiente {
    background-color: #fff3cd;
    color: #856404;
}

.status-jugado {
    background-color: #d4edda;
    color: #155724;
}

/* Tabla de Posiciones */
.positions-table .position-1 {
    background-color: rgba(255, 215, 0, 0.1);
}

.positions-table .position-2 {
    background-color: rgba(192, 192, 192, 0.1);
}

.positions-table .position-3 {
    background-color: rgba(205, 127, 50, 0.1);
}

/* Badges */
.badge {
    padding: 5px 10px;
    font-weight: 500;
    border-radius: 20px;
}

/* Forms */
.form-control:focus, .btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Botones flotantes para móvil */
.fab-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: none;
    z-index: 1000;
}

.fab-button:hover {
    transform: scale(1.1);
    background-color: #0b5ed7;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Cuadro del Torneo (Bracket) */
.bracket-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}

.bracket-round {
    flex: 1;
    min-width: 200px;
}

.bracket-round h6 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.bracket-match {
    background: white;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
}

.bracket-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
}

.bracket-team.winner {
    background-color: rgba(25, 135, 84, 0.1);
    font-weight: 600;
}

/* Media Queries para Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .match-score {
        font-size: 1.2rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .bracket-container {
        flex-direction: column;
    }
    
    .bracket-round {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .table td, .table th {
        padding: 0.5rem;
    }
    
    .team-logo {
        width: 30px;
        height: 30px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Utilidades Personalizadas */
.cursor-pointer {
    cursor: pointer;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Scroll Personalizado */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}

/* assets/css/style.css - Agrega estos estilos adicionales */

.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
}

/* Estilos para el hero section */
.card-img-overlay {
    background: rgba(0,0,0,0.5);
}

/* Estilos para la tabla responsive */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 14px;
    }
    
    .table td, .table th {
        white-space: nowrap;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Estilos para las badges */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Estilos para el footer */
footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white !important;
}

/* Estilos para el navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Estilos para los mensajes flash */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para los logos de equipos */
.table img {
    border-radius: 50%;
    object-fit: cover;
}