/* 
   KARAKUTU - Göz ve Ağız Temelli Alaycı Asistan Stili
   Premium Neon-Cyberpunk Karanlık Tema ve Cam Efektleri
*/

:root {
    --bg-dark: #07050d;
    --bg-card: rgba(13, 9, 23, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff007f;
    --neon-yellow: #ffdf00;
    --text-main: #f3f0fa;
    --text-muted: #9c92b0;
    --font-family: 'Outfit', sans-serif;
    
    /* Göz ve Ağız Değişkenleri */
    --eye-glow: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6));
    --mouth-glow: drop-shadow(0 0 10px rgba(255, 0, 127, 0.6));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- ARKA PLAN EFEKTLERİ --- */
.bg-glow {
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    background: var(--neon-cyan);
    top: -10%;
    left: -10%;
    animation: pulseGlow 15s infinite alternate;
}

.bg-glow-2 {
    background: var(--neon-magenta);
    bottom: -10%;
    right: -10%;
    animation: pulseGlow 18s infinite alternate-reverse;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.12; }
    100% { transform: scale(1.2); opacity: 0.22; }
}

/* --- ANA EKRAN KAPSAYICI --- */
.app-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* --- KARAKTER (YÜZ) ALANI --- */
.character-container {
    position: absolute;
    width: 320px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    user-select: none;
    z-index: 3;
    /* Varsayılan başlangıç konumu JavaScript ile ayarlanacak veya ortalanacak */
    top: calc(45% - 110px);
    left: calc(50% - 160px);
    transition: transform 0.1s ease-out;
}

.character-container:active {
    cursor: grabbing;
}

/* Yüz Altındaki Arka Plan Parlaması */
.face-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    border-radius: 50%;
    transition: background 0.5s ease;
}

.face {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
}

/* Kaş Konteyneri */
.eyebrow-container {
    width: 240px;
    height: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 10px;
    pointer-events: none;
}

.eyebrow {
    width: 75px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

/* Gözler */
.eyes-container {
    width: 240px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.eye-outer {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.eye {
    width: 65px;
    height: 65px;
    border: 4px solid var(--neon-cyan);
    border-radius: 50%;
    filter: var(--eye-glow);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

/* Göz Bebeği */
.pupil {
    width: 20px;
    height: 20px;
    background-color: var(--neon-cyan);
    border-radius: 50%;
    transition: transform 0.1s ease-out;
    box-shadow: 0 0 8px var(--neon-cyan);
}

/* Ağız */
.mouth-container {
    width: 180px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    margin-top: 10px;
}

.mouth-svg {
    width: 100%;
    height: 100%;
}

#mouth-path {
    fill: none;
    stroke: var(--neon-magenta);
    stroke-width: 8;
    stroke-linecap: round;
    filter: var(--mouth-glow);
    transition: d 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), stroke 0.5s ease;
}

/* --- DUYGU & MİMİK CSS SINIFLARI --- */

/* 1. Bekleme / Uyku Modu (Idle/Sleep) */
.character-container.idle {
    animation: breathing 4s ease-in-out infinite;
}
.character-container.idle:not(.speaking) .eye {
    height: 6px;
    border-radius: 3px;
    border-width: 3px;
}
.character-container.idle:not(.speaking) .pupil {
    opacity: 0;
}
.character-container.idle:not(.speaking) .eyebrow {
    transform: translateY(12px);
    background: var(--text-muted);
    box-shadow: 0 0 5px rgba(156, 146, 176, 0.5);
}

/* Uyku Animasyonu Parçacıkları (Zzz) */
.sleep-particles {
    position: absolute;
    top: -20px;
    right: 20px;
    display: none;
    pointer-events: none;
}
.character-container.idle:not(.speaking) .sleep-particles {
    display: block;
}
.sleep-particles span {
    position: absolute;
    font-size: 18px;
    font-weight: 800;
    color: var(--neon-cyan);
    opacity: 0;
    animation: snore 3s infinite linear;
    text-shadow: 0 0 5px var(--neon-cyan);
}
.sleep-particles span:nth-child(2) {
    animation-delay: 1s;
    font-size: 22px;
}
.sleep-particles span:nth-child(3) {
    animation-delay: 2s;
    font-size: 26px;
}

/* 2. Sinirli Mod (Angry) */
.character-container.angry {
    animation: tremble 0.5s ease-in-out infinite alternate;
}
.character-container.angry .face-glow {
    background: radial-gradient(circle, rgba(255, 0, 127, 0.15) 0%, transparent 70%);
}
.character-container.angry .eye {
    border-color: var(--neon-magenta);
    height: 40px;
    border-radius: 40% 40% 10% 10%;
    filter: drop-shadow(0 0 10px rgba(255, 0, 127, 0.6));
}
.character-container.angry .pupil {
    background-color: var(--neon-magenta);
    box-shadow: 0 0 8px var(--neon-magenta);
}
.character-container.angry .left-eyebrow {
    transform: translateY(14px) rotate(15deg);
    background: var(--neon-magenta);
    box-shadow: 0 0 10px var(--neon-magenta);
}
.character-container.angry .right-eyebrow {
    transform: translateY(14px) rotate(-15deg);
    background: var(--neon-magenta);
    box-shadow: 0 0 10px var(--neon-magenta);
}
.character-container.angry #mouth-path {
    stroke: var(--neon-magenta);
}

/* 3. Üzgün Mod (Sad) */
.character-container.sad {
    animation: sadFloat 5s ease-in-out infinite;
}
.character-container.sad .eye {
    height: 50px;
    border-radius: 50% 50% 30% 30%;
}
.character-container.sad .left-eyebrow {
    transform: translateY(2px) rotate(-12deg);
    background: var(--text-muted);
    box-shadow: 0 0 5px rgba(156, 146, 176, 0.5);
}
.character-container.sad .right-eyebrow {
    transform: translateY(2px) rotate(12deg);
    background: var(--text-muted);
    box-shadow: 0 0 5px rgba(156, 146, 176, 0.5);
}

/* 4. Şaşırmış Mod (Surprised) */
.character-container.surprised .eye {
    width: 75px;
    height: 75px;
    border-color: var(--neon-yellow);
    filter: drop-shadow(0 0 12px rgba(255, 223, 0, 0.7));
}
.character-container.surprised .pupil {
    background-color: var(--neon-yellow);
    box-shadow: 0 0 8px var(--neon-yellow);
    transform: scale(0.7) !important; /* Göz bebekleri küçülür */
}
.character-container.surprised .left-eyebrow {
    transform: translateY(-8px) rotate(-5deg);
    background: var(--neon-yellow);
    box-shadow: 0 0 10px var(--neon-yellow);
}
.character-container.surprised .right-eyebrow {
    transform: translateY(-8px) rotate(5deg);
    background: var(--neon-yellow);
    box-shadow: 0 0 10px var(--neon-yellow);
}
.character-container.surprised #mouth-path {
    stroke: var(--neon-yellow);
    filter: drop-shadow(0 0 10px rgba(255, 223, 0, 0.7));
}

