/**
 * File: assets/css/mann_setu.css
 * Role: Cognitive Theatre & Emotional Continuity Layer
 * Status: MASTER ALIGNMENT [IFL v1.1.7] — THEATRE READY
 */

/* ======================================================
 * 0. GUARD — VISIBILITY CONTRACT
 * ====================================================== */
[x-cloak] { display: none !important; }

#failsafe-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.5s ease;
}

/* ======================================================
 * 1. ROOT VARIABLES — SERIOUS, CALM PALETTE
 * ====================================================== */
:root {
    --bg-deep: #000d1a;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --accent-gold: #FFCC00;
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 204, 0, 0.25);
    --shadow-heavy: 0 0 50px rgba(0,0,0,0.6);
}

/* ======================================================
 * 2. GEOMETRY — THEATRE AREA & SCROLL LOCKS
 * ====================================================== */
html, body {
    margin: 0; padding: 0; width: 100%; height: 100%;
    background: var(--bg-deep);
    color: var(--text-main);
    font-family: system-ui, -apple-system, sans-serif;
    overflow: hidden; /* Lock viewport for theatre focus */
}

.theatre-vantage {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Static Header Area */
.context-container {
    flex-shrink: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 20px;
    z-index: 1000;
    text-align: center;
}

/* Main Scrollable Stage */
.theatre-area-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px 15px 120px; /* Top clearance for new text */
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* --- THEATRE TOP-ANCHORED INTERACTION ZONE --- */
.centered-interaction-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Elements appear close to top line */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* ======================================================
 * 3. ANIMATIONS — HIDE TO BLUR TO CLEAR
 * ====================================================== */
@keyframes reveal-sequence {
    0% { opacity: 0; filter: blur(15px); transform: translateY(10px); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.reveal-blur-clear {
    animation: reveal-sequence 1.4s ease-out forwards;
}

/* ======================================================
 * 4. UI ELEMENTS — CARDS & BUTTONS
 * ====================================================== */
.mirror-card, .opt-card-row {
    width: 100%;
    max-width: 440px;
    padding: 18px 24px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    color: var(--text-main);
}

.opt-card-row.selected {
    background: var(--accent-gold);
    color: #000;
    font-weight: 800;
}

.primary-action {
    background: var(--accent-gold);
    color: #000;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 900;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.3);
}

.soft-continue {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
}

/* ======================================================
 * 5. ELEGANT DATA ENTRY (DOSTI PHASE)
 * ====================================================== */
.info-block {
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glass-frame {
    width: 100%;
    height: 3.2rem;              /* Double line height */
    margin-bottom: 12px;
    padding: 0 20px;             /* Horizontal left indent */
    
    display: flex;
    align-items: center;         /* Vertical centering */
    justify-content: flex-start; /* Horizontal left alignment */
    
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    box-sizing: border-box;
    outline: none;
}

.glass-frame::placeholder {
    color: var(--text-dim);
    opacity: 0.7;
}

.glass-frame:focus {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.08);
}

/* Select specific styling to match double-height */
select.glass-frame {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

/* ======================================================
 * 6. SUMMARY BLOCKS
 * ====================================================== */
.summary-theatre {
    width: 100%;
    max-width: 450px;
    max-height: 50vh;
    overflow-y: auto;
    text-align: left;
    margin: 20px auto;
    padding-right: 10px;
}

.summary-column-item {
    padding-left: 15px;
    border-left: 3px solid var(--accent-gold);
    margin-bottom: 20px;
}

/* ======================================================
 * 7. UTILITY
 * ====================================================== */
.hero-main {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    color: var(--accent-gold);
    font-weight: 900;
    margin: 10px 0;
    line-height: 1.2;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 15px;
}

/* Sticky Action Buffer */
.sticky-action-85 {
    width: 100%;
    max-width: 400px;
    margin-top: 30px;
}