/*
  Tasarım dili: gece moru zemin, mercan–amber vurgu, nane yeşili "canlı" rengi, hap biçimli düğmeler, yuvarlak yüzeyler.
  Yazı tipleri sunucudan gelir (Bricolage Grotesque başlıklar, Plus Jakarta Sans metin); dış kaynağa bağlanılmaz.
*/
@font-face {
  font-family: "Jakarta";
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jakarta";
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage";
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage";
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #110d17;
  --bg-2: #18121f;
  --surface: #1d1726;
  --surface-2: #261f31;
  --surface-3: #31283e;
  --line: #392f48;
  --line-soft: rgba(255, 255, 255, .06);
  --text: #f7f2fb;
  --text-2: #d4c9df;
  --muted: #9c90ad;
  --accent: #ff6b57;
  --accent-2: #ff9d3c;
  --accent-grad: linear-gradient(135deg, #ff9d3c 0%, #ff5c6c 100%);
  --accent-soft: rgba(255, 107, 87, .14);
  --on-accent: #fff;
  --live: #3ee8b5;
  --live-soft: rgba(62, 232, 181, .16);
  --ok: #3ee8b5;
  --warn: #ffc24b;
  --danger: #ff4f6d;
  --focus: 0 0 0 3px rgba(255, 157, 60, .45);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --shadow: 0 18px 50px rgba(5, 2, 10, .55);
  --shadow-sm: 0 6px 18px rgba(5, 2, 10, .35);
  --glow:
    radial-gradient(900px 620px at 105% -12%, rgba(255, 92, 108, .17), transparent 62%),
    radial-gradient(760px 560px at -12% 112%, rgba(255, 157, 60, .11), transparent 60%);
  --font: "Jakarta", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: "Bricolage", "Jakarta", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f3ece4;
  --bg-2: #ebe2d8;
  --surface: #fffcf8;
  --surface-2: #f6efe7;
  --surface-3: #ece2d6;
  --line: #e0d4c6;
  --line-soft: rgba(43, 32, 39, .07);
  --text: #2a1f29;
  --text-2: #4e404c;
  --muted: #8a7b86;
  --accent-soft: rgba(255, 107, 87, .12);
  --live: #0eae80;
  --live-soft: rgba(14, 174, 128, .14);
  --ok: #0eae80;
  --shadow: 0 18px 50px rgba(70, 45, 30, .14);
  --shadow-sm: 0 6px 18px rgba(70, 45, 30, .09);
  --glow:
    radial-gradient(900px 620px at 105% -12%, rgba(255, 92, 108, .13), transparent 62%),
    radial-gradient(760px 560px at -12% 112%, rgba(255, 157, 60, .14), transparent 60%);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--glow), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }
::selection { background: rgba(255, 157, 60, .35); }

/* ---- Düğmeler: hap biçimi ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; background: var(--surface-3); color: var(--text);
  font: 700 14px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: filter .15s, background .15s, transform .08s, box-shadow .15s;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent-grad); color: var(--on-accent); box-shadow: 0 8px 24px rgba(255, 92, 108, .28); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ok { background: var(--live); color: #052a1e; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---- Formlar ---- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > span:first-child { font-size: 13px; font-weight: 700; color: var(--text-2); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input:not([type]), select, textarea {
  width: 100%; height: 46px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: 15px var(--font);
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 12px 16px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: var(--focus); }
input[type=range] { width: 100%; accent-color: var(--accent); }
.hint { color: var(--muted); font-size: 12.5px; }
.field-error { color: var(--danger); font-size: 13px; }
.field-error:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 16px; color: var(--text-2); font-size: 14px; cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); }
.alert { background: rgba(255, 79, 109, .12); border: 1px solid rgba(255, 79, 109, .4); color: var(--text); padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }

/* ---- Karşılama ve giriş sayfaları ---- */
body.public { display: flex; flex-direction: column; min-height: 100%; }
.pub-header { display: flex; justify-content: space-between; align-items: center; padding: 20px clamp(16px, 4vw, 56px); }
.pub-header nav { display: flex; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 800 21px var(--font-display); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.pub-main { flex: 1; padding: 24px clamp(16px, 4vw, 56px) 56px; }
.pub-footer { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 22px clamp(16px, 4vw, 56px); border-top: 1px solid var(--line-soft); font-size: 13px; }

.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; max-width: 1180px; margin: 5vh auto 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--live-soft); color: var(--live); font-weight: 700; font-size: 13px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px var(--live-soft); }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; letter-spacing: -.035em; margin-top: 18px; }
.hero h1 em { font-style: normal; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--text-2); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { display: flex; justify-content: center; }

