/* public/css/mis-torneos.css */
/* ============================================
   ESTILOS PARA LA PÁGINA DE MIS TORNEOS
   ============================================ */

/* Badges de estado de torneos */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 1rem;
}

.badge.abierto {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.badge.finalizado {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid #6c757d;
}

.badge.borrador {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.badge.cancelado {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* Tarjeta del torneo */
.torneo-card-organizador {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.torneo-card-organizador:hover {
    transform: translateX(5px);
    border-color: var(--gold-primary);
}

.torneo-card-organizador h3 {
    margin-bottom: 0.5rem;
    color: var(--gold-primary);
    font-size: 1.2rem;
}

/* Header de la tarjeta */
.torneo-header-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

/* Detalles del torneo */
.torneo-detalles {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.torneo-detalles p {
    margin: 0.3rem 0;
}

/* Acciones del torneo */
.torneo-acciones {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* Botones personalizados */
.btn-warning {
    background: #f0ad4e;
    color: #1a1a1a;
    border: none;
}

.btn-warning:hover {
    background: #ec971f;
    transform: translateY(-2px);
}

.btn-danger {
    background: #d9534f;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #c9302c;
    transform: translateY(-2px);
}

.btn-gestionar {
    background: #17a2b8;
    color: white;
    border: none;
}

.btn-gestionar:hover {
    background: #138496;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.tab {
    background: none;
    border: none;
    padding: 0.5rem 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.tab.active {
    color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.1);
    border-bottom: 2px solid var(--gold-primary);
}

.tab:hover {
    color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.05);
}

/* Dashboard header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h1 {
    margin: 0;
}

/* Mensaje de error */
.error {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }
    
    .torneo-header-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .badge {
        margin-left: 0;
    }
    
    .torneo-acciones {
        justify-content: center;
    }
    
    .tab {
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
    }
}