/* ============================================================
   VeoFilmPanel tasarım sistemi
   Sol menülü panel düzeni + modern kart/tablo görünümü
   ============================================================ */

:root {
  --vp-bg: #f4f5fa;
  --vp-surface: #ffffff;
  --vp-border: #e5e7ef;
  --vp-text: #1f2333;
  --vp-muted: #6b7286;
  --vp-primary: #4f46e5;
  --vp-primary-soft: #eef2ff;
  --vp-primary-hover: #4338ca;
  --vp-sidebar: #151a2d;
  --vp-sidebar-hover: #1f2742;
  --vp-sidebar-active: #4f46e5;
  --vp-radius: 14px;
  --vp-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --vp-shadow-lg: 0 8px 24px rgba(16, 24, 40, .09);
}

html { font-size: 15px; }

body {
  background: var(--vp-bg);
  color: var(--vp-text);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
}

/* ---------- Uygulama kabuğu ---------- */
.vp-shell { display: flex; min-height: 100vh; }

.vp-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--vp-sidebar);
  color: #cdd3e1;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.vp-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: .2px;
}
.vp-brand:hover { color: #fff; }
.vp-brand .logo {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 10px;
  font-size: 1.05rem;
}

.vp-nav { padding: .5rem .75rem 1.5rem; display: flex; flex-direction: column; gap: 2px; }

.vp-nav-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7c86a2;
  padding: 1rem .6rem .35rem;
}

.vp-nav a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .7rem;
  border-radius: 9px;
  color: #cdd3e1;
  text-decoration: none;
  font-size: .92rem;
  transition: background .12s ease, color .12s ease;
}
.vp-nav a:hover { background: var(--vp-sidebar-hover); color: #fff; }
.vp-nav a.active { background: var(--vp-sidebar-active); color: #fff; font-weight: 600; }
.vp-nav a .ico { width: 1.35rem; text-align: center; font-size: 1rem; flex-shrink: 0; }
.vp-nav a .step {
  width: 1.35rem; height: 1.35rem; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  font-size: .72rem; font-weight: 700;
}
.vp-nav a.active .step { background: rgba(255, 255, 255, .22); }

.vp-sidebar .vp-foot {
  margin-top: auto;
  padding: 1rem 1.25rem;
  font-size: .75rem;
  color: #7c86a2;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.vp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.vp-topbar {
  background: var(--vp-surface);
  border-bottom: 1px solid var(--vp-border);
  padding: .8rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.vp-topbar .title { font-weight: 700; font-size: 1.02rem; margin: 0; }
.vp-topbar .hint { color: var(--vp-muted); font-size: .8rem; }

.vp-content { padding: 1.5rem 1.75rem 3rem; }

/* Mobil: sidebar üstte yatay şeride dönüşür */
@media (max-width: 991.98px) {
  .vp-shell { flex-direction: column; }
  .vp-sidebar { width: 100%; height: auto; position: static; }
  .vp-nav { flex-direction: row; flex-wrap: wrap; padding-bottom: .75rem; }
  .vp-nav-label, .vp-foot { display: none; }
  .vp-content { padding: 1rem; }
}

/* ---------- Bootstrap dokunuşları ---------- */
.card {
  border: 1px solid var(--vp-border);
  border-radius: var(--vp-radius);
  box-shadow: var(--vp-shadow);
}
.card-header { background: transparent; border-bottom: 1px solid var(--vp-border); font-weight: 600; }
.card-footer { background: transparent; }

.btn { border-radius: 9px; font-weight: 500; }
.btn-primary { background: var(--vp-primary); border-color: var(--vp-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--vp-primary-hover); border-color: var(--vp-primary-hover); }
.btn-outline-primary { color: var(--vp-primary); border-color: #c7ccf5; }
.btn-outline-primary:hover { background: var(--vp-primary); border-color: var(--vp-primary); }
.btn-outline-secondary { border-color: var(--vp-border); color: var(--vp-text); }
.btn-outline-secondary:hover { background: #eceef6; border-color: #d6d9e6; color: var(--vp-text); }

.badge { border-radius: 999px; font-weight: 600; padding: .38em .7em; }
.bg-primary { background-color: var(--vp-primary) !important; }

.table { --bs-table-hover-bg: #f6f7fd; }
.table thead th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--vp-muted);
  font-weight: 600;
  border-bottom-width: 1px;
}
.table > :not(caption) > * > * { padding: .6rem .65rem; }

.table-responsive, .table-bordered {
  border-radius: var(--vp-radius);
}
.card .table { margin-bottom: 0; }

.form-control, .form-select {
  border-radius: 9px;
  border-color: var(--vp-border);
}
.form-control:focus, .form-select:focus {
  border-color: var(--vp-primary);
  box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .12);
}
.form-label { font-weight: 600; font-size: .85rem; }

.alert { border-radius: var(--vp-radius); border: 0; box-shadow: var(--vp-shadow); }

.breadcrumb { font-size: .82rem; margin-bottom: .9rem; }
.breadcrumb a { text-decoration: none; }

/* ---------- Sayfa başlığı ---------- */
.vp-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.15rem;
}
.vp-page-head h4 { font-weight: 700; margin: 0; }

/* ---------- İstatistik kutuları ---------- */
.vp-stat {
  background: var(--vp-surface);
  border: 1px solid var(--vp-border);
  border-radius: var(--vp-radius);
  box-shadow: var(--vp-shadow);
  padding: .9rem 1.1rem;
  height: 100%;
}
.vp-stat .k { font-size: .74rem; color: var(--vp-muted); text-transform: uppercase; letter-spacing: .05em; }
.vp-stat .v { font-size: 1.45rem; font-weight: 700; line-height: 1.3; }
.vp-stat .s { font-size: .75rem; color: var(--vp-muted); }

/* ---------- Proje kartları ---------- */
.vp-project-card { transition: transform .12s ease, box-shadow .12s ease; }
.vp-project-card:hover { transform: translateY(-2px); box-shadow: var(--vp-shadow-lg); }
.vp-project-card .p-name { font-weight: 700; font-size: 1.05rem; }
.vp-project-card .p-meta { color: var(--vp-muted); font-size: .8rem; }
.vp-project-card .p-stats { display: flex; gap: 1.25rem; margin: .8rem 0; }
.vp-project-card .p-stats b { display: block; font-size: 1.05rem; }
.vp-project-card .p-stats span { font-size: .72rem; color: var(--vp-muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Grid kartları ---------- */
.vp-shot-card video { background: #0b0e1a; }
.vp-shot-card .card-footer { padding: .55rem .8rem; }

/* Boş durum */
.vp-empty {
  background: var(--vp-surface);
  border: 1px dashed #d3d7e6;
  border-radius: var(--vp-radius);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--vp-muted);
}
.vp-empty .big { font-size: 2.2rem; margin-bottom: .5rem; }

.sticky-bottom { border-radius: var(--vp-radius) var(--vp-radius) 0 0; }

code { color: #5b48d6; }