/* 5. Komik/Dalga Geçen Mod (Funny) */
.character-container.funny .left-eye {
    height: 65px;
}
.character-container.funny .right-eye {
    height: 6px; /* Sağ göz kırpıyor */
    border-radius: 3px;
}
.character-container.funny .right-eye-outer .pupil {
    opacity: 0;
}
.character-container.funny .left-eyebrow {
    transform: translateY(-4px) rotate(-10deg);
}
.character-container.funny .right-eyebrow {
    transform: translateY(8px) rotate(-2deg);
}

/* 6. Konuşma Modu (Speaking) */
.character-container.speaking {
    animation: speakingPulse 0.4s ease infinite alternate;
}

/* --- KEYFRAME ANIMASYONLARI --- */

/* Normal Solunum Hareketi (Idle Nefes Alma) */
@keyframes breathing {
    0% { transform: translateY(0) scaleY(1); }
    50% { transform: translateY(-8px) scaleY(1.02); }
    100% { transform: translateY(0) scaleY(1); }
}

/* Şaşırma ve Konuşma esnasında hafif sarsıntı/nabız */
@keyframes speakingPulse {
    0% { transform: scaleY(1) translateY(0); }
    100% { transform: scaleY(1.01) translateY(-3px); }
}

/* Üzgün salınım */
@keyframes sadFloat {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(6px) rotate(-1deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Sinirli Titreme (Tremble) */
@keyframes tremble {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(0px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(2px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(2px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* Horlama Baloncuğu Yükselişi */
@keyframes snore {
    0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translate(30px, -60px) scale(1.2); opacity: 0; }
}


/* --- CAM EFEKTLİ ALT PANEL (GLASSMORPHISM DRAWER) --- */
.bottom-drawer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% - 65px)); /* Varsayılan olarak kapalı/sadece başlık görünür */
    width: 90%;
    max-width: 800px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.bottom-drawer.open {
    transform: translateX(-50%) translateY(0);
}

/* Çekmece Kolu */
.drawer-handle {
    width: 100%;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}

.drawer-handle:hover {
    color: var(--neon-cyan);
}

.drawer-handle i {
    font-size: 18px;
    transition: transform 0.4s;
}

.bottom-drawer.open .drawer-handle i {
    transform: rotate(180deg);
}

.drawer-content {
    padding: 0 30px 25px 30px;
}

/* Altyazı / Yanıt Ekranı */
.response-display-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 100px;
    max-height: 180px;
    overflow-y: auto;
    position: relative;
}

.bot-name-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--neon-magenta);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--neon-magenta);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--neon-magenta);
    animation: namePulse 1.5s infinite alternate;
}

