/* assets/css/hades.css - HADES Resmi Tema Tasarımı (Referans Görsel Birebir Uyumu) */

:root {
    --bg-dark: #050a14;
    --bg-card: #0a1220;
    --bg-bubble-hades: #101c30;
    --bg-bubble-user: #1f2736;
    
    --neon-cyan: #00f0ff;
    --neon-blue: #0284c7;
    --neon-orange: #ff7300;
    --neon-orange-dark: #ea580c;
    --neon-orange-glow: rgba(255, 115, 0, 0.45);
    --neon-cyan-glow: rgba(0, 240, 255, 0.4);
    --neon-green: #10b981;
    --neon-red: #ef4444;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* Koyu Arka Plan Maskesi & Cyber Dokusu */
.body-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 20% 25%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(255, 115, 0, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #050a14 0%, #08101e 50%, #050a14 100%);
    pointer-events: none;
    z-index: 0;
}

/* Ana Uygulama Konteyneri */
.hades-app {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    html, body {
        height: 100vh;
        overflow: hidden; /* Sayfa dıştan yukarı aşağı kaymaz, her şey tek ekrana sığar */
    }
    .hades-app {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }
}

/* 1. Üst Menü (Header Nav) */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0 10px 0;
    flex-shrink: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.nav-brand:hover {
    transform: scale(1.02);
}

.brand-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.35));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-menu a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 500;
    transition: color 0.2s, text-shadow 0.2s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-nav-login {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 8px 22px;
    border-radius: 24px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-nav-login:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.btn-nav-start {
    background: linear-gradient(135deg, #ff7300, #ea580c);
    color: #fff;
    padding: 9px 24px;
    border-radius: 24px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 18px var(--neon-orange-glow);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-nav-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 115, 0, 0.7);
}

/* 2. Ana Sahne: Sol Hero & Sağ Chatbot */
.main-stage {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 28px;
    align-items: stretch;
    flex: 1;
    margin: 0;
    min-height: 0;
}

@media (min-width: 992px) {
    .main-stage {
        height: calc(100vh - 82px);
    }
}

/* Sol Hero Alanı */
.hero-stage-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.hero-visual-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 160px);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-full-visual {
    width: 100%;
    max-height: calc(100vh - 180px);
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    filter: drop-shadow(0 10px 30px rgba(0, 240, 255, 0.25));
    animation: heroGlow 5s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { filter: drop-shadow(0 8px 25px rgba(0, 240, 255, 0.2)); }
    100% { filter: drop-shadow(0 12px 35px rgba(0, 240, 255, 0.45)); }
}

/* Ekran Okuyucular & SEO İçin Açıklayıcı Metin */
.hero-text-accessible {
    margin-top: 10px;
    max-width: 540px;
}

.hero-3d-title {
    display: none; /* Görselde 3D olarak yer aldığı için gizlenir, SEO kalır */
}

.hero-subtitle {
    display: none;
}

.hero-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
    display: none; /* Desktop tam ekran modunda taşmayı önlemek için gizlenir */
}

.hero-desc strong {
    color: var(--neon-cyan);
}

.hero-badges {
    display: none; /* Desktop tam ekran modunda taşmayı önlemek için gizlenir */
}

.hero-badge {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: #38bdf8;
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 0.76rem;
    font-weight: 600;
}

