/* ============================================
   PAGE.CSS — Section detail pages
   Shared styles for all individual pages
   ============================================ */

/* ── PAGE NAV ────────────────────────────── */
.page-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 72px;
    background: rgba(10,10,10,0.85); backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border); z-index: 1000;
}
.page-nav .nav-inner { max-width: 1200px; margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; }
.page-nav .nav-left { display: flex; align-items: center; gap: 20px; }
.page-nav .nav-name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); transition: opacity 0.2s; }
.page-nav .nav-name:hover { opacity: 0.7; }
.page-section-tag { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 12px; border-radius: 6px; background: rgba(255,255,255,0.04); }

/* ── PAGE HERO ────────────────────────────── */
.page-hero {
    min-height: 50vh; display: flex; align-items: center; justify-content: center;
    padding: 140px 40px 80px; position: relative; overflow: hidden; text-align: center;
}
.page-hero-content { max-width: 700px; position: relative; z-index: 2; }
.page-tag {
    font-size: 15px; font-weight: 700; color: var(--accent);
    letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; display: block;
}
.page-title {
    font-size: clamp(48px, 8vw, 80px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 16px;
}
.page-subtitle { font-size: 18px; color: var(--text-muted); line-height: 1.6; max-width: 500px; margin: 0 auto; }
.page-hero-glow {
    position: absolute; top: 30%; left: 50%; transform: translate(-50%,-50%);
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--element-rgb, 228,255,26),0.04) 0%, transparent 70%);
    pointer-events: none; z-index: 1; animation: glowPulse 4s ease-in-out infinite;
}

/* ── PAGE CONTENT ─────────────────────────── */
.page-content { max-width: 900px; margin: 0 auto; padding: 0 40px 80px; }

/* ── SECTION NAVIGATION (prev/next) ──────── */
.section-nav {
    display: flex; justify-content: space-between; gap: 20px;
    max-width: 900px; margin: 0 auto; padding: 40px 40px 80px;
}
.section-nav-btn {
    flex: 1; padding: 24px; border-radius: 16px;
    background: rgba(255,255,255,0.02); border: 1px solid var(--border);
    transition: all 0.3s; text-decoration: none;
}
.section-nav-btn:hover {
    border-color: rgba(var(--element-rgb, 228,255,26),0.15); background: rgba(255,255,255,0.04);
    transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.section-nav-btn.next { text-align: right; }
.snb-arrow { font-size: 20px; display: block; margin-bottom: 4px; }
.snb-label { font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.08em; }
.snb-name { font-size: 16px; font-weight: 700; color: var(--text); display: block; margin-top: 4px; }

/* ── MASCOT ────────────────────────────────── */
.mascot {
    position: fixed; bottom: 80px; right: 24px; z-index: 990;
    cursor: pointer; user-select: none;
}
.mascot-body {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--element-rgb, 228,255,26),0.15), rgba(var(--element-rgb, 34,211,238),0.1));
    border: 2px solid rgba(var(--element-rgb, 228,255,26),0.3);
    display: flex; align-items: center; justify-content: center;
    position: relative; transition: transform 0.3s, box-shadow 0.3s;
    animation: mascotFloat 3s ease-in-out infinite;
}
.mascot-body:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(var(--element-rgb, 228,255,26),0.2);
}
@keyframes mascotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.mascot-face {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.mascot-eyes { display: flex; gap: 8px; }
.mascot-eye {
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 6px rgba(var(--element-rgb, 228,255,26),0.5);
    animation: mascotBlink 4s ease-in-out infinite;
}
.mascot-eye.right { animation-delay: 0.1s; }
@keyframes mascotBlink {
    0%, 45%, 55%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}
.mascot-mouth {
    width: 10px; height: 5px; border-radius: 0 0 10px 10px;
    border: 2px solid var(--accent); border-top: none;
}
.mascot-glow {
    position: absolute; inset: -8px; border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--element-rgb, 228,255,26),0.08), transparent 70%);
    pointer-events: none;
}

/* Mascot speech bubble */
.mascot-bubble {
    position: absolute; bottom: calc(100% + 12px); right: 0;
    min-width: 180px; max-width: 260px;
    background: rgba(10,10,10,0.95); border: 1px solid rgba(var(--element-rgb, 228,255,26),0.2);
    border-radius: 12px; padding: 10px 14px;
    opacity: 0; transform: translateY(4px); pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.mascot-bubble::after {
    content: ''; position: absolute; bottom: -6px; right: 20px;
    width: 12px; height: 12px; background: rgba(10,10,10,0.95);
    border-right: 1px solid rgba(var(--element-rgb, 228,255,26),0.2);
    border-bottom: 1px solid rgba(var(--element-rgb, 228,255,26),0.2);
    transform: rotate(45deg);
}
.mascot:hover .mascot-bubble { opacity: 1; transform: translateY(0); }
.mascot-bubble-text { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ── VOICE CHAT BAR ───────────────────────── */
.voice-chat-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 980;
    background: rgba(10,10,10,0.92); backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 12px 24px;
}
.voice-chat-inner {
    max-width: 700px; margin: 0 auto;
    display: flex; align-items: center; gap: 12px;
}
.voice-btn {
    display: flex; align-items: center; gap: 8px;
    background: rgba(var(--element-rgb, 228,255,26),0.08); border: 1px solid rgba(var(--element-rgb, 228,255,26),0.2);
    border-radius: 100px; padding: 10px 16px;
    color: var(--accent); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.3s; flex-shrink: 0;
    font-family: 'Inter', sans-serif;
}
.voice-btn:hover { background: rgba(var(--element-rgb, 228,255,26),0.12); }
.voice-btn.listening { animation: voicePulse 1.5s ease-in-out infinite; border-color: #FF5F57; }
@keyframes voicePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,95,87,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(255,95,87,0); }
}
.voice-icon { font-size: 18px; }
.voice-status { font-size: 12px; color: var(--text-muted); }
.voice-input {
    flex: 1; background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: 10px; padding: 10px 16px;
    color: var(--text); font-size: 14px; font-family: 'Inter', sans-serif;
    outline: none; transition: border-color 0.3s;
}
.voice-input:focus { border-color: rgba(var(--element-rgb, 228,255,26),0.3); }
.voice-input::placeholder { color: rgba(255,255,255,0.25); }
.voice-send {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(var(--element-rgb, 228,255,26),0.1); border: 1px solid rgba(var(--element-rgb, 228,255,26),0.2);
    color: var(--accent); font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.voice-send:hover { background: rgba(var(--element-rgb, 228,255,26),0.2); }
.voice-response {
    max-width: 700px; margin: 0 auto;
    padding: 0; max-height: 0; overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}
.voice-response.active {
    padding: 12px 0 4px; max-height: 200px;
}
.voice-response p {
    font-size: 14px; color: var(--text-muted); line-height: 1.6;
    padding: 12px 16px; border-radius: 10px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .voice-status { display: none; }
    .voice-chat-bar { padding: 8px 16px; }
    .mascot { bottom: 70px; right: 16px; }
    .mascot-body { width: 44px; height: 44px; }
    .section-nav { flex-direction: column; }
    .section-nav-btn.next { text-align: left; }
    .page-hero { padding: 120px 20px 60px; min-height: 40vh; }
    .page-content { padding: 0 20px 60px; }
}
