/* ================================================================
   PADEL TOURNAMENT PRO PUBLIC - Estilos Generales del Plugin
   ================================================================ */

/* Reset y variables globales */
:root {
    --padel-primary: #1B6FF3;
    --padel-secondary: #00B85C;
    --padel-success: #10b981;
    --padel-warning: #f59e0b;
    --padel-danger: #ef4444;
    --padel-gray-50: #f8fafc;
    --padel-gray-100: #f1f5f9;
    --padel-gray-200: #e2e8f0;
    --padel-gray-600: #64748b;
    --padel-gray-900: #1e293b;
}

/* Contenedor principal */
.padel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Alertas y mensajes */
.padel-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.padel-alert-success {
    background: #d1fae5;
    border-color: var(--padel-success);
    color: #065f46;
}

.padel-alert-warning {
    background: #fef3c7;
    border-color: var(--padel-warning);
    color: #92400e;
}

.padel-alert-danger {
    background: #fee2e2;
    border-color: var(--padel-danger);
    color: #991b1b;
}

.padel-alert-info {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

/* Badges */
.padel-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.padel-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.padel-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.padel-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.padel-badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.padel-badge-primary {
    background: linear-gradient(135deg, #1B6FF3 0%, #00B85C 100%);
    color: white;
}

/* Botones */
.padel-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.padel-button-primary {
    background: linear-gradient(135deg, var(--padel-primary) 0%, var(--padel-secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.padel-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.padel-button-secondary {
    background: white;
    color: var(--padel-primary);
    border: 2px solid var(--padel-primary);
}

.padel-button-secondary:hover {
    background: var(--padel-primary);
    color: white;
}

.padel-button-danger {
    background: var(--padel-danger);
    color: white;
}

.padel-button-success {
    background: var(--padel-success);
    color: white;
}

/* Cards */
.padel-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.padel-card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--padel-gray-200);
}

.padel-card-title {
    color: var(--padel-gray-900);
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.padel-card-subtitle {
    color: var(--padel-gray-600);
    font-size: 14px;
    margin: 5px 0 0 0;
}

/* Tablas */
.padel-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.padel-table thead {
    background: var(--padel-gray-50);
}

.padel-table th {
    padding: 15px;
    text-align: left;
    color: var(--padel-gray-600);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.padel-table td {
    padding: 15px;
    border-top: 1px solid var(--padel-gray-200);
    color: var(--padel-gray-900);
}

.padel-table tbody tr:hover {
    background: var(--padel-gray-50);
}

/* Grid de estadísticas */
.padel-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.padel-stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--padel-primary);
}

.padel-stat-label {
    color: var(--padel-gray-600);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.padel-stat-value {
    color: var(--padel-gray-900);
    font-size: 32px;
    font-weight: 700;
}

.padel-stat-icon {
    font-size: 40px;
    float: right;
    opacity: 0.3;
}

/* Loading spinner */
.padel-loading {
    text-align: center;
    padding: 40px 20px;
}

.padel-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid var(--padel-gray-200);
    border-top-color: var(--padel-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty state */
.padel-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--padel-gray-600);
}

.padel-empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.padel-empty-state-title {
    color: var(--padel-gray-900);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Modales */
.padel-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.padel-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.padel-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.padel-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--padel-gray-900);
    margin: 0;
}

.padel-modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--padel-gray-600);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.padel-modal-close:hover {
    background: var(--padel-gray-100);
    color: var(--padel-gray-900);
}

/* Breadcrumbs */
.padel-breadcrumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--padel-gray-600);
}

.padel-breadcrumbs a {
    color: var(--padel-primary);
    text-decoration: none;
}

.padel-breadcrumbs a:hover {
    text-decoration: underline;
}

.padel-breadcrumbs-separator {
    color: var(--padel-gray-400);
}

/* Paginación */
.padel-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 30px;
}

.padel-pagination-item {
    padding: 10px 16px;
    border: 2px solid var(--padel-gray-200);
    border-radius: 8px;
    background: white;
    color: var(--padel-gray-900);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.padel-pagination-item:hover {
    border-color: var(--padel-primary);
    color: var(--padel-primary);
}

.padel-pagination-item.active {
    background: var(--padel-primary);
    border-color: var(--padel-primary);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .padel-container {
        padding: 15px;
    }
    
    .padel-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .padel-card {
        padding: 20px;
    }
    
    .padel-modal-content {
        padding: 20px;
    }
    
    .padel-table {
        font-size: 14px;
    }
    
    .padel-table th,
    .padel-table td {
        padding: 10px;
    }
}

/* Utilidades */
.padel-text-center { text-align: center; }
.padel-text-right { text-align: right; }
.padel-mt-10 { margin-top: 10px; }
.padel-mt-20 { margin-top: 20px; }
.padel-mb-10 { margin-bottom: 10px; }
.padel-mb-20 { margin-bottom: 20px; }
.padel-hidden { display: none; }