/* 3. Sağ Sütun: Chatbot Penceresi (Birebir Tema ve Neon Çerçeve) */
.chat-window {
    position: relative;
    border-radius: 26px;
    padding: 2.5px;
    /* Solda Cyan, Sağda Turuncu Işıltılı Neon Çerçeve */
    background: linear-gradient(135deg, #00f0ff 0%, #0284c7 35%, #ff7300 75%, #ff8800 100%);
    box-shadow: 
        -8px 8px 30px rgba(0, 240, 255, 0.28), 
        8px 8px 30px rgba(255, 115, 0, 0.28);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: calc(100vh - 84px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.chat-window.fullscreen {
    position: fixed;
    top: 20px; left: 20px; right: 20px; bottom: 20px;
    z-index: 9999;
    max-width: none;
    height: calc(100vh - 40px);
}

.chat-window.minimized .chat-window-inner {
    height: 64px !important;
}

.chat-window.minimized .chat-conversation-flow,
.chat-window.minimized .chat-bottom-bar,
.chat-window.minimized .typing-line {
    display: none !important;
}

.chat-window-inner {
    background: rgba(8, 16, 28, 0.94);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100% !important;
    max-height: 100% !important;
    flex: 1;
    position: relative;
    min-height: 0;
}

/* Chat Header */
.chat-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(14, 25, 42, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-robot-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar-thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 12px var(--neon-cyan-glow);
    object-fit: cover;
    background: #000;
}

.chat-name-block h3 {
    font-size: 0.96rem;
    font-weight: 700;
    color: #fff;
    margin-top: 1px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    color: var(--neon-green);
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(1.3); }
}

.chat-window-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-ctrl-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.window-ctrl-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

/* Chat Mesaj Akışı */
.chat-conversation-flow {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

/* Özel Scrollbar */
.chat-conversation-flow::-webkit-scrollbar {
    width: 6px;
}
.chat-conversation-flow::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
.chat-conversation-flow::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Mesaj Satırları */
.chat-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    animation: messageIn 0.25s ease-out forwards;
}

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

.chat-row.hades {
    justify-content: flex-start;
}

.chat-row.user {
    justify-content: flex-end;
}

.msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    object-fit: cover;
    flex-shrink: 0;
}

.msg-bubble {
    max-width: 82%;
    padding: 13px 18px;
    border-radius: 20px;
    font-size: 0.88rem;
    line-height: 1.6;
    word-break: break-word;
}

.chat-row.hades .msg-bubble {
    background: var(--bg-bubble-hades);
    border: 1px solid rgba(0, 240, 255, 0.22);
    color: #f1f5f9;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.chat-row.user .msg-bubble {
    background: var(--bg-bubble-user);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.msg-bubble strong {
    color: var(--neon-cyan);
}

.msg-bubble a {
    color: #38bdf8;
    text-decoration: underline;
}

/* Öneri Çipleri (Pill Butonlar) */
.chat-action-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.action-pill {
    background: rgba(255, 115, 0, 0.08);
    border: 1px solid rgba(255, 115, 0, 0.45);
    color: #ff9d42;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.action-pill:hover {
    background: var(--neon-orange);
    color: #fff;
    box-shadow: 0 0 14px var(--neon-orange-glow);
    transform: translateY(-1px);
}

.action-pill.cyan {
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.4);
    color: var(--neon-cyan);
}

.action-pill.cyan:hover {
    background: var(--neon-cyan);
    color: #050a14;
    box-shadow: 0 0 14px var(--neon-cyan-glow);
}

.action-pill.orange-bold {
    background: rgba(255, 115, 0, 0.18);
    border-color: #ff7300;
    color: #fff;
    font-weight: 700;
}

.action-pill.orange-bold:hover {
    background: #ff7300;
    box-shadow: 0 0 16px var(--neon-orange-glow);
}

.action-pill.red {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.45);
    color: #f87171;
}

.action-pill.red:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
}

/* Chatbot İçi Hesaplama & İşlem Kartları */
.in-chat-calc-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 14px;
    padding: 14px;
    margin-top: 10px;
}

.in-chat-range {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
    margin: 8px 0;
}

.in-chat-breakdown {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    padding-top: 8px;
    margin-top: 8px;
}

.in-chat-upload-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid var(--neon-cyan);
    color: #fff;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-top: 8px;
}

/* Yazıyor Çizgisi */
.typing-line {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 22px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--neon-cyan);
    border-radius: 50%;
    animation: typingJump 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingJump {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

/* 4. Alt Kapsül Giriş Çubuğu (Görsel Birebir Uyumu) */
.chat-bottom-bar {
    padding: 14px 20px;
    background: rgba(10, 18, 32, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.capsule-input-box {
    display: flex;
    align-items: center;
    background: rgba(16, 28, 48, 0.85);
    border: 1.5px solid rgba(0, 240, 255, 0.28);
    border-radius: 35px;
    padding: 5px 8px 5px 20px;
    transition: all 0.2s ease;
}

.capsule-input-box:focus-within {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
}

.chat-text-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.92rem;
    padding: 8px 4px;
    font-family: var(--font-main);
}

.chat-text-input::placeholder {
    color: #64748b;
}

.input-icon-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.input-icon-btn:hover {
    color: var(--neon-cyan);
}

.input-icon-btn.recording {
    color: var(--neon-red);
    animation: micPulse 1s infinite;
}

@keyframes micPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Turuncu Gönder Butonu */
.btn-orange-send {
    background: linear-gradient(135deg, #ff7300, #ea580c);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 9px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 15px var(--neon-orange-glow);
    transition: all 0.2s;
    margin-left: 6px;
    font-family: var(--font-main);
}

.btn-orange-send:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(255, 115, 0, 0.65);
}

/* Modal Stilleri */
.hades-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 10, 20, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hades-modal.active {
    display: flex;
}

.modal-card {
    background: #0d1728;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.05rem;
    color: #fff;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 20px;
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Responsive / Mobil Uyumluluk */
@media (max-width: 1024px) {
    .main-stage {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-visual-card {
        max-width: 420px;
        margin: 0 auto;
    }
    
    .hero-text-accessible {
        text-align: center;
        margin: 10px auto;
    }
    
    .hero-badges {
        justify-content: center;
    }

    .nav-menu {
        display: none;
    }

    .chat-window-inner {
        height: 520px;
    }
}

@media (max-width: 480px) {
    .hades-app {
        padding: 10px 14px;
    }

    .brand-logo-img {
        height: 34px;
    }

    .btn-nav-login {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .btn-nav-start {
        padding: 7px 16px;
        font-size: 0.8rem;
    }

    .chat-window-inner {
        height: 480px;
    }

    .msg-bubble {
        max-width: 90%;
        padding: 10px 14px;
        font-size: 0.84rem;
    }

    .btn-orange-send span {
        display: none;
    }

    .btn-orange-send {
        padding: 9px 14px;
    }
}
