/* 
 * A.R.I.S. Sanal Deneyim ve Minimal HUD Kartları Stilleri (Sora & kerimeksi.com stili)
 */

.sim-container {
    padding: 3rem 0 6rem;
    min-height: calc(100vh - 80px);
}

.sim-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.sim-stage-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    position: relative;
}

/* Sol Ana Sahne: Orb, Dalga ve Yanıt Konsolu */
.sim-stage-main {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    min-height: 560px;
}

/* Durum Başlığı ve SFX Butonu */
.sim-top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    z-index: 10;
}

.sim-state-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.sim-state-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* Durum Renkleri */
.sim-state-badge.state-listening {
    border-color: rgba(0, 240, 255, 0.3);
    color: var(--accent);
}
.sim-state-badge.state-listening .sim-state-dot {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.sim-state-badge.state-thinking {
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--accent-yellow);
}
.sim-state-badge.state-thinking .sim-state-dot {
    background: var(--accent-yellow);
    box-shadow: 0 0 8px var(--accent-yellow);
}

.sim-state-badge.state-speaking {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent-green);
}
.sim-state-badge.state-speaking .sim-state-dot {
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.sim-state-badge.state-error {
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
}
.sim-state-badge.state-error .sim-state-dot {
    background: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
}

/* SFX Switch */
.sfx-toggle-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-family: var(--font-mono);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.sfx-toggle-btn.active {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--text);
    background: rgba(16, 185, 129, 0.08);
}

/* Jarvis Orb */
.sim-orb-container {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0 2rem;
    z-index: 5;
    cursor: pointer;
    border-radius: 50%;
}

.sim-orb-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 119, 254, 0.2) 0%, transparent 70%);
    transition: var(--transition);
}

.sim-orb-image {
    width: 170px;
    height: 170px;
    object-fit: contain;
    border-radius: 50%;
    z-index: 6;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 20px rgba(0, 119, 254, 0.4));
}

.sim-orb-container:hover .sim-orb-image {
    transform: scale(1.05);
}

/* Voice Wave Bars */
.voice-wave-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 32px;
    margin: 0.5rem 0 1.5rem;
    z-index: 5;
}

.wave-bar {
    width: 3.5px;
    height: 10px;
    background: var(--accent);
    border-radius: 3px;
    transition: height 0.15s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
    animation: waveBounce 1.2s ease-in-out infinite alternate;
}

.wave-bar:nth-child(1) { animation-delay: 0.05s; }
.wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-bar:nth-child(3) { animation-delay: 0.25s; }
.wave-bar:nth-child(4) { animation-delay: 0.35s; }
.wave-bar:nth-child(5) { animation-delay: 0.45s; }
.wave-bar:nth-child(6) { animation-delay: 0.55s; }
.wave-bar:nth-child(7) { animation-delay: 0.65s; }
.wave-bar:nth-child(8) { animation-delay: 0.75s; }
.wave-bar:nth-child(9) { animation-delay: 0.85s; }
.wave-bar:nth-child(10) { animation-delay: 0.75s; }
.wave-bar:nth-child(11) { animation-delay: 0.65s; }
.wave-bar:nth-child(12) { animation-delay: 0.55s; }
.wave-bar:nth-child(13) { animation-delay: 0.45s; }
.wave-bar:nth-child(14) { animation-delay: 0.35s; }
.wave-bar:nth-child(15) { animation-delay: 0.25s; }
.wave-bar:nth-child(16) { animation-delay: 0.15s; }
.wave-bar:nth-child(17) { animation-delay: 0.2s; }
.wave-bar:nth-child(18) { animation-delay: 0.4s; }

@keyframes waveBounce {
    0% { height: 6px; opacity: 0.4; }
    50% { height: 24px; opacity: 1; }
    100% { height: 8px; opacity: 0.5; }
}

.sim-stage-main[data-state="SPEAKING"] .wave-bar {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    animation-duration: 0.65s;
}

