/* ============================================
   Part 5: Hero Video, Video Modal,
   FAQ Page, Changelog Page Styles
   ============================================ */

/* Hero Video Button */
.btn-video { display: inline-flex; align-items: center; gap: 12px; padding: 14px 28px; border-radius: var(--radius-md); border: 1.5px solid var(--border); color: var(--text-primary); backdrop-filter: blur(10px); background: var(--bg-glass); cursor: pointer; font-size: 0.95rem; font-weight: 600; transition: all 0.4s var(--ease-out); }
.btn-video:hover { border-color: hsl(0, 80%, 55%); background: hsla(0, 80%, 55%, 0.1); transform: translateY(-2px); }
.btn-video-icon { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, hsl(0, 80%, 55%), hsl(0, 80%, 45%)); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: white; }

/* Video Modal */
.video-modal { position: fixed; inset: 0; z-index: 10000; background: hsla(0,0%,0%,0.92); backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.video-modal.active { opacity: 1; visibility: visible; }
.video-modal-close { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid hsla(255,255,255,0.2); color: white; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; z-index: 10; cursor: pointer; background: none; }
.video-modal-close:hover { background: hsla(255,255,255,0.1); }
.video-modal-content { width: 90vw; max-width: 900px; }
.video-modal-wrapper { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius-lg); overflow: hidden; }
.video-modal-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ── FAQ Page Styles ──────────────────────── */
.faq-section { position: relative; z-index: 1; padding: var(--section-padding) 0; }

.faq-grid { max-width: 800px; margin: 0 auto; }

.faq-item { border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-card); backdrop-filter: blur(10px); margin-bottom: 12px; overflow: hidden; transition: all 0.3s var(--ease-out); }
.faq-item:hover { border-color: var(--border-hover); }
.faq-item.active { border-color: var(--primary); box-shadow: 0 0 20px hsla(270, 85%, 55%, 0.1); }

.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; cursor: pointer; transition: all 0.3s ease; width: 100%; text-align: left; }
.faq-question:hover { background: var(--bg-card-hover); }
.faq-question h3 { font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 600; flex: 1; padding-right: 16px; }
.faq-question-icon { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--text-muted); transition: all 0.3s var(--ease-out); flex-shrink: 0; }
.faq-item.active .faq-question-icon { background: var(--primary); border-color: var(--primary); color: white; transform: rotate(180deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out); }
.faq-answer-inner { padding: 0 24px 20px; font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; }

/* ── Changelog Page Styles ────────────────── */
.changelog-section { position: relative; z-index: 1; padding: var(--section-padding) 0; }

.changelog-timeline { max-width: 800px; margin: 0 auto; position: relative; }
.changelog-timeline::before { content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--primary), var(--border), transparent); }

.changelog-item { position: relative; padding-left: 56px; margin-bottom: 40px; }
.changelog-dot { position: absolute; left: 12px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg-primary); border: 3px solid var(--primary); z-index: 1; }
.changelog-item:first-child .changelog-dot { background: var(--primary); box-shadow: 0 0 12px var(--primary-glow); }

.changelog-date { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--primary-light); margin-bottom: 8px; display: inline-flex; align-items: center; gap: 8px; }
.changelog-date i { font-size: 0.7rem; }

.changelog-card { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-card); backdrop-filter: blur(10px); transition: all 0.3s ease; }
.changelog-card:hover { border-color: var(--border-hover); transform: translateX(4px); }

.changelog-version { font-family: 'Orbitron', monospace; font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.changelog-title { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 16px; }

.changelog-changes { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.changelog-changes li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }
.changelog-tag { padding: 2px 8px; border-radius: 4px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; }
.changelog-tag.added { background: hsla(140, 70%, 45%, 0.15); color: hsl(140, 70%, 55%); }
.changelog-tag.fixed { background: hsla(200, 80%, 50%, 0.15); color: hsl(200, 80%, 60%); }
.changelog-tag.improved { background: hsla(270, 85%, 55%, 0.15); color: var(--primary-light); }
.changelog-tag.removed { background: hsla(0, 70%, 50%, 0.15); color: hsl(0, 70%, 60%); }

/* ── Page Header (for sub-pages) ──────────── */
.page-header { position: relative; z-index: 1; padding: 140px 0 60px; text-align: center; }
.page-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center top, var(--primary-glow), transparent 70%); opacity: 0.3; pointer-events: none; }

/* ── Discord Widget ───────────────────────── */
.discord-widget-section { position: relative; z-index: 1; padding: 0 0 var(--section-padding); }
.discord-widget-wrapper { max-width: 400px; margin: 0 auto; }
.discord-widget-card { border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--bg-card); backdrop-filter: blur(10px); overflow: hidden; transition: all 0.3s ease; }
.discord-widget-card:hover { border-color: #5865f2; box-shadow: 0 0 30px hsla(235, 86%, 65%, 0.2); }
.discord-widget-header { padding: 20px 24px; background: linear-gradient(135deg, #5865f2, #4752c4); display: flex; align-items: center; gap: 12px; }
.discord-widget-header i { font-size: 1.5rem; color: white; }
.discord-widget-header-text h4 { font-family: 'Orbitron', monospace; font-size: 0.95rem; font-weight: 700; color: white; }
.discord-widget-header-text span { font-size: 0.78rem; color: hsla(255,255,255,0.7); }
.discord-widget-body { padding: 20px 24px; }
.discord-widget-body iframe { width: 100%; border: none; border-radius: var(--radius-sm); }
.discord-join-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; margin-top: 16px; border-radius: var(--radius-sm); background: #5865f2; color: white; font-weight: 600; font-size: 0.92rem; transition: all 0.3s ease; }
.discord-join-btn:hover { background: #4752c4; transform: translateY(-2px); box-shadow: 0 4px 15px hsla(235, 86%, 65%, 0.4); }

@media (max-width: 768px) {
    .btn-video { width: 100%; max-width: 300px; justify-content: center; }
    .changelog-timeline::before { left: 14px; }
    .changelog-item { padding-left: 44px; }
    .changelog-dot { left: 6px; }
    .page-header { padding: 100px 0 40px; }
    .faq-question { padding: 16px 18px; }
    .faq-question h3 { font-size: 0.88rem; }
    .faq-answer-inner { padding: 0 18px 16px; font-size: 0.85rem; }
    .changelog-card { padding: 18px; }
    .changelog-version { font-size: 0.95rem; }
}

@media (max-width: 480px) {
    .page-header { padding: 80px 0 30px; }
    .changelog-timeline::before { left: 10px; }
    .changelog-item { padding-left: 36px; margin-bottom: 28px; }
    .changelog-dot { left: 3px; width: 14px; height: 14px; }
    .changelog-card { padding: 14px; }
    .changelog-version { font-size: 0.85rem; }
    .changelog-title { font-size: 0.82rem; }
    .changelog-changes li { font-size: 0.8rem; }
    .faq-question { padding: 14px 16px; }
    .faq-question h3 { font-size: 0.82rem; }
    .faq-question-icon { width: 28px; height: 28px; font-size: 0.65rem; }
    .faq-answer-inner { padding: 0 16px 14px; font-size: 0.82rem; }
}
