/* Show Page Tabs System - Updated: 2025-11-14 */

/* ================================================
   TAB NAVIGATION
   ================================================ */

.show-tabs-container {
    width: 100%;
    margin: 2rem 0;
}

.show-tabs-nav-wrapper {
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f3f4f6;
}

/* Hide scrollbar but keep functionality */
.show-tabs-nav-wrapper::-webkit-scrollbar {
    height: 4px;
}

.show-tabs-nav-wrapper::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.show-tabs-nav-wrapper::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.show-tabs-nav-wrapper::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.show-tabs-nav {
    display: flex;
    gap: 0;
    min-width: max-content;
    padding-bottom: 0;
}

/* DESKTOP: Single row with reduced padding */
.show-tab-button {
    flex-shrink: 0;
    padding: 0.875rem 1rem; /* Reduced from 1.5rem to 1rem */
    font-size: 0.9375rem;
    font-weight: 500;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    bottom: -2px;
}

.show-tab-button:hover {
    color: #7c3aed;
    background-color: #faf5ff;
}

.show-tab-button.active {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
    font-weight: 600;
}

.show-tab-button:focus {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* MOBILE: Horizontal scroll with first 3 tabs visible */
@media (max-width: 768px) {
    .show-tabs-nav-wrapper {
        /* Enable smooth horizontal scrolling */
        scroll-snap-type: x proximity;
        scroll-behavior: smooth;
        position: relative;
    }
    
    /* Scroll indicator gradient on right edge */
    .show-tabs-nav-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
        pointer-events: none;
        z-index: 1;
    }
    
    .show-tabs-nav {
        gap: 0;
    }
    
    .show-tab-button {
        /* Size each tab to show ~3 tabs in viewport */
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        min-width: calc(33.333% - 0.5rem); /* Show 3 tabs initially */
        text-align: center;
        scroll-snap-align: start;
    }
    
    /* Make first 3 tabs more visible */
    .show-tab-button:nth-child(1),
    .show-tab-button:nth-child(2),
    .show-tab-button:nth-child(3) {
        min-width: 33.333%;
    }
}

/* TABLET: Slightly more room */
@media (min-width: 769px) and (max-width: 1024px) {
    .show-tab-button {
        padding: 0.875rem 0.875rem; /* Even tighter on tablets */
        font-size: 0.875rem;
    }
}

/* LARGE DESKTOP: More breathing room */
@media (min-width: 1280px) {
    .show-tab-button {
        padding: 0.875rem 1.5rem; /* Original padding on large screens */
    }
}

/* ================================================
   TAB PANELS
   ================================================ */

.show-tabs-content {
    position: relative;
    min-height: 300px;
}

.show-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.show-tab-panel.active {
    display: block;
}

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

/* ================================================
   TAB CONTENT WRAPPER & SECTIONS
   ================================================ */

.tab-content-wrapper {
    max-width: 100%;
}

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

.tab-section:last-child {
    margin-bottom: 0;
}

.tab-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.tab-subsection-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.tab-rich-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
}

.tab-rich-content p {
    margin-bottom: 1rem;
}

.tab-rich-content ul,
.tab-rich-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* ================================================
   WHY SEE IT BULLETS (About Tab)
   ================================================ */

.why-see-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-see-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    font-size: 1rem;
    color: #374151;
    line-height: 1.6;
}

.why-see-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    color: #10b981;
    margin-top: 0.125rem;
}

/* ================================================
   VIDEO CONTAINER (About Tab)
   ================================================ */

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ================================================
   THEMES & TAGS (About Tab)
   ================================================ */

.themes-tags-container {
    margin-top: 1rem;
}

.themes-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.theme-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.2s;
}

.theme-tag:hover {
    background-color: #e5e7eb;
}

.themes-more-btn {
    font-size: 0.875rem;
    color: #7c3aed;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    padding: 0.25rem 0;
}

.themes-more-btn:hover {
    text-decoration: underline;
}

/* ================================================
   IMPORTANT INFO BOX (About Tab)
   ================================================ */