@keyframes namePulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; }
}

.response-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    word-break: break-word;
}

/* Girdi Alanı */
.input-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* İkon Butonlar */
.icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Mik Butonu ve Dalgalanması */
.mic-btn {
    border-color: rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
}

.mic-btn:hover {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    border-color: var(--neon-cyan);
}

.mic-btn.listening {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--neon-cyan);
    border-color: var(--neon-cyan);
    animation: pulseListen 1.5s infinite;
}

.mic-btn .ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.mic-btn.listening .ripple {
    animation: rippleEffect 1.5s infinite;
}

@keyframes pulseListen {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@keyframes rippleEffect {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Metin Giriş Çubuğu */
.input-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 5px 5px 5px 20px;
    transition: all 0.3s;
}

.input-wrapper:focus-within {
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

#user-input {
    flex-grow: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 15px;
    height: 40px;
}

#user-input::placeholder {
    color: var(--text-muted);
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--neon-magenta);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.4);
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.7);
}

/* Ayarlar butonu */
.settings-btn {
    border-color: rgba(156, 146, 176, 0.2);
    color: var(--text-muted);
}

.settings-btn:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}


/* --- AYARLAR MODAL (SETTINGS PANEL) --- */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 3, 7, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.settings-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.settings-card {
    width: 90%;
    max-width: 500px;
    background: #0f0b1d;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.settings-modal.show .settings-card {
    transform: scale(1);
}

.settings-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--neon-magenta);
}

.settings-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

.settings-section {
    margin-bottom: 25px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.section-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.settings-section label:not(.section-title) {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Mod Değiştirici Butonlar (Yerel vs API) */
.toggle-group {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 4px;
}

.toggle-btn {
    flex: 1;
    border: none;
    background: none;
    color: var(--text-muted);
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 7px;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* API Girdisi */
.api-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding-right: 10px;
}

#api-key-input {
    flex-grow: 1;
    background: none;
    border: none;
    outline: none;
    padding: 12px 15px;
    color: var(--text-main);
    font-size: 14px;
}

.visibility-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
}

.visibility-btn:hover {
    color: var(--text-main);
}

.help-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

/* Ses Seçimi */
select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    color: var(--text-main);
    outline: none;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Slayt Çubukları */
.range-sliders {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.slider-row {
    display: flex;
    flex-direction: column;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    appearance: none;
    margin-top: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--neon-cyan);
    cursor: pointer;
    box-shadow: 0 0 8px var(--neon-cyan);
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Hata Ayıklama Paneli (Mimikler) */
.emotion-debug-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.emotion-test-btn {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    padding: 8px;
    font-size: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.emotion-test-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: var(--text-muted);
}

.emotion-test-btn.active {
    background: var(--neon-magenta);
    color: var(--text-main);
    border-color: var(--neon-magenta);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.4);
}

/* Kaydet Butonu */
.settings-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.save-btn {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    font-weight: 700;
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.save-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

/* Kaydırma Çubuğu Özelleştirme */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
/* Sabit Yüzen Mikrofon Butonu (Sol Alt Köşe) */
.mic-btn-fixed {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 105; /* Çekmecenin (z-index: 10) üzerinde yer alır */
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.mic-btn-fixed:hover {
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.5);
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 600px) {
    .mic-btn-fixed {
        bottom: 12px;
        left: 15px;
    }
    
    .bottom-drawer.open .input-wrapper {
        margin-left: 55px;
    }

    .character-container {
        width: 260px;
        height: 180px;
        top: calc(40% - 90px);
        left: calc(50% - 130px);
    }
    
    .eyebrow-container {
        width: 200px;
    }
    
    .eyebrow {
        width: 60px;
    }
    
    .eyes-container {
        width: 200px;
        height: 60px;
    }
    
    .eye-outer {
        width: 60px;
        height: 60px;
    }
    
    .eye {
        width: 50px;
        height: 50px;
    }
    
    .pupil {
        width: 15px;
        height: 15px;
    }
    
    .mouth-container {
        width: 140px;
        height: 45px;
    }
    
    .bottom-drawer {
        width: 95%;
    }
    
    .drawer-content {
        padding: 0 15px 15px 15px;
    }
    
    .input-area {
        gap: 8px;
    }
    
    .icon-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .input-wrapper {
        padding-left: 15px;
    }
    
    #user-input {
        font-size: 14px;
    }
    
    .emotion-debug-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
