:root { --bg-color: #0f0508; --glass-bg: rgba(20, 10, 12, 0.8); --glass-border: rgba(255, 255, 255, 0.05); --accent: #ff0044; --text-main: #ffffff; --text-muted: #888888; --sent-bg: rgba(255, 0, 68, 0.85); --sent-border: rgba(255, 255, 255, 0.15); --received-bg: rgba(30, 20, 25, 0.9); }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overscroll-behavior-y: none; background: radial-gradient(circle at center, #1a050a 0%, #050002 100%); color: var(--text-main); font-family: 'Inter', sans-serif; overflow: hidden; opacity: 0; animation: fadeIn 0.8s forwards; position: fixed; inset: 0; }
@keyframes fadeIn { to { opacity: 1; } }

.ambient-bg { position: absolute; inset: 0; z-index: -1; background: #050505; overflow: hidden; }
.stars { position: absolute; inset: -100%; background-image: radial-gradient(1px 1px at 10% 10%, #fff, transparent), radial-gradient(1px 1px at 20% 40%, #fff, transparent), radial-gradient(2px 2px at 30% 70%, #fff, transparent), radial-gradient(1px 1px at 40% 20%, #fff, transparent), radial-gradient(2px 2px at 50% 50%, #fff, transparent), radial-gradient(1px 1px at 60% 80%, #fff, transparent), radial-gradient(1px 1px at 70% 30%, #fff, transparent), radial-gradient(2px 2px at 80% 60%, #fff, transparent), radial-gradient(1px 1px at 90% 90%, #fff, transparent); background-size: 200px 200px; animation: star-move 60s linear infinite; opacity: 0.5; }
@keyframes star-move { 0% { transform: translateY(0); } 100% { transform: translateY(200px); } }

.chat-container { display: flex; flex-direction: column; height: 100%; width: 100%; padding-bottom: 15px; } 
.chat-header { flex-shrink: 0; width: 100%; height: 75px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; background: rgba(0,0,0,0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); z-index: 100; box-shadow: 0 5px 20px rgba(0,0,0,0.5); }
.header-exit-btn { background: rgba(255,0,68,0.2); border: 1px solid var(--accent); color: white; padding: 8px 12px; border-radius: 15px; font-size: 12px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.partner-status-container { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; color: #aaa; font-weight: 500; margin-top: 2px; }
#streak-display { opacity: 0; transition: opacity 0.5s ease; font-size: 12px; font-weight: 800; margin-top: 3px; letter-spacing: 0.5px; display: flex; align-items: center; justify-content: center; gap: 5px; }

.chat-messages-wrapper { flex-grow: 1; width: 100%; max-width: 800px; margin: 0 auto; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; scroll-behavior: smooth; }
.chat-messages-wrapper::-webkit-scrollbar { width: 4px; } .chat-messages-wrapper::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
.chat-messages { display: flex; flex-direction: column; gap: 18px; }

.bubble { position: relative; max-width: 75%; padding: 14px 18px; border-radius: 22px; font-size: 15px; font-weight: 500; line-height: 1.4; word-wrap: break-word; animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 5px 15px rgba(0,0,0,0.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); -webkit-user-select: none; user-select: none; cursor: pointer; transition: transform 0.2s ease; }
.bubble:active { transform: scale(0.97); } 
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }

.bubble-sent { align-self: flex-end; background: var(--sent-bg); color: white; border: 1px solid var(--sent-border); border-bottom-right-radius: 5px; }
.bubble-received { align-self: flex-start; background: var(--received-bg); color: white; border: 1px solid var(--glass-border); border-bottom-left-radius: 5px; }

.snap-open-btn { background: linear-gradient(135deg, rgba(255,0,68,0.95), rgba(180,0,40,0.95)); border: 1px solid rgba(255,150,180,0.4); border-radius: 25px; padding: 12px 22px; color: white; font-weight: 700; font-size: 15px; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 8px 25px rgba(255,0,68,0.5), inset 0 2px 5px rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.snap-open-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 15px 35px rgba(255,0,68,0.7), inset 0 2px 5px rgba(255,255,255,0.5); }

.typing-bubble { display: flex; align-items: center; gap: 5px; padding: 12px 18px !important; width: fit-content; margin-top: 15px; }
.typing-bubble .dot { width: 8px; height: 8px; background: #bbb; border-radius: 50%; animation: typeBounce 1.4s infinite ease-in-out both; }
.typing-bubble .dot:nth-child(1) { animation-delay: -0.32s; } .typing-bubble .dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typeBounce { 0%, 80%, 100% { transform: scale(0); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; background: var(--accent); } }

/* ✨ GÜNCELLENMİŞ: ÇOKLU REAKSİYON SİSTEMİ İÇİN CSS ✨ */
.reaction-badge { 
    position: absolute; bottom: -14px; right: 10px; 
    background: rgba(20, 10, 15, 0.90); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.25); border-radius: 20px; 
    padding: 4px 8px; font-size: 14px; box-shadow: 0 5px 15px rgba(0,0,0,0.6); 
    z-index: 5; display: flex; align-items: center; gap: 4px;
    animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.react-emj { display: inline-block; line-height: 1; }
.react-count {
    font-size: 10px; font-weight: 800; color: #0f0508; 
    background: #fff; border-radius: 50%; min-width: 16px; height: 16px; padding: 0 4px;
    display: inline-flex; justify-content: center; align-items: center; 
    margin-left: -4px; z-index: 2; box-shadow: 0 2px 5px rgba(0,0,0,0.5); line-height: 1;
}

.bubble-audio { background: rgba(15, 5, 8, 0.8) !important; border: 1px solid var(--accent) !important; padding: 8px 12px !important; border-radius: 25px !important; display: flex; align-items: center; justify-content: center; }
.bubble-audio audio { height: 35px; max-width: 220px; outline: none; border-radius: 20px; }

.chat-input-area { flex-shrink: 0; width: 100%; max-width: 800px; margin: 0 auto; padding: 10px 12px; background: rgba(10, 5, 8, 0.95); display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--glass-border); z-index: 100; padding-bottom: 20px; }
.chat-input-area input { flex: 1; background: rgba(30,20,25,0.8); border: 1px solid rgba(255,255,255,0.15); padding: 12px 15px; border-radius: 30px; color: white; outline: none; font-size: 14px; transition: 0.3s; min-width: 0; }
.action-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); font-size: 16px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(30,20,25,0.8); color: white; }
.send-btn { background: var(--text-main); color: black; font-weight: bold; }

.reaction-menu-wrapper { position: fixed; display: flex; gap: 12px; background: rgba(40, 20, 30, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 10px 18px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 15px 35px rgba(0,0,0,0.8), inset 0 0 10px rgba(255,0,68,0.3); z-index: 999999; transform: scale(0); opacity: 0; pointer-events: none; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); transform-origin: bottom center; }
.reaction-menu-wrapper.active { transform: scale(1); opacity: 1; pointer-events: all; }
.reaction-emoji-btn { font-size: 26px; background: none; border: none; cursor: pointer; transition: transform 0.2s; padding: 0; margin: 0; }
.reaction-emoji-btn:hover { transform: scale(1.4) translateY(-5px); }
.ios-home-bar { position: fixed; bottom: 6px; left: 50%; transform: translateX(-50%); width: 135px; height: 5px; background: rgba(255, 255, 255, 0.5); border-radius: 10px; z-index: 100000; pointer-events: none; }

.fullscreen-overlay { position: fixed; inset: 0; background: black; z-index: 99999; display: none; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: 0.5s; }
.fullscreen-overlay.active { display: flex; opacity: 1; }
#camera-video { width: 100%; height: 100%; object-fit: cover; }
.cam-controls { position: absolute; top: 50px; width: 100%; padding: 0 30px; display: flex; justify-content: space-between; z-index: 3; }
.cam-top-btn { background: rgba(30, 20, 25, 0.5); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255,255,255,0.2); width: 60px; height: 60px; border-radius: 50%; color: white; font-size: 24px; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 25px rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; }
.cam-bottom-controls { position: absolute; bottom: 60px; width: 100%; display: flex; justify-content: center; align-items: center; z-index: 2; padding: 0 40px; }
.gallery-btn { position: absolute; left: 40px; background: rgba(30, 20, 25, 0.5); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255,255,255,0.2); width: 60px; height: 60px; border-radius: 50%; color: white; font-size: 26px; cursor: pointer; box-shadow: 0 10px 25px rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; }
.capture-ring { width: 90px; height: 90px; border-radius: 50%; border: 4px solid #fff; background: rgba(255,255,255,0.25); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: inset 0 0 0 4px rgba(0,0,0,0.1), 0 10px 30px rgba(0,0,0,0.5); }
.capture-ring.recording-video { background: #ff0044 !important; border-color: transparent !important; transform: scale(1.1); border-radius: 25px; box-shadow: 0 0 30px rgba(255,0,68,0.8); animation: none; }
#snap-viewer-img, #snap-viewer-video { width: 100%; height: 100%; object-fit: contain; display: none; }
.destruction-text { position: absolute; bottom: 50px; color: rgba(255,255,255,0.7); font-weight: bold; letter-spacing: 2px; font-size: 12px; pointer-events: none; text-shadow: 0 2px 4px black; }
.preview-controls { position: absolute; bottom: 50px; width: 100%; display: flex; justify-content: center; gap: 30px; z-index: 10; padding: 0 20px; }
.preview-btn { padding: 15px 30px; border-radius: 30px; border: none; font-size: 16px; font-weight: 800; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.cancel-btn { background: rgba(0,0,0,0.6); color: white; border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(10px); }
.send-snap-btn { background: var(--accent); color: white; box-shadow: 0 0 15px rgba(255,0,68,0.5); border: 1px solid rgba(255,255,255,0.5); }

@media (max-width: 480px) { .chat-input-area { padding: 8px 8px 18px 8px; gap: 6px; } .action-btn { width: 38px; height: 38px; font-size: 14px; } .chat-input-area input { padding: 10px 12px; font-size: 13px; } .cam-top-btn, .gallery-btn { width: 50px; height: 50px; font-size: 20px; } .capture-ring { width: 75px; height: 75px; } }

.streak-anim-wrapper { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.5); display: flex; align-items: center; justify-content: center; background: rgba(30, 10, 15, 0.85); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); border: 1px solid rgba(255, 255, 255, 0.15); padding: 12px 20px; border-radius: 50px; z-index: 10000; opacity: 0; pointer-events: none; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 20px 40px rgba(0,0,0,0.8), inset 0 0 20px rgba(255,0,68,0.3); }
.streak-anim-wrapper.active { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
.alev-container { position: relative; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.alev-icon { position: absolute; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.5s ease, transform 0.5s ease; filter: drop-shadow(0 0 15px rgba(255, 0, 68, 0.6)); }
.alev-hide { opacity: 0; transform: scale(0.5) rotate(-15deg); }
.alev-show { opacity: 1; transform: scale(1) rotate(0deg); }
.streak-text-reveal { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, margin-left 0.5s ease; font-family: 'SF Pro Display', 'Inter', sans-serif; font-size: 20px; font-weight: 800; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.8); margin-left: 0; }
.streak-text-reveal.reveal { max-width: 300px; opacity: 1; margin-left: 15px; }
.streak-anim-wrapper.fly-to-header { top: 45px; transform: translate(-50%, 0) scale(0.5); background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; }