/* Yuvarlak masa: platformun simgesi (sesli odalar da bu düzende görünür). */
.table-art { position: relative; width: min(420px, 82vw); aspect-ratio: 1; }
.table-art::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1.5px dashed var(--line); }
.table-art .disc { position: absolute; inset: 27%; border-radius: 50%; background: radial-gradient(circle at 30% 25%, var(--surface-3), var(--surface)); box-shadow: var(--shadow), inset 0 0 0 1px var(--line-soft); display: grid; place-items: center; }
.table-art .bars { display: flex; gap: 7px; align-items: center; height: 70px; }
.table-art .bars i { width: 9px; height: 26px; border-radius: 6px; background: var(--accent-grad); animation: bars 1.3s ease-in-out infinite; }
.table-art .bars i:nth-child(2) { animation-delay: .12s; } .table-art .bars i:nth-child(3) { animation-delay: .24s; } .table-art .bars i:nth-child(4) { animation-delay: .36s; } .table-art .bars i:nth-child(5) { animation-delay: .48s; }
@keyframes bars { 0%, 100% { height: 22px; } 50% { height: 66px; } }
.table-art .seat { position: absolute; left: calc(50% + var(--x) * 41%); top: calc(50% + var(--y) * 41%); transform: translate(-50%, -50%); width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 24px var(--font-display); background: var(--c); box-shadow: var(--shadow-sm); }
.table-art .seat.talk { box-shadow: 0 0 0 4px var(--live), 0 0 0 4px var(--live); animation: talk 1.6s ease-out infinite; }
@keyframes talk { 0% { box-shadow: 0 0 0 3px var(--live), 0 0 0 3px rgba(62, 232, 181, .5); } 100% { box-shadow: 0 0 0 3px var(--live), 0 0 0 18px rgba(62, 232, 181, 0); } }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1180px; margin: 9vh auto 0; }
.features article { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.features .f-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); margin-bottom: 14px; }
.features .f-icon svg { width: 22px; height: 22px; }
.features h3 { font-size: 18px; }
.features p { color: var(--text-2); margin: 0; font-size: 14px; }

.auth-card { max-width: 440px; margin: 5vh auto 0; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 28px; padding: 36px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 30px; font-weight: 800; }
.auth-card form { margin-top: 20px; }
.auth-card .btn-block + .btn-block { margin-top: 10px; }
.auth-card.invite { text-align: center; }
.auth-card.invite form { margin-top: 20px; }

.server-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--c, var(--surface-3)); color: #fff; font: 800 18px var(--font-display); }
.server-icon.xl { width: 92px; height: 92px; border-radius: 30px; font-size: 38px; margin: 0 auto 16px; box-shadow: var(--shadow-sm); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; }
  .table-art { width: 270px; }
  .table-art .seat { width: 52px; height: 52px; font-size: 19px; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .auth-card { padding: 24px; margin-top: 2vh; border-radius: 24px; }
  .pub-header .btn-ghost { display: none; }
}

/* ---- Bilgi notu ve durum sayfaları ---- */
.note { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--live-soft); color: var(--text-2); font-size: 13.5px; }
.auth-card.center { text-align: center; }
.state-icon { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 26px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.state-icon svg { width: 36px; height: 36px; }
