/**
 * Show Tab - Dates & Times
 * Updated: 2025-11-17 - Version 1.0
 * Styling for the Dates & Times tab with interactive calendar
 */

/* ====================================
   Tab Content Wrapper
   ==================================== */
.tab-content-wrapper {
    padding: 0;
}

.tab-section {
    margin-bottom: 2rem;
}

.tab-section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* ====================================
   Booking Note
   ==================================== */
.booking-note {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    border-left: 4px solid #7c3aed;
    border-radius: 0.375rem;
}

.booking-note strong {
    color: #7c3aed;
}

/* Booking status variants */
.booking-note--limited {
    border-left-color: #dc2626;
    background: #fef2f2;
}

.booking-note--final-weeks {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.booking-note--tbc {
    border-left-color: #6b7280;
    background: #f9fafb;
}

/* ====================================
   Tab 3 Simple Calendar Display
   ==================================== */
.tab3-calendar-container {
    margin: 2rem 0;
}

.performance-dates-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.performance-date-group {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: box-shadow 0.2s ease;
}

.performance-date-group:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.date-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.performance-times-grid {
    display: grid;
    gap: 0.75rem;
}

.performance-time-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.performance-time-item:hover {
    background: #f3e8ff;
}

.performance-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time-badge {
    background: #7c3aed;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.price-info {
    color: #374151;
}

.price-info .text-sm {
    font-size: 0.875rem;
}

.price-info .font-bold {
    font-weight: 700;
    font-size: 1.125rem;
    margin-left: 0.25rem;
}

.offer-badge {
    background: #fbbf24;
    color: #78350f;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.select-btn {
    background: #7c3aed;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.select-btn:hover {
    background: #6d28d9;
}

.no-performances-message {
    text-align: center;
    padding: 3rem 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.no-performances-message svg {
    width: 4rem;
    height: 4rem;
    color: #9ca3af;
    margin: 0 auto 1rem;
}

.no-performances-message p {
    margin-bottom: 0.5rem;
}

/* ====================================
   Performance Info Boxes
   ==================================== */
.performance-additional-info {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.info-item:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.info-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #7c3aed;
    flex-shrink: 0;
}

.info-item span {
    font-size: 1rem;
    line-height: 1.5;
}

.info-item .font-semibold {
    font-weight: 600;
    color: #111827;
}

/* ====================================
   School Holidays Note
   ==================================== */
.school-holidays-note {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.school-holidays-note p {
    font-size: 0.875rem;
    color: #1e40af;
    margin: 0;
}

.school-holidays-note strong {
    font-weight: 600;
}

/* ====================================
   Access Performance Badges
   ==================================== */
.access-badges-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #fef3c7;
    border-radius: 0.5rem;
    border-left: 4px solid #f59e0b;
}

.access-badges-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 1rem;
}

.access-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.access-badge-signed {
    background: #dbeafe;
    color: #1e40af;
}

.access-badge-captioned {
    background: #d1fae5;
    color: #065f46;
}

.access-badge-ad {
    background: #e9d5ff;
    color: #6b21a8;
}

.access-badge-relaxed {
    background: #fed7aa;
    color: #92400e;
}

.access-dates-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #7c3aed;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 2px solid #7c3aed;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.access-dates-link:hover {
    background: #7c3aed;
    color: white;
}

/* ====================================
   Month Switcher (if implemented in calendar component)
   ==================================== */
.month-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.month-switcher-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.month-switcher-button:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: white;
}

.month-switcher-current {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

/* ====================================
   7-Day Strip (if implemented in calendar component)
   ==================================== */
.day-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.day-strip::-webkit-scrollbar {
    height: 6px;
}

.day-strip::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.day-strip::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 3px;
}

.day-chip {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    scroll-snap-align: start;
    transition: all 0.2s ease;
}

.day-chip:hover {
    border-color: #7c3aed;
    box-shadow: 0 4px 6px -1px rgba(124, 58, 237, 0.1);
}

.day-chip.active {
    border-color: #7c3aed;
    background: #f3e8ff;
}

.day-chip-weekday {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.day-chip-date {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.day-chip-price {
    font-size: 0.875rem;
    color: #7c3aed;
    font-weight: 600;
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 767px) {
    .tab-section-title {
        font-size: 1.5rem;
    }
    
    .booking-note {
        font-size: 1rem;
    }
    
    /* Tab 3 Calendar Mobile */
    .performance-time-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .performance-info {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .select-btn {
        width: 100%;
        text-align: center;
    }
    
    .date-header h3 {
        font-size: 1rem;
    }
    
    /* Info Boxes */
    .performance-additional-info {
        padding: 1rem;
    }
    
    .info-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .day-strip {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .day-chip {
        min-width: 100px;
    }
}

@media (min-width: 768px) {
    .day-strip {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 1rem;
        overflow-x: visible;
    }
    
    .day-chip {
        min-width: auto;
    }
}

/* ====================================
   Print Styles
   ==================================== */
@media print {
    .month-switcher,
    .access-dates-link {
        display: none;
    }
    
    .booking-note {
        border: 1px solid #000;
        background: white;
    }
}

