/* Show Page - About Tab Styles - Updated: 2025-11-14 */

/* ================================================
   BOOK ONLINE NUDGE
   ================================================ */

.book-online-nudge {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-left: 4px solid #7c3aed;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
}

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

.book-online-nudge p {
    margin: 0;
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.book-online-nudge strong {
    color: #7c3aed;
    font-weight: 600;
}

/* ================================================
   VIDEO SECTION
   ================================================ */

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

.video-transcript-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.75rem;
    color: #7c3aed;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.video-transcript-link:hover {
    color: #6d28d9;
    text-decoration: underline;
}

/* ================================================
   THEMES & TAGS
   ================================================ */

.theme-tag-link {
    text-decoration: none;
    transition: all 0.2s;
}

.theme-tag-link:hover {
    background-color: #7c3aed;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.2);
}

/* ================================================
   FAQ ACCORDION (NEW BUTTON-BASED)
   ================================================ */

.faqs-section {
    margin-top: 2.5rem;
}

.faqs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.faq-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-control-btn {
    background: none;
    border: none;
    color: #7c3aed;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s;
}

.faq-control-btn:hover {
    color: #6d28d9;
    text-decoration: underline;
}

.faq-control-btn:focus {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

.faq-control-separator {
    color: #d1d5db;
}

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

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-question-heading {
    margin: 0;
}

.faq-toggle-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1rem 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.faq-toggle-btn:hover {
    background-color: #fafafa;
    padding-left: 0.5rem;
}

.faq-toggle-btn:focus {
    outline: 2px solid #7c3aed;
    outline-offset: -2px;
    background-color: #faf5ff;
}

.faq-question-text {
    flex: 1;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.5;
    padding-right: 1rem;
}

.faq-toggle-btn .faq-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.faq-toggle-btn[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.faq-answer[hidden] {
    display: block !important; /* Keep in DOM for SEO */
    visibility: hidden;
}

.faq-answer:not([hidden]) {
    visibility: visible;
}

.faq-answer-content {
    padding: 0 0 1.25rem 0;
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.faq-answer-content p {
    margin-bottom: 0.75rem;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.faq-answer-content li {
    margin-bottom: 0.375rem;
}

.faq-answer-content a {
    color: #7c3aed;
    text-decoration: underline;
}

.faq-answer-content a:hover {
    color: #6d28d9;
}

/* ================================================
   GALLERY ENHANCEMENTS
   ================================================ */

.gallery-section {
    margin-top: 2.5rem;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    width: 3rem;
    height: 3rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Gallery Caption Enhancement */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1.5rem 0.75rem 0.75rem;
    font-size: 0.875rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ================================================
   GALLERY LIGHTBOX
   ================================================ */

.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-close svg {
    width: 1.5rem;
    height: 1.5rem;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lightbox-prev svg,
.lightbox-next svg {
    width: 1.5rem;
    height: 1.5rem;
}

.lightbox-image-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(90vh - 8rem);
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption,
.lightbox-credit {
    color: white;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9375rem;
}

.lightbox-caption {
    font-weight: 500;
}

.lightbox-credit {
    font-size: 0.875rem;
    opacity: 0.8;
}

.lightbox-counter {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@media (max-width: 768px) {
    .faqs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .faq-controls {
        width: 100%;
        justify-content: flex-end;
    }
    
    .faq-question-text {
        font-size: 1rem;
    }
    
    .lightbox-content {
        padding: 1rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .lightbox-counter {
        top: 0.5rem;
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
    }
    
    .book-online-nudge {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
}

/* ================================================
   ACCESSIBILITY
   ================================================ */

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .faq-toggle-btn:focus {
        outline: 3px solid currentColor;
    }
    
    .theme-tag-link:hover {
        outline: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .faq-toggle-btn .faq-icon,
    .faq-answer,
    .gallery-overlay,
    .gallery-caption,
    .lightbox-overlay,
    .lightbox-content {
        transition: none;
    }
}

/* Focus visible (keyboard navigation) */
.faq-toggle-btn:focus-visible,
.faq-control-btn:focus-visible,
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
    outline: 3px solid #7c3aed;
    outline-offset: 2px;
}

