/* ═══════════════════════════════════════════════════════════════════════════
   BIBLE WAY TO HEAVEN - STYLESHEET
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a12;
    --bg-secondary: #12121f;
    --bg-card: #1a1a2e;
    --accent-gold: #d4af37;
    --accent-gold-light: #f0d77e;
    --text-primary: #f5f5f5;
    --text-secondary: #a8a8b3;
    --border-color: #2a2a3e;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════════ */

header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-text {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.02em;
    text-shadow: 0 2px 20px rgba(212, 175, 55, 0.3);
    margin-bottom: 8px;
}

.subtitle {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    color: var(--text-secondary);
    font-weight: 400;
}

.decorative-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin: 25px auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANGUAGE SELECTOR
   ═══════════════════════════════════════════════════════════════════════════ */

.language-section {
    margin-bottom: 30px;
}

.language-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

.language-select-wrapper {
    position: relative;
    max-width: 100%;
    width: 350px;
    margin: 0 auto;
}

.language-select {
    width: 100%;
    padding: 14px 50px 14px 18px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
}

.language-select:hover,
.language-select:focus {
    border-color: var(--accent-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.language-select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
    font-size: 0.75rem;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VIDEO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.video-section {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper video,
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-title {
    padding: 18px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.video-title h2 {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.video-title p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   NATIVE TEXT SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.native-text-section {
    padding: 20px 25px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.native-text-section p {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 600;
    color: var(--accent-gold-light);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   QUESTION BOX
   ═══════════════════════════════════════════════════════════════════════════ */

.question-box {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-gold);
    border-radius: 8px;
    padding: 22px 25px;
    margin-top: 35px;
    text-align: center;
}

.question-box p {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    font-weight: 600;
    color: var(--accent-gold-light);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

footer {
    margin-top: 50px;
    text-align: center;
    padding: 25px 20px;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

footer a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-gold-light);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOADING STATE
   ═══════════════════════════════════════════════════════════════════════════ */

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-secondary);
    z-index: 10;
}

.loading-overlay.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ERROR STATE
   ═══════════════════════════════════════════════════════════════════════════ */

.error-message {
    color: var(--text-secondary);
    text-align: center;
    padding: 40px 20px;
}

.error-message a {
    color: var(--accent-gold);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .container {
        padding: 25px 15px;
    }

    header {
        margin-bottom: 30px;
    }

    .decorative-line {
        margin: 20px auto;
    }

    .language-select-wrapper {
        width: 100%;
    }

    .question-box {
        padding: 18px 20px;
        margin-top: 25px;
    }

    footer {
        margin-top: 40px;
        padding: 20px 15px;
    }
}

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

    .video-title {
        padding: 15px;
    }

    .question-box {
        padding: 15px;
        border-left-width: 3px;
    }
}
