/* === GENEL SAYFA YAPISI === */
.page-intro { text-align: center; padding: 6rem 2rem 4rem 2rem; background: linear-gradient(180deg, rgba(13, 13, 26, 0.5) 0%, transparent 100%); }
.page-intro h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); margin-bottom: 1rem; color: var(--primary-color); text-shadow: 0 0 15px var(--neon-glow-primary); }
.page-intro p { font-size: 1.1rem; max-width: 700px; margin: 0 auto; color: #ccc; opacity: 0.9; }
.chat-section { padding: 0 2rem 6rem 2rem; }

/* === YENİ SOHBET ARAYÜZÜ (HAREKETLİ IŞIKLARLA) === */
.chat-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(13, 13, 26, 0.6); /* Cam efektini biraz daha belirgin yap */
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Işıkların dışarı taşmasını engelle */
    backdrop-filter: blur(12px);
    position: relative; /* Işıkların konumlanması için */
}

/* YENİ: Hareketli Neon Işıklar */
.chat-wrapper::before,
.chat-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 1; /* İçeriğin arkasında kalacak */
    filter: blur(120px); /* Çok yumuşak bir bulanıklık */
    will-change: transform;
}

/* Birinci Işık (Mavi) */
.chat-wrapper::before {
    width: 400px;
    height: 400px;
    background: rgba(0, 191, 255, 0.3);
    animation: move-glow-1 20s infinite alternate ease-in-out;
}

/* İkinci Işık (Magenta) */
.chat-wrapper::after {
    width: 350px;
    height: 350px;
    background: rgba(255, 0, 255, 0.25);
    animation: move-glow-2 25s infinite alternate ease-in-out -10s; /* Farklı süre ve gecikme */
}

/* Işıklar için animasyonlar */
@keyframes move-glow-1 {
    0% { transform: translate(-50%, -50%); }
    100% { transform: translate(100%, 100%); }
}
@keyframes move-glow-2 {
    0% { transform: translate(50%, 100%); }
    100% { transform: translate(-100%, -50%); }
}


/* DİĞER TÜM ELEMANLAR (IŞIKLARIN ÖNÜNDE GÖZÜKMESİ İÇİN) */
.chat-box, .chat-form-container, .footer-controls {
    position: relative;
    z-index: 2; /* Işıkların üstünde kalmasını sağlar */
}

.chat-box {
    height: 65vh; min-height: 450px; overflow-y: auto; padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem;
    background: transparent; /* Arka planı şeffaf yap */
}
.chat-box::-webkit-scrollbar { width: 8px; } .chat-box::-webkit-scrollbar-track { background: transparent; } .chat-box::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; } .chat-box::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

.msg { max-width: 85%; padding: 0.8rem 1.2rem; border-radius: 18px; line-height: 1.6; word-wrap: break-word; animation: message-pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.ai-msg { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); align-self: flex-start; border-bottom-left-radius: 4px; }
.user-msg { background: linear-gradient(90deg, var(--primary-color), #007bff); color: #fff; font-weight: 500; align-self: flex-end; border-bottom-right-radius: 4px; }
@keyframes message-pop-in { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.typing { display: none; align-self: flex-start; align-items: center; padding: 12px 18px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); border-radius: 18px; border-bottom-left-radius: 4px; }
.typing .dot { width: 8px; height: 8px; background-color: #ccc; border-radius: 50%; margin: 0 3px; animation: typing-pulse 1.5s infinite ease-in-out; }
.typing .dot:nth-child(2) { animation-delay: 0.2s; } .typing .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.chat-form-container { padding: 1.5rem; border-top: 1px solid var(--border-color); background: rgba(0, 0, 0, 0.3); }
#chat-form { display: flex; gap: 1rem; align-items: center; }
#chat-form input { flex: 1; background: transparent; border: none; border-bottom: 2px solid var(--border-color); padding: 0.75rem 0; font-size: 1.1rem; color: var(--text-color); transition: all 0.3s ease; }
#chat-form input:focus { outline: none; border-bottom-color: var(--primary-color); box-shadow: 0 5px 15px -5px var(--neon-glow-primary); }
#chat-form button { background: var(--primary-color); border: none; color: var(--bg-color); width: 48px; height: 48px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; transition: all 0.3s ease; flex-shrink: 0; }
#chat-form button:hover { background: var(--accent-color); transform: scale(1.1); box-shadow: 0 0 15px var(--neon-glow-accent); }
#chat-form button:disabled { background: var(--border-color); cursor: not-allowed; }

.footer-controls { padding: 0.75rem 1.5rem; text-align: right; background: rgba(0, 0, 0, 0.2); }
.footer-controls .reset-link { color: #aaa; text-decoration: none; font-size: 0.85rem; transition: color 0.3s ease; }
.footer-controls .reset-link:hover { color: var(--accent-color); }

@media(max-width: 768px) { .page-intro { padding: 5rem 1rem 3rem 1rem; } .page-intro h1 { font-size: 2.5rem; } .chat-section { padding: 0 0 4rem 0; } .chat-wrapper { border-radius: 0; border-left: none; border-right: none; } .chat-box { height: calc(100vh - 200px); min-height: initial; } }