/* Sosyal Panel — Bootstrap 5 üzerine tema.
   Marka rengi değişkendir: beyaz etikette ajansın rengiyle değiştirilir (_Layout: --brand). */
:root {
  --brand: #4f46e5;
  --brand-hover: color-mix(in srgb, var(--brand) 85%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 10%, #fff);
  --brand-text: color-mix(in srgb, var(--brand) 80%, #000);
  --surface: #ffffff;
  --page: #f8fafc;
  --line: #e2e8f0;
  --muted: #64748b;
  --ink: #0f172a;
  --bs-primary: var(--brand);
  --bs-link-color: var(--brand);
  --bs-link-hover-color: var(--brand-hover);
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: var(--ink);
  --bs-border-color: var(--line);
  --bs-border-radius: 0.5rem;
}

body {
  background: var(--page);
  color: var(--ink);
  font-size: 0.925rem;
}

/* ── Düğmeler: Bootstrap primary marka rengini izlesin ── */
.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-hover);
  --bs-btn-hover-border-color: var(--brand-hover);
  --bs-btn-active-bg: var(--brand-hover);
  --bs-btn-active-border-color: var(--brand-hover);
  --bs-btn-disabled-bg: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
}
.btn-outline-primary {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand);
}
.btn { font-weight: 500; }
.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--brand) 20%, transparent);
}
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.text-brand { color: var(--brand-text) !important; }
.bg-brand-soft { background: var(--brand-soft) !important; }

/* ── Kart ── */
.card { border-color: var(--line); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); border-radius: 0.75rem; }
.card-header { background: transparent; border-bottom-color: var(--line); font-weight: 600; }

/* ── Panel düzeni ── */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  position: sticky; top: 0; height: 100vh; width: 16rem; flex-shrink: 0;
  display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line);
}
.app-sidebar .brand { height: 4rem; display: flex; align-items: center; gap: .6rem; padding: 0 1.25rem; border-bottom: 1px solid #f1f5f9; color: var(--ink); text-decoration: none; font-weight: 600; }
.app-sidebar .nav-scroll { flex: 1; overflow-y: auto; padding: 1rem .75rem; }
.app-sidebar .user-box { border-top: 1px solid #f1f5f9; padding: .75rem; }
.app-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.app-content { width: 100%; max-width: 72rem; margin: 0 auto; padding: 1.5rem 1rem; flex: 1; }
@media (min-width: 992px) { .app-content { padding: 2rem 2rem; } }
.app-topbar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }

.brand-mark { width: 2rem; height: 2rem; border-radius: .5rem; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.side-nav a {
  display: flex; align-items: center; gap: .75rem; padding: .5rem .75rem; border-radius: .5rem;
  color: #475569; text-decoration: none; font-weight: 500; white-space: nowrap;
}
.side-nav a:hover { background: #f8fafc; color: var(--ink); }
.side-nav a.active { background: var(--brand-soft); color: var(--brand-text); }
.side-nav svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.side-nav.horizontal { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding: 0 .5rem .5rem; }
.side-nav.horizontal a { padding: .4rem .65rem; font-size: .85rem; }

/* ── Sayfa başlığı ── */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.page-head p { color: var(--muted); margin: .25rem 0 0; }

/* ── Platform rozeti ── */
.platform-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 500; padding: .15rem .5rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.platform-dot { width: .55rem; height: .55rem; border-radius: 999px; display: inline-block; }

/* ── Durum rozetleri (gönderi, varyant, iş) ── */
.status { display: inline-flex; align-items: center; font-size: .75rem; font-weight: 500; padding: .15rem .55rem; border-radius: 999px; }
.status-draft { background: #f1f5f9; color: #475569; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-scheduled { background: #e0f2fe; color: #075985; }
.status-running { background: #ede9fe; color: #5b21b6; }
.status-ok { background: #d1fae5; color: #065f46; }
.status-warn { background: #ffedd5; color: #9a3412; }
.status-error { background: #fee2e2; color: #991b1b; }

/* ── Boş durum ── */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state h3 { font-size: 1rem; color: var(--ink); font-weight: 600; }

/* ── Kimlik doğrulama sayfaları ── */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 26rem; }

.muted { color: var(--muted); }
.small-muted { color: var(--muted); font-size: .8rem; }
.text-pre { white-space: pre-wrap; }
.stat-value { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }
.table > :not(caption) > * > * { padding: .65rem .75rem; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; }

/* Bootstrap d-flex / d-grid gibi sınıflar hidden özniteliğini ezmesin */
[hidden] { display: none !important; }
