/* Akyurt Media — Portal shared layout (open-design token system) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;540;560;600;660;700;740&display=swap');

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --fg: #0C0C0D;
  --fg-2: #4A4A52;
  --muted: #9898A6;
  --border: #E6E6EC;
  --accent: #2563EB;
  --accent-h: #1D4ED8;
  --accent-dim: rgba(37,99,235,.09);
  --accent-hover: rgba(37,99,235,.14);
  --success: #047857;
  --danger: #DC2626;
  --warn: #B45309;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --sh-xs: 0 1px 4px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);
  --sh-sm: 0 2px 10px rgba(0,0,0,.07),0 1px 4px rgba(0,0,0,.04);
  --sh-md: 0 8px 28px rgba(37,99,235,.10),0 2px 8px rgba(0,0,0,.06);
  --sidebar-w: 252px;
  --topbar-h: 58px;
  --st-draft-c: #6B7280;   --st-draft-bg: #F3F4F6;
  --st-review-c: #B45309;  --st-review-bg: #FEF3C7;
  --st-live-c: #047857;    --st-live-bg: #D1FAE5;
  --st-changes-c: #B91C1C; --st-changes-bg: #FEE2E2;
  --st-rejected-c: #6D28D9;--st-rejected-bg: #EDE9FE;
  --font: 'Inter',-apple-system,BlinkMacSystemFont,'SF Pro Text',system-ui,sans-serif;
  --ease: cubic-bezier(.2,0,0,1);
  /* Stronger UI easing curves (Emil Kowalski) */
  --ease-out-quart: cubic-bezier(.23,1,.32,1);
  --ease-out-expo: cubic-bezier(.16,1,.3,1);
  /* Darker secondary ink for small text that must hit AA (4.5:1) */
  --ink-2: #56565F;
}

/* ── Skeleton shimmer (loading) ── */
@keyframes shimmer { 100% { background-position: -200% 0; } }
.skeleton {
  background: linear-gradient(90deg, #EEEFF4 25%, #F6F7FA 37%, #EEEFF4 63%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── App shell ── */
.app { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  transition: transform .22s cubic-bezier(.4,0,.2,1);
}

.sidebar-logo {
  padding: 22px 18px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px; height: 34px;
  background: var(--fg);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.logo-copy { flex: 1; min-width: 0; }
.logo-name { font-size: 14px; font-weight: 700; letter-spacing: -.03em; color: var(--fg); line-height: 1.1; }
.logo-tagline { font-size: 10.5px; color: var(--muted); letter-spacing: .01em; margin-top: 1px; }

.sidebar-nav {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-sep { height: 1px; background: var(--border); margin: 8px 0; }
.nav-label {
  font-size: 9.5px; font-weight: 600; color: var(--muted);
  letter-spacing: .09em; text-transform: uppercase;
  padding: 6px 10px 3px;
}

.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: var(--fg-2);
  text-decoration: none;
  font-size: 13.5px; font-weight: 450;
  cursor: pointer;
  transition: background .13s, color .13s;
  position: relative;
  border: none; background: none;
  width: 100%; text-align: left;
}
.nav-item:hover { background: #F3F6FE; color: var(--fg); }
.nav-item.active { background: var(--accent-dim); color: var(--fg); font-weight: 560; }
.nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.nav-ic { width: 16px; height: 16px; flex-shrink: 0; opacity: .65; }
.nav-item.active .nav-ic { opacity: 1; }
.nav-badge {
  margin-left: auto;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 600;
  padding: 1px 6px; border-radius: 999px; line-height: 1.5;
}

.sidebar-footer { padding: 10px; border-top: 1px solid var(--border); flex-shrink: 0; }
.user-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-sm);
  cursor: pointer; transition: background .13s;
}
.user-row:hover { background: #F3F6FE; }
.user-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--fg);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 600; flex-shrink: 0;
  letter-spacing: -.02em;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 560; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--muted); }

/* ── Sidebar overlay ── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(2px);
  z-index: 190;
}
.sidebar-overlay.vis { display: block; }

/* ── Main ── */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ── */
.topbar {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 30px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.hamburger {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface);
  align-items: center; justify-content: center;
  cursor: pointer; color: var(--fg-2);
}
.breadcrumb { font-size: 13.5px; color: var(--muted); }
.breadcrumb b { color: var(--fg); font-weight: 560; }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--fg-2);
  transition: background .13s, color .13s;
  position: relative;
}
.icon-btn:hover { background: #F3F6FE; color: var(--accent); }
.notif-pip {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
  border: 1.5px solid #fff;
}

/* ── Page container ── */
.page { padding: 30px; flex: 1; background: #f7f8ff; }

/* ── Page header ── */
.page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.page-header-left h1 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -.04em; color: var(--fg); line-height: 1.2;
}
.page-header-left p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ── Card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  margin-bottom: 20px;
  overflow: hidden;
}
.card-body { padding: 20px 22px; }
.card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 14.5px; font-weight: 660; color: var(--fg); letter-spacing: -.02em; }
.card-action { font-size: 12.5px; color: var(--accent); cursor: pointer; font-weight: 540; }
.card-action:hover { text-decoration: underline; }

