/**
 * Enhanced Booking System Styles
 * Swaastik Yog School
 */

/* Schedules Grid */
.schedules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

/* Schedule Card */
.schedule-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.schedule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-purple), var(--color-teal));
}

.schedule-card.full::before {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.schedule-card.limited::before {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Schedule Header */
.schedule-header {
    margin-bottom: 20px;
    text-align: center;
}

.schedule-header h3 {
    color: var(--color-purple);
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.schedule-dates {
    color: #7f8c8d;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Schedule Body */
.schedule-body {
    margin: 20px 0;
}

.seats-info {
    margin-bottom: 16px;
}

.seats-count {
    text-align: center;
    margin-bottom: 12px;
}

.seats-count .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.seats-count.available .number {
    color: #27ae60;
}

.seats-count.limited .number {
    color: #f39c12;
}

.seats-count.full .number {
    color: #e74c3c;
}

.seats-count .label {
    display: block;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Seats Progress Bar */
.seats-bar {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.seats-filled {
    height: 100%;
    background: linear-gradient(90deg, var(--color-purple), var(--color-teal));
    transition: width 0.3s ease;
}

.schedule-card.limited .seats-filled {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.schedule-card.full .seats-filled {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

/* Schedule Status */
.schedule-status {
    text-align: center;
    margin-top: 16px;
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.available {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.status-badge.limited {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.status-badge.full {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* Schedule Footer */
.schedule-footer {
    margin-top: 20px;
}

.btn-book {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--color-purple), var(--color-teal));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-book.disabled,
.btn-book:disabled {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-book.disabled:hover,
.btn-book:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Section Styling */
.schedules-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.schedules-section h2 {
    text-align: center;
    color: var(--color-purple);
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.schedules-section .section-subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Loading State */
.schedules-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.schedules-grid.loading::after {
    content: 'Loading schedules...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: var(--color-purple);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .schedules-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .schedule-header h3 {
        font-size: 1.3rem;
    }

    .seats-count .number {
        font-size: 2rem;
    }

    .schedules-section h2 {
        font-size: 2rem;
    }

    .schedules-section .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .schedule-card {
        padding: 20px;
    }

    .schedule-header h3 {
        font-size: 1.2rem;
    }

    .seats-count .number {
        font-size: 1.8rem;
    }

    .btn-book {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Animation for new seats updates */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.seats-count.updated {
    animation: pulse 0.6s ease;
}

/* Special Highlight for Booking Form */
#booking-form {
    transition: box-shadow 0.3s ease;
}

#booking-form.highlighted {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}
