/* ======================================================
   AM INTERACTIVE — PRESENTATION DISPLAY SCREEN
   For LED Walls, 4K Projectors & Confidence Monitors
   ====================================================== */

body.display-mode {
    background-color: #06070b;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.display-stage {
    min-height: 100vh;
    width: 100vw;
    padding: 6vh 8vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

/* Background Atmosphere Glow */
.display-glow-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140vw;
    height: 140vh;
    pointer-events: none;
    z-index: 1;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.09) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}

/* Header bar */
.stage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 5;
}

.stage-brand-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stage-logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(6, 182, 212, 0.35);
}

.stage-brand-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.stage-event-name {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    border-left: 2px solid var(--border-medium);
    padding-left: 16px;
    margin-left: 8px;
}

.stage-status-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stage-live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fda4af;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stage-votes-counter {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Stage Canvas Content (Central Area) */
.stage-main-canvas {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    padding: 3vh 0;
}

/* 1. Poll View */
.display-poll-container {
    display: none;
    flex-direction: column;
    width: 100%;
    animation: fadeInStage 0.4s ease-out;
}

.display-poll-container.active {
    display: flex;
}

.stage-question-title {
    font-size: clamp(2.4rem, 4vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 4vh;
    max-width: 95%;
}

.stage-options-grid {
    display: flex;
    flex-direction: column;
    gap: 2.2vh;
    width: 100%;
}

.stage-option-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.stage-option-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
}

.stage-option-name {
    font-size: clamp(1.4rem, 2vw, 2.2rem);
    font-weight: 700;
    color: #f1f5f9;
}

.stage-option-stats {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.stage-option-percent {
    font-size: clamp(1.6rem, 2.2vw, 2.6rem);
    font-weight: 800;
    font-family: var(--font-display);
    color: #ffffff;
}

.stage-option-count {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.stage-option-track {
    width: 100%;
    height: clamp(20px, 2.6vh, 34px);
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stage-option-fill {
    height: 100%;
    width: 0%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Q&A Spotlight View */
.display-qa-container {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    animation: fadeInStage 0.4s ease-out;
}

.display-qa-container.active {
    display: flex;
}

.qa-spotlight-pill {
    background: var(--accent-cyan);
    color: #06070b;
    font-size: 1rem;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3vh;
}

.qa-spotlight-question {
    font-size: clamp(2.6rem, 4.5vw, 5.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 4vh;
}

.qa-spotlight-author-box {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.35rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.qa-spotlight-author-name {
    color: var(--text-highlight);
    font-weight: 700;
}

/* 3. Welcome & QR Code Standby View */
.display-standby-container {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8vw;
    width: 100%;
    animation: fadeInStage 0.4s ease-out;
}

.display-standby-container.active {
    display: flex;
}

.standby-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5vh;
}

.standby-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
}

.standby-title {
    font-size: clamp(2.8rem, 4.5vw, 5.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
}

.standby-instructions {
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
    color: var(--text-secondary);
    line-height: 1.4;
}

.standby-url-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-xl);
    font-family: monospace;
    font-size: clamp(1.2rem, 1.8vw, 2rem);
    font-weight: 700;
    color: #60a5fa;
    box-shadow: var(--glow-primary);
    width: fit-content;
    margin-top: 1.5vh;
}

.standby-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.standby-qr-frame {
    background: #ffffff;
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.15);
    width: clamp(280px, 24vw, 440px);
    height: clamp(280px, 24vw, 440px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.standby-qr-canvas {
    width: 100%;
    height: 100%;
}

.standby-qr-caption {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Stage Footer Bar */
.stage-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 5;
    padding-top: 2vh;
    border-top: 1px solid var(--border-subtle);
}

.stage-footer-instruction {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.stage-url-badge {
    color: #ffffff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-family: monospace;
}

.stage-controls-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.15;
    transition: opacity 0.25s ease;
}

.stage-controls-floating:hover {
    opacity: 1;
}

.btn-stage-tool {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(16, 18, 26, 0.85);
    border: 1px solid var(--border-medium);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    backdrop-filter: var(--glass-blur);
}

.btn-stage-tool:hover {
    background: var(--bg-card-hover);
    transform: scale(1.08);
}

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