/* assets/style.css - V66 ACTION BUTTONS FIXED */
:root {
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(255, 255, 255, 0.6);
    --primary-grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-grad: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-grad);
    height: 100dvh; margin: 0; padding: 0; overflow: hidden;
    display: flex; justify-content: center; align-items: center;
}

/* ANA KART */
.main-container {
    width: 100%; max-width: 1100px; height: 100%;
    background: var(--glass-bg);
    display: flex; flex-direction: column; position: relative;
}
@media (min-width: 992px) { 
    .main-container { 
        height: 90vh; border-radius: 24px; 
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(10px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    }
    .chat-header { border-radius: 24px 24px 0 0; }
    .input-area { border-radius: 0 0 24px 24px; }
}

.chat-header {
    flex-shrink: 0; height: 65px; padding: 0 20px;
    background: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex; justify-content: space-between; align-items: center;
}
.brand-logo { font-size: 1.3rem; font-weight: 800; color: #6a11cb; }

#chatArea {
    flex: 1; overflow-y: auto; padding: 20px;
    display: flex; flex-direction: column; gap: 15px;
    scroll-behavior: smooth;
}

/* MESAJ BALONLARI */
.msg-row { display: flex; width: 100%; }
.msg-row.me { justify-content: flex-end; }

.msg-bubble {
    max-width: 85%; padding: 12px 16px; border-radius: 18px;
    font-size: 0.95rem; line-height: 1.5; position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.5);
    min-width: 120px; /* Butonlar için yer */
}

.msg-row.other .msg-bubble { background: #ffffff; border-bottom-left-radius: 2px; color: #333; }
.msg-row.me .msg-bubble { background: var(--primary-grad); border-bottom-right-radius: 2px; color: #fff; }
.admin-msg .msg-bubble { background: #fff3cd; color: #856404; border-color: #ffeeba; }
.ai-msg .msg-bubble { background: #e0f2f1; color: #004d40; border-color: #b2dfdb; }

.sender-name { font-size: 0.75rem; font-weight: 800; margin-bottom: 5px; display: block; opacity: 0.8; }
.msg-row.me .sender-name { color: rgba(255,255,255,0.9); text-align: right; }
.msg-row.other .sender-name { color: #6a11cb; }

/* AKSİYON BUTONLARI (DÜZELTİLDİ) */
.msg-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 8px; border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 5px;
}
.msg-row.me .msg-footer { border-top-color: rgba(255,255,255,0.2); }

.msg-actions { display: flex; gap: 12px; }
.msg-time { font-size: 0.7rem; opacity: 0.7; font-weight: 600; }

.action-btn { 
    background: none; border: none; padding: 0; cursor: pointer; 
    font-size: 1.1rem; transition: 0.2s; display: flex; align-items: center; gap: 3px;
}

/* Renk Ayarları */
.msg-row.other .action-btn { color: #888; }
.msg-row.other .action-btn:hover { color: #6a11cb; }

.msg-row.me .action-btn { color: rgba(255,255,255,0.7); }
.msg-row.me .action-btn:hover { color: #fff; transform: scale(1.1); }

.like-count { font-size: 0.75rem; font-weight: bold; }

/* ALT BAR */
.input-area { flex-shrink: 0; padding: 15px; background: #fff; border-top: 1px solid rgba(0,0,0,0.05); }
.input-wrapper { display: flex; align-items: flex-end; gap: 10px; background: #f8f9fa; border-radius: 25px; padding: 6px 12px; border: 1px solid #eee; }
.auto-textarea { flex: 1; border: none; background: transparent; outline: none; max-height: 120px; resize: none; font-size: 0.95rem; }
.btn-send { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-grad); color: white; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.2s; }
.btn-send:active { transform: scale(0.9); }

/* YAN MENÜ */
.side-menu { position: fixed; top: 0; left: -100%; width: 300px; height: 100%; background: #fff; z-index: 2000; padding: 20px; transition: 0.3s; box-shadow: 5px 0 15px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.side-menu.active { left: 0; }
.overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.5); z-index: 1999; display: none; }
.overlay.active { display: block; }

/* SHARE MODAL */
.share-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 99999; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: 0.3s; }
.share-modal-overlay.active { opacity: 1; pointer-events: all; }
.share-content-box { position: relative; max-width: 95%; text-align: center; }
.share-content-box img { border-radius: 15px; box-shadow: 0 0 30px rgba(0,0,0,0.5); max-height: 80vh; width: auto; max-width: 100%; }
.share-actions { margin-top: 20px; display: flex; gap: 15px; justify-content: center; }

.media-container img { border-radius: 10px; max-width: 100%; margin-top: 5px; }
.avatar-box { width: 35px; height: 35px; border-radius: 12px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-right: 10px; font-size: 14px; box-shadow: 2px 2px 5px rgba(0,0,0,0.1); }
.quoted-msg { font-size: 0.8em; background: rgba(0,0,0,0.05); border-left: 3px solid var(--primary); padding: 4px 8px; margin-bottom: 6px; border-radius: 4px; opacity: 0.8; cursor: pointer; }

/* assets/style.css EN ALTINA EKLE */

/* Kalp Atışı Animasyonu */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.heart-pump { animation: heartBeat 0.4s ease-in-out; }