/* ============================================================
   MENÜDER Webinar — Akademik/Tıbbi premium tasarım sistemi
   ============================================================ */
:root {
  --bg: #f5f3ef;
  --paper: #ffffff;
  --surface-2: #faf8f4;
  --ink: #1a2431;
  --ink-2: #445366;
  --muted: #6b7a8d;
  --faint: #9aa6b4;
  --line: #e7e3db;
  --line-2: #efece5;

  --teal: #0e6e77;
  --teal-2: #0b565e;
  --teal-ink: #0b565e;
  --teal-50: #e5f1f1;
  --rose: #c85f5a;
  --rose-2: #b04b47;
  --rose-50: #fbeceb;
  --gold: #b7873f;

  --ok: #2f855a;
  --warn: #b7791f;
  --danger: #c0392b;

  --radius: 16px;
  --radius-sm: 11px;
  --radius-xs: 8px;
  --shadow-xs: 0 1px 2px rgba(26,36,49,.05);
  --shadow-sm: 0 1px 2px rgba(26,36,49,.04), 0 3px 8px rgba(26,36,49,.05);
  --shadow: 0 6px 20px rgba(26,36,49,.08), 0 2px 6px rgba(26,36,49,.05);
  --shadow-lg: 0 22px 50px rgba(20,45,50,.16), 0 8px 18px rgba(26,36,49,.08);
  --ring: 0 0 0 4px rgba(14,110,119,.15);
  --grad-teal: linear-gradient(135deg, #128089 0%, #0e6e77 55%, #0b565e 100%);

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --maxw: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); font-size: 15.5px; line-height: 1.6;
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh;
}
a { color: var(--teal-ink); text-decoration: none; transition: color .15s; }
a:hover { color: var(--teal-2); }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
::selection { background: rgba(14,110,119,.16); }
img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font-weight: 600; font-size: 14.5px; font-family: inherit;
  cursor: pointer; transition: transform .12s, box-shadow .15s, border-color .15s, background .15s;
  box-shadow: var(--shadow-xs); text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: #d6d0c6; }
