/* ================================================================
   PADEL PUBLIC - Estilos para Páginas Públicas del Club
   ================================================================ */

/* Página pública del club */
.padel-club-public-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header del club */
.club-header {
    background: linear-gradient(135deg, #1B6FF3 0%, #00B85C 100%);
    padding: 40px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.club-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.club-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.club-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.club-info h1 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.club-location {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.club-social-links a {
    color: white;
    font-size: 24px;
    margin-left: 15px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.club-social-links a:hover {
    transform: scale(1.2);
}

/* Sistema de tabs */
.club-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    overflow-x: auto;
    padding-bottom: 10px;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-button.active {
    color: #1B6FF3;
    border-bottom-color: #1B6FF3;
}

.tab-button:hover {
    color: #1B6FF3;
}

/* Contenido de tabs */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Calendario semanal */
.padel-weekly-calendar {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-nav button {
    background: #1B6FF3;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.calendar-nav button:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

#current-week-label {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
}

/* Grid del calendario */
.calendar-grid {
    display: grid;
    grid-template-columns: 100px repeat(7, 1fr);
    gap: 2px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-header-cell {
    background: #1B6FF3;
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.calendar-time-cell {
    background: #f8fafc;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-cell {
    background: white;
    padding: 10px;
    min-height: 60px;
    transition: all 0.3s ease;
}

.calendar-slot {
    cursor: pointer;
}

.slot-available {
    background: #d1fae5;
    border-left: 3px solid #10b981;
}

.slot-available:hover {
    background: #a7f3d0;
    transform: scale(1.02);
}

.slot-confirmed {
    background: #fee2e2;
    border-left: 3px solid #ef4444;
    cursor: not-allowed;
}

.slot-pending {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
}

.slot-blocked {
    background: #f1f5f9;
    border-left: 3px solid #94a3b8;
    cursor: not-allowed;
}

.slot-status {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
}

.slot-info {
    font-size: 11px;
    color: #64748b;
    margin-top: 5px;
}

/* Leyenda */
.legend {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* Sección de reservas */
.reservations-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.reservations-section h2 {
    color: #1e293b;
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
}

.reservations-section > p {
    color: #64748b;
    margin: 0 0 30px 0;
}

/* Formulario de reserva */
#public-reservation-form {
    max-width: 600px;
}

.form-fields {
    display: grid;
    gap: 20px;
}

.form-fields label {
    display: block;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-fields select,
.form-fields input[type="date"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-fields select:focus,
.form-fields input:focus {
    outline: none;
    border-color: #1B6FF3;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-required-message {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.login-required-message h3 {
    color: #92400e;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.login-required-message p {
    color: #78350f;
    margin: 0;
}

/* Botones */
button[type="submit"],
.button {
    background: linear-gradient(135deg, #1B6FF3 0%, #00B85C 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

button[type="submit"]:hover,
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* Tarjetas de torneos */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.tournament-card {
    background: linear-gradient(135deg, #1B6FF3 0%, #00B85C 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.tournament-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.tournament-card h3 {
    color: white;
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .club-header {
        padding: 25px 20px;
    }
    
    .club-header h1 {
        font-size: 24px;
    }
    
    .calendar-grid {
        grid-template-columns: 80px repeat(7, minmax(80px, 1fr));
        font-size: 12px;
    }
    
    .club-tabs {
        flex-wrap: nowrap;
        overflow-x: scroll;
    }
}
