/* =========================================
   AI Interview Assistant
   Stealth Mode Styles
========================================= */

/* =========================================
   ROOT STEALTH VARIABLES
========================================= */

:root {

    --stealth-bg: #050816;
    --stealth-surface: rgba(8, 15, 30, 0.92);

    --stealth-border: rgba(255,255,255,0.05);

    --stealth-text: #f8fafc;
    --stealth-muted: #64748b;

    --stealth-green: #10b981;
    --stealth-cyan: #22d3ee;
    --stealth-red: #ef4444;

}

/* =========================================
   BODY MODES
========================================= */

body.stealth-enabled {

    overflow: hidden;

    background: #020617;

}

body.stealth-enabled #app-wrapper {

    filter: blur(18px) brightness(0.2);

    transform: scale(0.98);

    transition: all 0.25s ease;

    pointer-events: none;

    user-select: none;

}

body.stealth-enabled #quickHideOverlay {

    display: flex !important;

}

/* =========================================
   QUICK HIDE PANEL
========================================= */

#quickHideOverlay {

    animation: stealthFade 0.25s ease;

}

@keyframes stealthFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

/* =========================================
   CALCULATOR UI
========================================= */

#quickHideOverlay input {

    color: white;

    font-weight: 700;

    letter-spacing: 1px;

}

#quickHideOverlay button {

    position: relative;

    overflow: hidden;

    color: #e2e8f0;

    font-weight: 700;

    transition: all 0.2s ease;

}

#quickHideOverlay button:hover {

    transform: scale(1.03);

}

#quickHideOverlay button:active {

    transform: scale(0.96);

}

#quickHideOverlay button::before {

    content: '';

    position: absolute;

    inset: 0;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.08),
        transparent
    );

    transform: translateX(-100%);

    transition: all 0.4s ease;

}

#quickHideOverlay button:hover::before {

    transform: translateX(100%);

}

/* =========================================
   STEALTH FLOATING BUTTON
========================================= */

.quick-hide-button {

    position: fixed;

    top: 16px;

    right: 16px;

    z-index: 9999;

    width: 46px;

    height: 46px;

    border-radius: 999px;

    border: 1px solid rgba(255,255,255,0.08);

    background: rgba(255,255,255,0.05);

    backdrop-filter: blur(18px);

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition: all 0.25s ease;

}

.quick-hide-button:hover {

    background: rgba(255,255,255,0.1);

    transform: scale(1.05);

}

/* =========================================
   STEALTH STATUS BAR
========================================= */

.stealth-status {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 14px;

    padding: 14px 18px;

    border-radius: 20px;

    background: rgba(255,255,255,0.04);

    border: 1px solid rgba(255,255,255,0.05);

    backdrop-filter: blur(18px);

}

.stealth-status-left {

    display: flex;

    align-items: center;

    gap: 12px;

}

.stealth-status-dot {

    width: 10px;

    height: 10px;

    border-radius: 999px;

    background: var(--stealth-green);

    box-shadow: 0 0 16px rgba(16,185,129,0.9);

    animation: stealthBlink 1.2s infinite;

}

@keyframes stealthBlink {

    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

}

/* =========================================
   INVISIBLE MODE
========================================= */

.invisible-mode .answer-stream-container {

    opacity: 0.02;

    transition: all 0.3s ease;

}

.invisible-mode .answer-stream-container:hover {

    opacity: 1;

}

/* =========================================
   TRANSPARENT PANELS
========================================= */

.stealth-panel {

    background: rgba(255,255,255,0.03);

    border: 1px solid rgba(255,255,255,0.05);

    backdrop-filter: blur(24px);

    border-radius: 24px;

    box-shadow: 0 12px 35px rgba(0,0,0,0.35);

}

/* =========================================
   STEALTH TRANSCRIPT
========================================= */

.stealth-transcript {

    position: relative;

    min-height: 140px;

    max-height: 260px;

    overflow-y: auto;

    padding: 20px;

    border-radius: 22px;

    background: rgba(255,255,255,0.02);

    border: 1px solid rgba(255,255,255,0.04);

}

.stealth-transcript::before {

    content: '';

    position: absolute;

    inset: 0;

    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255,255,255,0.015)
    );

    pointer-events: none;

}

.stealth-line {

    margin-bottom: 14px;

    line-height: 1.7;

    color: #cbd5e1;

    font-size: 14px;

}

.stealth-line.question {

    color: white;

    font-weight: 500;

}

.stealth-line.filtered {

    opacity: 0.25;

    text-decoration: line-through;

}

/* =========================================
   EARBUD MODE
========================================= */

