/* Koro — tasarım temeli. Dil: Google Meet'in düzeni, YouTube Music'in sıra paneli, Spotify'ın oynatıcı çubuğu. */
:root {
    --bg: #121212;
    --panel: #181818;
    --raised: #242424;
    --hover: #2c2c2c;
    --line: rgba(255, 255, 255, .08);
    --text: #fff;
    --muted: #b3b3b3;
    --dim: #7a7a7a;
    --accent: #1ed760;
    --accent-2: #19b950;
    --accent-ink: #000;
    --danger: #ea4335;
    --room-bg: #000;
    --track: #4d4d4d;
    --fg: #fff;
    --on-fg: #000;
    --line-strong: rgba(255, 255, 255, .25);
    --r: 12px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
    --font: "Inter", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color-scheme: dark;
}
:root[data-theme="light"] {
    --bg: #f3f3f5; --panel: #fff; --raised: #ececf0; --hover: #e1e1e8; --line: rgba(0, 0, 0, .09); --line-strong: rgba(0, 0, 0, .28);
    --text: #121212; --muted: #5d5d68; --dim: #8a8a96; --room-bg: #e8e8ed; --track: #c8c8d1; --fg: #121212; --on-fg: #fff;
    color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
html:has(.room), body:has(.room) { overflow: hidden; overscroll-behavior: none; }
body { background: var(--bg); color: var(--text); font: 400 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.bg { display: none; }

/* Düğmeler */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.3rem; border-radius: 999px;
    font-weight: 700; background: var(--raised); transition: transform .2s var(--spring), background .15s; user-select: none; white-space: nowrap;
}
.btn:hover { background: var(--hover); transform: scale(1.03); }
.btn:active { transform: scale(.96); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: 0 6px 22px -8px var(--accent); }
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 10px 28px -8px var(--accent); }
.btn.danger { background: var(--danger); }
.btn.ghost { background: transparent; border: 1px solid var(--line-strong); }
.btn.ghost:hover { border-color: var(--text); background: transparent; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn.lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn.sm { padding: .4rem .85rem; font-size: .82rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

.field { width: 100%; padding: .8rem 1rem; border-radius: 10px; background: var(--raised); border: 1px solid transparent; transition: border-color .15s, background .15s; }
.field:hover { background: var(--hover); }
.field:focus { outline: none; border-color: var(--text); background: var(--raised); }
.field::placeholder { color: var(--dim); }

.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px; background: var(--raised); font-size: .82rem; font-weight: 500; }

.avatar {
    --h: 260; display: grid; place-items: center; border-radius: 50%; flex: none; aspect-ratio: 1;
    background: linear-gradient(135deg, hsl(var(--h) 75% 58%), hsl(calc(var(--h) + 40) 70% 42%));
}

/* Bildirimler */
#toasts { position: fixed; z-index: 90; left: 50%; bottom: 110px; transform: translateX(-50%); display: grid; gap: .5rem; justify-items: center; pointer-events: none; width: min(92vw, 420px); }
.toast { display: flex; align-items: center; gap: .6rem; padding: .65rem 1.1rem .65rem .75rem; border-radius: 10px; max-width: 100%; background: var(--fg); color: var(--on-fg); font-weight: 500; font-size: .9rem; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); animation: toastIn .4s var(--spring) both; }
.toast.out { animation: toastOut .25s var(--ease) both; }
.toast .avatar { width: 26px; font-size: 14px; }
.toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* Yüzen tepkiler */
#fx { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.float { position: absolute; bottom: 110px; font-size: 2.2rem; will-change: transform, opacity; animation: floatUp 2.6s cubic-bezier(.2, .6, .3, 1) forwards; }
.float small { display: block; font: 700 .7rem var(--font); text-align: center; color: #fff; text-shadow: 0 1px 6px #000; }
@keyframes floatUp { 0% { transform: translate(0, 0) scale(.3); opacity: 0; } 12% { transform: translate(0, -30px) scale(1.25); opacity: 1; } 100% { transform: translate(var(--dx, 0), -62vh) scale(1); opacity: 0; } }
.confetti { position: absolute; width: 8px; height: 14px; border-radius: 2px; animation: confetti var(--t, 1.6s) cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes confetti { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