.important-info-section {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.important-info-box {
    margin-top: 0.75rem;
}

.important-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.important-info-item {
    padding: 0.5rem 0;
    color: #92400e;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.important-info-item:before {
    content: "• ";
    color: #f59e0b;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ================================================
   FAQs (About Tab)
   ================================================ */

.faqs-container {
    border-top: 1px solid #e5e7eb;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    flex: 1;
}

.faq-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    margin-top: 0.75rem;
    padding-left: 0;
    color: #4b5563;
    line-height: 1.7;
}

/* ================================================
   GALLERY (About Tab)
   ================================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.gallery-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 1rem 0.75rem 0.75rem;
    font-size: 0.875rem;
}

/* ================================================
   SEAT CARDS (Seats Tab)
   ================================================ */

.seat-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.seat-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
}

.seat-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.seat-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.seat-card-icon {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
}

.seat-card-value .seat-card-icon {
    color: #10b981;
}

.seat-card-premium .seat-card-icon {
    color: #f59e0b;
}

.seat-card-watchouts .seat-card-icon {
    color: #ef4444;
}

.seat-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.seat-card-summary {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* ================================================
   VENUE LINKS & BOOKING NUDGE (Seats Tab)
   ================================================ */

.venue-link-section,
.online-booking-nudge {
    margin-top: 2rem;
    padding: 1.25rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.venue-link-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: #7c3aed;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.venue-link-button:hover {
    background-color: #6d28d9;
    transform: translateY(-1px);
}

/* ================================================
   PERFORMANCE SCHEDULE (Dates Tab)
   ================================================ */

.booking-note {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.calendar-container {
    margin-top: 1.5rem;
}

.performance-additional-info {
    margin-top: 2rem;
    padding: 1.25rem;
    background-color: #f3f4f6;
    border-radius: 0.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #374151;
}

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

/* ================================================
   CAST & CREATIVES (Cast Tab)
   ================================================ */

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.cast-member-card {
    text-align: center;
}

.cast-headshot,
.cast-headshot-placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.cast-headshot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
}

.cast-name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #111827;
    margin: 0.5rem 0 0.25rem;
}

.cast-role {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0 0 0.5rem;
}

.cast-bio {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
}

.ensemble-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ensemble-name {
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    color: #374151;
}

.creatives-list {
    display: grid;
    gap: 1rem;
}

.creative-item {
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.creative-role {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.creative-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-top: 0.25rem;
}

/* ================================================
   REVIEWS (Reviews Tab)
   ================================================ */

.our-take-section {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    padding: 2rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

.our-take-content {
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    width: 3rem;
    height: 3rem;
    color: rgba(255, 255, 255, 0.2);
}

.our-take-text {
    font-size: 1.125rem;
    line-height: 1.75;
    color: white;
    font-style: italic;
    padding-left: 2.5rem;
    margin: 0;
}

.aggregate-rating-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    width: 1.5rem;
    height: 1.5rem;
}

.star-filled {
    color: #f59e0b;
}

.star-half {
    color: #fbbf24;
}

.star-empty {
    color: #d1d5db;
}

.rating-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.reviews-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.review-card {
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 0.75rem;
    border-left: 4px solid #7c3aed;
}

.review-excerpt {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #374151;
    font-style: italic;
    margin: 0 0 1rem;
}

.review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.reviewer-name {
    font-weight: 600;
    color: #374151;
}

.publication {
    color: #7c3aed;
}

/* ================================================
   VENUE DETAILS (Venue Tab)
   ================================================ */

.venue-intro {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #4b5563;
    margin-bottom: 2rem;
}

.venue-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.venue-detail-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.venue-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #7c3aed;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.venue-detail-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.375rem;
}

.venue-detail-content {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

/* ================================================
   RESPONSIVE ADJUSTMENTS
   ================================================ */

@media (max-width: 768px) {
    .show-tabs-container {
        margin: 1.5rem 0;
    }
    
    .tab-section-title {
        font-size: 1.25rem;
    }
    
    .seat-cards-grid,
    .venue-details-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cast-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid,
    .cast-grid {
        grid-template-columns: 1fr;
    }
}