.btn.pri { background: var(--grad-teal); border: none; color: #fff; box-shadow: 0 5px 16px rgba(14,110,119,.32); }
.btn.pri:hover { box-shadow: 0 10px 26px rgba(14,110,119,.4); filter: brightness(1.05); }
.btn.rose { background: linear-gradient(135deg,#d3706b,#c85f5a); border: none; color: #fff; box-shadow: 0 5px 16px rgba(200,95,90,.3); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.btn.lg { padding: 14px 28px; font-size: 16px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---- Badges / pills ---- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.teal { background: var(--teal-50); color: var(--teal-ink); }
.pill.rose { background: var(--rose-50); color: var(--rose-2); }
.pill.gold { background: #f6eede; color: var(--gold); }
.pill.gray { background: #eceae3; color: var(--muted); }
.pill.live { background: #fdeaea; color: var(--danger); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ============================ PUBLIC CHROME ============================ */
.site-nav {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .mark { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-teal); color: #fff; display: grid; place-items: center; font-size: 19px; box-shadow: 0 6px 16px rgba(14,110,119,.35); flex: none; }
.brand .txt { line-height: 1.1; }
.brand .txt b { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink); display: block; }
.brand .txt small { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.site-nav .links { display: flex; align-items: center; gap: 8px; }
.site-nav .links a { color: var(--ink-2); font-weight: 550; font-size: 14.5px; padding: 8px 12px; border-radius: 9px; }
.site-nav .links a:hover { background: var(--surface-2); color: var(--ink); }

.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(680px 420px at 82% -12%, rgba(14,110,119,.12), transparent 60%), radial-gradient(520px 380px at -6% 8%, rgba(200,95,90,.08), transparent 55%); pointer-events: none; }
.hero .wrap { position: relative; padding: 74px 22px 64px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); background: var(--teal-50); padding: 6px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.12; margin: 20px 0 16px; max-width: 17ch; text-wrap: balance; }
.hero p.lead { font-size: 1.16rem; color: var(--ink-2); max-width: 56ch; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }

.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: 1.85rem; margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }

.site-foot { background: #12232a; color: #b9c7cc; padding: 44px 0 30px; margin-top: 40px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.site-foot .brand .txt b { color: #fff; }
.site-foot .brand .txt small { color: #8fa4a9; }
.site-foot a { color: #cdd8db; }
.site-foot .cols { display: flex; gap: 54px; flex-wrap: wrap; }
.site-foot h4 { color: #fff; font-size: 14px; margin: 0 0 12px; font-family: var(--sans); font-weight: 700; letter-spacing: .03em; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.site-foot .copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 18px; font-size: 13px; color: #8fa4a9; }

/* ---- Webinar cards ---- */
.wbn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.wbn-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .16s, box-shadow .16s; display: flex; flex-direction: column; }
.wbn-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.wbn-card .cover { height: 128px; background: var(--grad-teal); position: relative; display: grid; place-items: center; color: rgba(255,255,255,.9); }
.wbn-card .cover .cat { position: absolute; top: 12px; left: 12px; }
.wbn-card .cover i { font-size: 40px; opacity: .5; }
.wbn-card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.wbn-card .date { font-size: 12.5px; font-weight: 600; color: var(--teal-ink); display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.wbn-card h3 { font-size: 1.16rem; margin: 0 0 8px; line-height: 1.28; }
.wbn-card .sum { font-size: 13.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.wbn-card .speaker { display: flex; align-items: center; gap: 10px; margin: 16px 0; padding-top: 14px; border-top: 1px solid var(--line-2); }
.wbn-card .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--rose-50); color: var(--rose-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.wbn-card .speaker .n { font-size: 13px; font-weight: 650; }
.wbn-card .speaker .t { font-size: 11.5px; color: var(--faint); }
.wbn-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---- Cards / generic ---- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card.pad { padding: 26px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--grad-teal); }
.stat .n { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--teal-ink); line-height: 1; }
.stat .l { color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; }

/* ---- Tables ---- */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tbl th, .tbl td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.tbl th { background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tr:last-child td { border-bottom: none; }

/* ---- Forms ---- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-xs);
  font-size: 14.5px; font-family: inherit; background: var(--paper); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: var(--ring); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; font-weight: 550; }
.alert.err { background: #fbeae8; color: #a02f22; border: 1px solid #f1cdc8; }
.alert.ok { background: #e6f4ec; color: #226644; border: 1px solid #c4e6d2; }
.alert.info { background: var(--teal-50); color: var(--teal-2); border: 1px solid #c9e4e4; }

/* ---- Auth ---- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px;
  background: radial-gradient(700px 500px at 80% -10%, rgba(14,110,119,.12), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 440px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 36px 34px; box-shadow: var(--shadow-lg); }
.auth-card .brand { justify-content: center; margin-bottom: 8px; }
.auth-card h1 { text-align: center; font-size: 1.5rem; margin: 8px 0 4px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 22px; }

@media (max-width: 720px) {
  .row2 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .site-nav .links a.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ============================================================
   APP SHELL (üye / yönetici alanı)
   ============================================================ */
.app-shell { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: 258px; flex: none; background: linear-gradient(180deg,#14313a 0%,#0e2027 100%);
  color: #b9cace; display: flex; flex-direction: column; padding: 20px 15px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid rgba(255,255,255,.05);
}
.sidebar .brand { padding: 4px 8px 6px; margin-bottom: 14px; }
.sidebar .brand .txt b { color: #fff; }
.sidebar .brand .txt small { color: #86a0a5; }
.side-sec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .11em; color: #6d878d; font-weight: 700; padding: 15px 12px 6px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-nav a { color: #a7bcc0; padding: 10px 12px; border-radius: 10px; font-weight: 550; font-size: 14.5px; display: flex; align-items: center; gap: 12px; transition: background .15s, color .15s; }
.side-nav a i { width: 18px; text-align: center; font-size: 14px; opacity: .85; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.on { background: var(--grad-teal); color: #fff; box-shadow: 0 6px 16px rgba(14,110,119,.4); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; margin-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.side-user .av { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.side-user .m { flex: 1; min-width: 0; }
.side-user .m .n { color: #eef4f4; font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .m .r { color: #86a0a5; font-size: 11px; }
.side-user .out { color: #86a0a5; font-size: 15px; padding: 7px; border-radius: 8px; }
.side-user .out:hover { color: #fff; background: rgba(255,255,255,.08); }
.app-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.app-top { flex: none; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); z-index: 20; }
.app-top .t { font-family: var(--serif); font-weight: 700; font-size: 17px; }
.app-content { flex: 1; min-height: 0; overflow-y: auto; }
.app-content .inner { max-width: 1080px; margin: 0 auto; padding: 30px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.page-head h1 { font-size: 1.7rem; margin: 0 0 4px; }
.page-head .sub { color: var(--muted); }

@media (max-width: 820px) {
  .app-shell { flex-direction: column; height: auto; overflow: visible; }
  .sidebar { width: auto; height: auto; position: sticky; top: 0; flex-direction: row; align-items: center; gap: 6px; padding: 8px 12px; overflow-x: auto; border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .sidebar .brand { margin: 0 6px 0 0; }
  .side-sec { display: none; }
  .side-nav { flex-direction: row; flex: 1; }
  .side-nav a { white-space: nowrap; }
  .side-user { border: none; padding: 0; margin: 0; }
  .side-user .m { display: none; }
  .app-top { display: none; }
  .app-content { overflow: visible; }
}

/* ---------------------------------------------------------------- canlı oda */
.lr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.lr-tabs { display: flex; gap: 4px; }
.lr-tabs button { border: 0; background: transparent; padding: 8px 13px; border-radius: 9px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; position: relative; }
.lr-tabs button:hover { background: var(--surface-2); }
.lr-tabs button.on { background: var(--teal-50); color: var(--teal-ink); }
.lr-dot { position: absolute; top: 5px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
.lr-meta { display: flex; align-items: center; gap: 10px; }
.lr-online { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lr-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: pulse 1.4s infinite; }
.lr-panel { padding: 14px 16px; }
.lr-panel[hidden] { display: none; }
.lr-chat { display: flex; flex-direction: column; height: 330px; }
.lr-msgs { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 11px; padding-right: 4px; }
.lr-msg { display: flex; gap: 9px; }
.lr-av { width: 28px; height: 28px; border-radius: 50%; background: var(--teal-50); color: var(--teal-ink); display: grid; place-items: center; font-weight: 700; font-size: 10.5px; flex: none; }
.lr-msg.host .lr-av { background: var(--rose-50); color: var(--rose-2); }
.lr-nm { font-size: 12.5px; }
.lr-b { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; overflow-wrap: anywhere; }
.lr-form { display: flex; gap: 8px; margin-top: 12px; }
.lr-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-xs); font: inherit; font-size: 14px; }
.lr-opt { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 13px; margin-bottom: 8px; cursor: pointer; font: inherit; font-size: 14px; position: relative; overflow: hidden; }
.lr-opt:hover:not(:disabled) { border-color: var(--teal-ink); }
.lr-opt:disabled { cursor: default; }
.lr-opt.mine { border-color: var(--teal-ink); font-weight: 600; }
.lr-opt .fill { position: absolute; inset: 0 auto 0 0; background: var(--teal-50); transition: width .5s ease; }
.lr-opt span:not(.fill) { position: relative; }
@media (max-width: 700px) { .lr-head { gap: 8px; } .lr-tabs button { padding: 7px 10px; font-size: 12.5px; } }

/* Sahne düzeni: canlı yayın + canlı oda yan yana (Zoom izlerken sohbet hep görünür) */
.live-stage { padding: 0 0 24px; }
.ls-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.ls-main { min-width: 0; }
.ls-side { position: sticky; top: 84px; }
.ls-side #liveRoom { margin-top: 0; }
.ls-side .lr-chat { height: clamp(280px, calc(100vh - 310px), 560px); }
@media (max-width: 1080px) {
  .ls-grid { grid-template-columns: 1fr; }
  .ls-side { position: static; }
  .ls-side .lr-chat { height: 340px; }
}

/* ------------------------------------------------------------- bildirimler */
.notif { position: relative; margin-left: auto; }
.notif-btn { position: relative; border: 1px solid var(--line); background: #fff; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; color: var(--ink-2); font-size: 15px; }
.notif-btn:hover { background: var(--surface-2); color: var(--ink); }
.notif-dot { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.notif-panel { position: absolute; right: 0; top: 46px; width: 360px; max-width: 92vw; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(20,30,50,.16); z-index: 60; overflow: hidden; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.notif-all { border: 0; background: none; color: var(--teal-ink); font: inherit; font-size: 12px; cursor: pointer; }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 13.5px; }
.notif-item, .notif-row { display: flex; gap: 11px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); color: inherit; }
.notif-item:hover, .notif-row:hover { background: var(--surface-2); }
.notif-item.unread, .notif-row.unread { background: var(--teal-50); }
.notif-item.unread:hover, .notif-row.unread:hover { background: #dbeced; }
.notif-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: 11.5px; flex: none; border: 1px solid var(--line-2); }
.notif-body { flex: 1; min-width: 0; }
.notif-text { display: block; font-size: 13.5px; line-height: 1.45; }
.notif-time { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.notif-foot { display: block; text-align: center; padding: 11px; font-size: 13px; font-weight: 600; border-top: 1px solid var(--line-2); }
.notif-row:last-child { border-bottom: 0; }