.sim-stage-main[data-state="THINKING"] .wave-bar {
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
    animation-duration: 0.85s;
}

.sim-stage-main[data-state="ERROR"] .wave-bar {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
    height: 4px;
    animation: none;
}

.sim-stage-main[data-state="PASSIVE"] .wave-bar {
    background: #475569;
    height: 3px;
    animation: none;
    opacity: 0.3;
}

/* ARIS Cevap Baloncuğu */
.sim-speech-bubble,
.sim-dialogue-box {
    width: 100%;
    max-width: 620px;
    background: rgba(13, 13, 20, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.8rem;
    color: var(--text);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 2.5rem; /* Ayrık, rahat ve ferah nefes payı */
    text-align: center;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sim-speech-bubble::before,
.sim-dialogue-box::before {
    content: 'ARIS';
    position: absolute;
    top: -10px;
    left: 24px;
    background: #ffffff;
    color: #08080c;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 800;
    font-style: normal;
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dialogue-speaker {
    display: none;
}

.dialogue-text {
    width: 100%;
    text-align: center;
}

.sim-stage-main[data-state="SPEAKING"] .sim-speech-bubble,
.sim-stage-main[data-state="SPEAKING"] .sim-dialogue-box {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.sim-stage-main[data-state="THINKING"] .sim-speech-bubble,
.sim-stage-main[data-state="THINKING"] .sim-dialogue-box {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
}

.sim-stage-main[data-state="ERROR"] .sim-speech-bubble,
.sim-stage-main[data-state="ERROR"] .sim-dialogue-box {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.15);
}

/* Komut Giriş Çubuğu */
.sim-command-bar {
    width: 100%;
    max-width: 620px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.sim-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 12px 20px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.sim-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.07);
}

.sim-mic-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.sim-mic-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.sim-mic-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

/* Sağ Panel: Hazır Senaryolar */
.sim-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sim-preset-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.preset-title {
    font-size: 0.92rem;
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preset-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preset-chip {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
}

.preset-chip:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    color: var(--text);
    transform: translateX(3px);
}

/* ─────────────────────────────────────────────────────────────
   HUD KARTLARI (Sora & Minimalist)
   ───────────────────────────────────────────────────────────── */
.hud-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hud-widget {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(15px); }
    to { opacity: 1; transform: translateX(0); }
}

.hud-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.hud-widget-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-mid);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.hud-close-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    cursor: pointer;
}

.hud-close-btn:hover {
    color: var(--accent-red);
}

.weather-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.weather-temp {
    font-size: 1.8rem;
    font-weight: 700;
}

.weather-details {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: right;
}

.bjk-match-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 8px 0;
}

.bjk-team {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 600;
}

.bjk-score {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-green);
    padding: 0 10px;
}

.bjk-status {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-yellow);
    text-align: center;
}

.finance-ticker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.finance-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
}

.finance-val {
    font-family: var(--font-mono);
    color: var(--accent-green);
    font-weight: 600;
}

.light-widget-box {
    text-align: center;
}

.light-orb-preview {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background: #00f0ff;
    box-shadow: 0 0 20px #00f0ff;
    transition: var(--transition);
}

.light-colors {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.sys-meter-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sys-meter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
}

.meter-bar-bg {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.meter-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
}

.gate-banner {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(30, 10, 14, 0.9);
}

.gate-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.gate-btn-approve {
    flex: 1;
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 7px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.gate-btn-cancel {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    border: none;
    padding: 7px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .sim-stage-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .sim-stage-main {
        padding: 1.5rem 1rem;
        min-height: 440px;
    }
    .sim-orb-container {
        width: 190px;
        height: 190px;
        margin: 1rem 0;
    }
    .sim-command-bar {
        flex-wrap: wrap;
    }
    .sim-command-bar .btn {
        width: 100%;
    }
    .sim-sidebar {
        padding: 1.25rem 1rem;
    }
}
