/* ==========================================================================
   Time SEO Meet - Stil
   Koyu kurumsal admin teması + güven veren görüşme ekranı
   ========================================================================== */

:root {
  --bg:        #0b1220;
  --bg-2:      #0f1830;
  --bg-grad:   radial-gradient(1200px 600px at 80% -10%, #14233f 0%, transparent 60%),
               radial-gradient(900px 500px at -10% 110%, #0e2233 0%, transparent 55%),
               #0b1220;
  --card:      #ffffff;
  --surface:   #f5f7fb;
  --text:      #1a2230;
  --text-inv:  #e9f0fa;
  --muted:     #5b6676;
  --muted-2:   #9fb0c7;
  --border:    #e4e9f1;
  --border-d:  rgba(255,255,255,.10);

  --accent:    #1fb6c9;   /* turkuaz */
  --accent-d:  #149aab;
  --blue:      #2563eb;   /* mavi */
  --blue-d:    #1d4fd0;
  --danger:    #e5484d;
  --danger-d:  #c93b40;
  --success:   #18a957;
  --info:      #2563eb;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 18px 50px rgba(4, 10, 25, .35);
  --shadow-sm: 0 6px 18px rgba(4, 10, 25, .12);
  --font:      "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-inv);
  background: var(--bg-grad);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0 0 .4em; line-height: 1.25; }

/* ---------- Topbar / nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 22px;
  background: rgba(9, 15, 30, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-d);
  color: var(--text-inv);
}
.brand { color: var(--text-inv); display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.logo { height: 30px; width: auto; display: block; }
.logo-lg { height: 40px; width: auto; }
.topnav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.navlink { color: var(--muted-2); font-weight: 600; font-size: 14px; }
.navlink:hover { color: #fff; text-decoration: none; }

/* ---------- Language switcher ---------- */
.langswitch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(255,255,255,.07); }
.langswitch .lang {
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
  color: var(--muted-2); padding: 4px 9px; border-radius: 999px; line-height: 1;
}
.langswitch .lang:hover { color: #fff; text-decoration: none; }
.langswitch .lang.active { background: var(--accent); color: #04323a; }

/* ---------- Layout ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 26px 22px 60px; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.page-title { font-size: 24px; color: #fff; margin: 0; }
.page-sub { color: var(--muted-2); margin: 4px 0 0; font-size: 14px; }

.appfooter { text-align: center; color: var(--muted-2); font-size: 13px;
  padding: 24px; opacity: .8; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); color: var(--text);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; margin-bottom: 20px;
}
.card-head { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; }
.card-head h2 { font-size: 17px; margin: 0; }
.form-card { max-width: 820px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--border-d); border-radius: var(--radius);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 4px;
}
.stat-num { font-size: 28px; font-weight: 800; color: #fff; }
.stat-label { color: var(--muted-2); font-size: 13px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1;
  padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: .15s ease; white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--accent)); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); color: #fff; }
.btn-accent { background: var(--accent); color: #04323a; }
.btn-accent:hover { background: var(--accent-d); color: #04323a; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-d); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 20px; font-size: 16px; }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-xs { padding: 6px 10px; font-size: 12px; }

/* Koyu zemindeki ghost butonlar (topbar) */
.topbar .btn-ghost { color: var(--text-inv); border-color: var(--border-d); }
.topbar .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Forms ---------- */
.form { display: block; }
.field { display: block; margin-bottom: 16px; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.field-narrow { max-width: 340px; }
.input {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--text);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,182,201,.18); }
textarea.input { resize: vertical; min-height: 70px; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 13px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 18px; }

.form-section { font-size: 15px; color: var(--blue); margin: 18px 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.form-section:first-child { margin-top: 0; }

.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.form-actions.center { justify-content: center; }

.check { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0; font-size: 14px; color: var(--text); cursor: pointer; }
.check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent); }

.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row .input { flex: 1; }
.copy-row.mt { margin-top: 10px; }
.inline { display: inline; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fdecec; color: #a31d22; border: 1px solid #f6c9cb; }
.alert-success { background: #e7f7ee; color: #0f7a3d; border: 1px solid #bce6cd; }
.alert-info { background: #e8f0fe; color: #1a47b8; border: 1px solid #c5d6fb; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--text); }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em;
  color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--border); }
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.cell-strong { font-weight: 600; }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.ta-right { text-align: right; }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* Durum rozetleri */
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-scheduled { background: #e8f0fe; color: #1a47b8; }
.badge-active    { background: #e7f7ee; color: #0f7a3d; }
.badge-completed { background: #eceff4; color: #515c6b; }
.badge-cancelled { background: #fdecec; color: #a31d22; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.dot-on { background: var(--success); }
.dot-off { background: #c2c9d4; }

.empty { text-align: center; padding: 40px 20px; color: var(--text); }
.empty .muted { margin-top: 6px; }

/* ---------- Auth (login / setup) ---------- */
.auth-page { display: flex; min-height: 100vh; flex-direction: column; }
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 30px 18px; }
.auth-card { width: 100%; max-width: 400px; text-align: center; }
.auth-card-wide { max-width: 460px; }
.auth-logo { margin-bottom: 14px; color: var(--text); display: flex; justify-content: center; }
.auth-title { font-size: 21px; margin: 0 0 4px; color: var(--text); }
.auth-subtitle { color: var(--muted); margin: 0 0 20px; font-size: 14px; }
.auth-card .form { text-align: left; }
.auth-foot { margin-top: 18px; display: flex; justify-content: center; }
.auth-foot .langswitch { background: var(--surface); }
.auth-foot .lang { color: var(--muted); }
.auth-foot .lang.active { background: var(--accent); color: #04323a; }

/* ==========================================================================
   GÖRÜŞME SAYFASI (müşteri / moderatör karşılama)
   ========================================================================== */
.meet-page { min-height: 100vh; position: relative; overflow-x: hidden; }
.meet-bg {
  position: fixed; inset: 0; z-index: -1;
  background: var(--bg-grad);
}
.meet-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; color: var(--text-inv);
}
.meet-brand .logo { height: 30px; }

.meet-shell { display: flex; align-items: center; justify-content: center;
  padding: 18px 18px 60px; min-height: calc(100vh - 130px); }
.meet-card { width: 100%; max-width: 460px; text-align: center; padding: 30px 28px; }

.meet-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px; }
.meet-title { font-size: 23px; color: var(--text); margin: 0 0 4px; }
.meet-subtitle { color: var(--muted); margin: 0 0 20px; font-size: 14px; }

.meet-meta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.meta-item { background: var(--surface); border-radius: var(--radius-sm); padding: 10px 14px; min-width: 130px; }
.meta-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.meta-value { display: block; font-weight: 700; color: var(--text); font-size: 14px; margin-top: 2px; }

.meet-form { text-align: left; }
.meet-mediainfo { font-size: 12px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.kvkk { font-size: 13px; color: var(--muted); }

.meet-kvkk { margin-top: 18px; text-align: left; border-top: 1px solid var(--border); padding-top: 14px; }
.meet-kvkk summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--blue); }
.meet-kvkk p { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.meet-error-icon { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800;
  background: #fdecec; color: var(--danger); }
.meet-error h1 { font-size: 20px; color: var(--text); }

/* Yükleniyor */
.meet-loading { position: fixed; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; color: var(--text-inv);
  background: rgba(8,13,26,.7); backdrop-filter: blur(4px); z-index: 900; }
.spinner { width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.18); border-top-color: var(--accent);
  animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* JaaS tam ekran konteyner */
.jaas-container { position: fixed; inset: 0; z-index: 1000; background: #040b16; }
.jaas-container iframe { width: 100% !important; height: 100% !important; border: 0; }

/* ---------- Arama / filtre çubuğu ---------- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-bar .input { width: auto; }
.filter-bar input[type="text"] { flex: 1; min-width: 180px; }

/* ---------- Detay ızgarası ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.detail-grid > div { font-size: 14px; color: var(--text); }
.dt-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }
.detail-full { grid-column: 1 / -1; }

/* ---------- Takvim ---------- */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head { margin-bottom: 6px; }
.cal-weekday { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; padding: 4px; }
.cal-cell { min-height: 96px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 6px; }
.cal-empty { background: transparent; border: none; }
.cal-today { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal-daynum { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.cal-event { display: block; font-size: 11px; padding: 3px 6px; border-radius: 6px; margin-bottom: 3px;
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event:hover { filter: brightness(.97); text-decoration: none; }
.cal-time { font-weight: 700; margin-right: 3px; }
.cal-event.status-scheduled { background: #e8f0fe; color: #1a47b8; }
.cal-event.status-active    { background: #e7f7ee; color: #0f7a3d; }
.cal-event.status-completed { background: #eceff4; color: #515c6b; }
.cal-event.status-cancelled { background: #fdecec; color: #a31d22; text-decoration: line-through; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .page-title { font-size: 21px; }
}
@media (max-width: 560px) {
  .container { padding: 18px 14px 50px; }
  .topbar { padding: 10px 14px; }
  .topnav { gap: 8px; }
  .topnav .navlink { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-num { font-size: 22px; }
  .actions { justify-content: flex-start; }
  .meet-card { padding: 24px 20px; }
  .copy-row { flex-direction: column; align-items: stretch; }
  .copy-row .btn { width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .cal-grid { gap: 3px; }
  .cal-cell { min-height: 64px; padding: 3px; }
  .cal-daynum { font-size: 11px; }
  .cal-event { font-size: 10px; padding: 2px 4px; }
  .cal-weekday { font-size: 10px; padding: 2px; }
  .filter-bar input[type="text"] { min-width: 120px; }
}