.earbud-mode-active .answer-card {

    border-color: rgba(34,211,238,0.35);

    box-shadow: 0 0 30px rgba(34,211,238,0.1);

}

.earbud-mode-active .live-dot {

    background: #22d3ee;

    box-shadow: 0 0 15px rgba(34,211,238,0.9);

}

/* =========================================
   SELF VOICE DETECTED
========================================= */

.self-voice-warning {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 16px;

    border-radius: 16px;

    background: rgba(239,68,68,0.08);

    border: 1px solid rgba(239,68,68,0.2);

    color: #fecaca;

    font-size: 13px;

    font-weight: 600;

}

/* =========================================
   INTERVIEW LISTENING STATE
========================================= */

.listening-active {

    position: relative;

}

.listening-active::after {

    content: '';

    position: absolute;

    inset: -4px;

    border-radius: inherit;

    border: 1px solid rgba(34,211,238,0.35);

    animation: stealthPulse 2s infinite;

}

@keyframes stealthPulse {

    0% {

        transform: scale(1);

        opacity: 1;

    }

    100% {

        transform: scale(1.06);

        opacity: 0;

    }

}

/* =========================================
   AUTO HIDE ANSWERS
========================================= */

.auto-hide-answers .answer-card {

    opacity: 0.04;

    transform: scale(0.98);

    transition: all 0.25s ease;

}

.auto-hide-answers .answer-card:hover {

    opacity: 1;

    transform: scale(1);

}

/* =========================================
   SILENCE FILTER UI
========================================= */

.silence-filter-badge {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 10px 14px;

    border-radius: 999px;

    background: rgba(16,185,129,0.08);

    border: 1px solid rgba(16,185,129,0.2);

    color: #86efac;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.5px;

}

/* =========================================
   STEALTH LOADER
========================================= */

.stealth-loader {

    width: 46px;

    height: 46px;

    border-radius: 999px;

    border: 4px solid rgba(255,255,255,0.06);

    border-top-color: #22d3ee;

    animation: stealthSpin 1s linear infinite;

}

@keyframes stealthSpin {

    to {
        transform: rotate(360deg);
    }

}

/* =========================================
   FAKE PRODUCTIVITY MODE
========================================= */

.productivity-mode {

    background: #0f172a !important;

}

.productivity-mode .answer-card {

    background: rgba(255,255,255,0.02);

    border-color: rgba(255,255,255,0.04);

}

.productivity-mode .answer-label {

    color: #94a3b8;

}

.productivity-mode .answer-text {

    color: #e2e8f0;

}

/* =========================================
   KEYBOARD SHORTCUT BADGES
========================================= */

.shortcut-key {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 34px;

    height: 34px;

    padding: 0 10px;

    border-radius: 12px;

    background: rgba(255,255,255,0.05);

    border: 1px solid rgba(255,255,255,0.08);

    color: white;

    font-size: 12px;

    font-weight: 700;

}

/* =========================================
   ULTRA COMPACT MODE
========================================= */

.compact-mode .answer-card {

    padding: 14px;

    border-radius: 18px;

}

.compact-mode .answer-text {

    font-size: 14px;

    line-height: 1.5;

}

.compact-mode .answer-meta {

    margin-top: 10px;

}

/* =========================================
   MOBILE STEALTH
========================================= */

@media (max-width: 768px) {

    .quick-hide-button {

        width: 42px;

        height: 42px;

        top: 12px;

        right: 12px;

    }

    .stealth-transcript {

        min-height: 120px;

        padding: 16px;

    }

    .stealth-line {

        font-size: 13px;

    }

    .stealth-status {

        flex-direction: column;

        align-items: flex-start;

        gap: 10px;

    }

    #quickHideOverlay .text-5xl {

        font-size: 2rem;

    }

}

/* =========================================
   LANDSCAPE MOBILE
========================================= */

@media (max-height: 500px) {

    #floatingMicButton {

        width: 60px !important;

        height: 60px !important;

        bottom: 10px !important;

    }

    .answer-card {

        padding: 12px;

    }

}

/* =========================================
   STEALTH FADE UTILITIES
========================================= */

.fade-stealth-in {

    animation: fadeStealthIn 0.2s ease forwards;

}

@keyframes fadeStealthIn {

    from {

        opacity: 0;

        transform: translateY(10px);

    }

    to {

        opacity: 1;

        transform: translateY(0px);

    }

}

.fade-stealth-out {

    animation: fadeStealthOut 0.2s ease forwards;

}

@keyframes fadeStealthOut {

    from {

        opacity: 1;

    }

    to {

        opacity: 0;

    }

}