/* Custom styles for Visual Bible - Serene Immersive Minimalism */

/* Noto Sans font smoothing & defaults */
body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hide scrollbars but keep functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Base fade-in motion for navigation */
.fade-in {
    animation: fadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Ken Burns effect for cinematic play backgrounds */
@keyframes kenburns {
    0% {
        transform: scale(1.02) translate(0, 0);
    }
    50% {
        transform: scale(1.08) translate(-1%, 0.5%);
    }
    100% {
        transform: scale(1.02) translate(0, 0);
    }
}

.kenburns-bg {
    animation: kenburns 35s infinite ease-in-out;
}

/* Subtle Text Shadow for readability over videos */
.text-shadow-subtle {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Ambient level 1 shadow using Deep Spiritual Blue tint */
.ambient-shadow-l1 {
    box-shadow: 0 10px 30px rgba(0, 32, 69, 0.04);
}

.dark .ambient-shadow-l1 {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Tab View switching display rules */
.tab-view {
    display: none;
}
.tab-view.active-view {
    display: block;
}

/* AI chat window scroll behavior */
#chat-window {
    height: 100%;
}

/* Cinematic Player interaction classes */
.cinematic-fade {
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.ui-hidden {
    opacity: 0 !important;
    pointer-events: none;
    transform: scale(0.98);
}

/* Scripture highlighting word classes */
.highlight-word {
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
    display: inline-block;
    cursor: pointer;
    border-radius: 4px;
    padding: 0 2px;
}

.highlight-word:hover {
    background-color: rgba(203, 167, 47, 0.15);
}

.highlight-word.active {
    background-color: rgba(203, 167, 47, 0.35);
    color: #ffe088 !important;
    font-weight: 500;
    transform: scale(1.03);
    text-shadow: 0 0 8px rgba(203, 167, 47, 0.4);
}

.dark .highlight-word.active {
    background-color: rgba(233, 195, 73, 0.45);
    color: #ffe088 !important;
}

/* Custom styles for dark mode overrides */
.dark body {
    background-color: #0c0a09; /* warm dark stone */
    color: #e7e5e4;
}

.dark #main-header {
    background-color: rgba(12, 10, 9, 0.85);
    border-color: rgba(63, 63, 70, 0.4);
}

/* Custom scroll bar for chat history if ever visible */
.chat-scroll::-webkit-scrollbar {
    width: 4px;
}
.chat-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.chat-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}
.dark .chat-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

/* Wave or pulsing effect for audio segments */
@keyframes audio-pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}
.audio-active {
    animation: audio-pulse 2s infinite ease-in-out;
}