/* ── Section header ── */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sec-title { font-size: 14.5px; font-weight: 660; color: var(--fg); letter-spacing: -.02em; }
.sec-link { font-size: 12.5px; color: var(--muted); text-decoration: none; cursor: pointer; transition: color .13s; }
.sec-link:hover { color: var(--accent); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 540;
  cursor: pointer;
  transition: background .13s, transform .12s, box-shadow .13s;
  border: none; text-decoration: none; line-height: 1;
  font-family: var(--font);
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 4px rgba(37,99,235,.25);
}
.btn-primary:hover { background: var(--accent-h); box-shadow: 0 4px 14px rgba(37,99,235,.32); }
.btn-primary:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--fg-2); border: 1px solid var(--border); }
.btn-ghost:hover { background: #F3F6FE; color: var(--fg); }
.btn-danger { background: transparent; color: #B91C1C; border: 1px solid #FEE2E2; }
.btn-danger:hover { background: #FEE2E2; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.b-draft    { background: var(--st-draft-bg);    color: var(--st-draft-c); }
.b-review   { background: var(--st-review-bg);   color: var(--st-review-c); }
.b-live     { background: var(--st-live-bg);     color: var(--st-live-c); }
.b-proc     { background: var(--accent-dim);     color: var(--accent); }
.b-chg      { background: var(--st-changes-bg);  color: var(--st-changes-c); }
.b-rej      { background: var(--st-rejected-bg); color: var(--st-rejected-c); }
/* KYC badges */
.badge-yok        { background: #F3F4F6; color: #6B7280; }
.badge-beklemede  { background: var(--st-review-bg); color: var(--st-review-c); }
.badge-onayli     { background: var(--st-live-bg); color: var(--st-live-c); }
.badge-reddedildi { background: var(--st-changes-bg); color: var(--st-changes-c); }
.badge-green      { background: #D1FAE5; color: #065F46; }
.badge-amber      { background: #FEF3C7; color: #92400E; }
.badge-blue       { background: var(--accent-dim); color: var(--accent); }
.badge-open       { background: rgba(208,53,53,.09); color: #D03535; }
.badge-closed     { background: #F3F4F6; color: #6B7280; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-group label,
label {
  display: block;
  font-size: 12.5px; font-weight: 560; color: var(--fg-2);
  margin-bottom: 5px;
}
.form-group input,
.form-group textarea,
.form-group select,
input, select, textarea {
  font-family: var(--font);
  font-size: 14px; color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 12px; width: 100%;
  outline: none;
  transition: border-color .13s, box-shadow .13s;
}
input:focus, select:focus, textarea:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3.5rem; }
.pw-toggle {
  position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 0.72rem; color: var(--accent); padding: 0.2rem;
}

/* ── Banners ── */
.banner {
  padding: 12px 16px; border-radius: var(--r-md);
  margin-bottom: 20px; font-size: 14px;
  display: flex; align-items: center; gap: 10px;
}
.banner-warn {
  background: #FFFBEB; border: 1px solid #FCD34D; color: #78350F;
}
.banner a { color: var(--accent); font-weight: 600; text-decoration: none; }
.banner a:hover { text-decoration: underline; }

/* ── Empty state ── */
.empty-state {
  text-align: center; padding: 40px 24px;
  color: var(--muted); font-size: 13.5px;
}
.empty-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
  text-align: center; box-shadow: var(--sh-xs);
}
.empty-ico { opacity: .2; margin: 0 auto 10px; display: block; }
.empty-txt { font-size: 13px; color: var(--muted); line-height: 1.55; }
.empty-txt a { color: var(--accent); text-decoration: none; font-weight: 500; }
.empty-txt a:hover { text-decoration: underline; }

/* ── Tables ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  font-size: 10.5px; font-weight: 600; color: var(--muted);
  letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 20px; text-align: left;
  border-bottom: 1px solid var(--border);
  background: #FAFAFA;
}
.data-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px; color: var(--fg-2);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #F3F6FE; }
.data-table tbody tr { transition: background .1s; }
.amount-cell { color: var(--fg); font-weight: 600; }

/* ── Messages ── */
.msg-ok  { color: var(--success); font-size: 13px; margin-top: 8px; }
.msg-err { color: var(--danger);  font-size: 13px; margin-top: 8px; }
.alert { padding: 10px 14px; border-radius: var(--r-sm); font-size: 13.5px; margin-bottom: 14px; }
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error   { background: #FEE2E2; color: #B91C1C; border: 1px solid #FECACA; }

/* ── Info rows (account profile) ── */
.info-row {
  display: flex; gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-label { font-weight: 560; color: var(--fg-2); min-width: 150px; flex-shrink: 0; }
.info-value { color: var(--muted); }

/* ── History list ── */
.history-list { list-style: none; }
.history-list li {
  font-size: 13px; color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.history-list li:last-child { border-bottom: none; }

/* ── Section heading ── */
.section-heading {
  font-size: 14px; font-weight: 660; color: var(--fg);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ── Wallet card ── */
.wallet-card {
  background: linear-gradient(135deg, var(--accent) 0%, #1e4fcf 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 22px 28px;
  margin-bottom: 20px;
  box-shadow: 0 8px 28px rgba(37,99,235,.25);
}
.wallet-card .label {
  font-size: 11px; opacity: .8; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 8px;
}
.wallet-card .amount { font-size: 1.8rem; font-weight: 700; letter-spacing: -.03em; }

/* ── Animations ── */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal-up { animation: reveal-up .32s var(--ease) both; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(calc(-1 * var(--sidebar-w)));
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 28px rgba(0,0,0,.12);
  }
  .sidebar-overlay.vis { display: block; }
  .main { margin-left: 0; }
  .hamburger { display: flex; }
  .topbar { padding: 0 16px; }
  .page { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
}

/* ── Agreement checkboxes (Release Wizard step 5) ── */
.agreement-item { display:flex; align-items:flex-start; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); }
.agreement-item:last-child { border-bottom:none; }
.agreement-item input[type=checkbox] { margin-top:3px; flex-shrink:0; width:16px; height:16px; accent-color:var(--accent); cursor:pointer; }
.agreement-item label { font-size:14px; color:var(--fg-2); line-height:1.5; cursor:pointer; }
.agreement-item a { color:var(--accent); }
.signed-name-wrap { margin-top:16px; }
.signed-name-wrap label { display:block; font-size:12px; font-weight:600; color:var(--muted); margin-bottom:6px; text-transform:uppercase; letter-spacing:.06em; }
.signed-name-wrap input { width:100%; padding:10px 14px; border:1px solid var(--border); border-radius:var(--r-sm); font-size:15px; }

/* ── Animasyonlar ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card, .section-block, .stat-card, .release-item, .ticket-card {
  animation: fadeInUp 0.22s ease both;
}

/* nth-child gecikmeli giriş */
.card:nth-child(1), .stat-card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2), .stat-card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3), .stat-card:nth-child(3) { animation-delay: 0.15s; }

/* Buton tıklama efekti */
.btn, .settings-nav-item, button[class*="btn"], .sidebar-item {
  transition: transform 0.1s ease, opacity 0.1s ease;
}
.btn:active, button:active {
  transform: scale(0.97) !important;
  opacity: 0.85;
}

/* Kart hover efekti */
.card:hover, .release-item:hover, .ticket-card:hover {
  transform: translateY(-1px);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* ──────────────────────────────────────────────────────────────
   Premium polish — lüks his, saydamlık efektleri ve yumuşak animasyonlar
   (Additive: mevcut kuralları bozmadan üzerine ince geçişler ekler)
   ────────────────────────────────────────────────────────────── */

/* Sayfa içeriği yumuşak giriş animasyonu */
@keyframes akyFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.page { animation: akyFadeUp .5s cubic-bezier(.22,.61,.36,1) both; }

/* Kart geçişleri yumuşatıldı + premium gölge */
.card { transition: box-shadow .25s ease, transform .2s ease, border-color .2s ease; }
.card:hover { box-shadow: 0 14px 40px rgba(37,99,235,.10), 0 4px 12px rgba(0,0,0,.05); border-color: rgba(37,99,235,.18); }

/* Cam (glassmorphism) topbar — daha şeffaf ve derin bulanıklık */
.topbar { background: rgba(255,255,255,.78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }

/* Sidebar hafif cam dokusu */
.sidebar { background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,255,.96)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Nav öğeleri yumuşak geçiş + aktiv vurgusu */
.nav-item { transition: background .18s ease, color .18s ease, transform .12s ease; }
.nav-item:hover { transform: translateX(2px); }
.nav-item.active { background: linear-gradient(90deg, var(--accent-hover), var(--accent-dim)); box-shadow: inset 2px 0 0 var(--accent); }

/* Birincil butonlarda ince parlama + basış hissi */
.btn-primary, .btn.btn-primary { transition: background .15s ease, box-shadow .2s ease, transform .1s ease; }
.btn-primary:hover, .btn.btn-primary:hover { box-shadow: 0 8px 22px rgba(37,99,235,.28); }
.btn-primary:active, .btn.btn-primary:active { transform: translateY(1px) scale(.99); }

/* Metrik/istatistik kartlarına cam parıltısı */
.metric-card, .bal-card, .det-card { transition: box-shadow .25s ease, transform .2s ease; }
.metric-card:hover, .bal-card:hover { box-shadow: 0 12px 32px rgba(37,99,235,.12); transform: translateY(-2px); }

/* Modal arka planı premium bulanık cam */
.modal-overlay, .crop-overlay { backdrop-filter: blur(8px) saturate(1.3); -webkit-backdrop-filter: blur(8px) saturate(1.3); background: rgba(15,23,42,.45) !important; }

/* Hareket azaltma tercihini sayan kullanıcılar için animasyonları kapat */
@media (prefers-reduced-motion: reduce) {
  .page { animation: none; }
  * { transition: none !important; }
}
