/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --primary: #1a56db;
  --primary-dark: #1041a3;
  --primary-light: #e8effd;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --dark: #1e293b;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --border: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Nunito', sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: #f8fafc;
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.navbar-brand span { color: var(--accent); }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}

.navbar-nav a {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--gray);
  font-weight: 600;
  font-size: .9rem;
  transition: all .2s;
}
.navbar-nav a:hover, .navbar-nav a.aktif { background: var(--primary-light); color: var(--primary); }

.badge-count {
  background: var(--danger);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}

.btn-nav-giris {
  background: var(--primary);
  color: #fff !important;
  padding: .5rem 1.2rem !important;
}
.btn-nav-giris:hover { background: var(--primary-dark) !important; color: #fff !important; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 50%, var(--secondary) 100%);
  color: #fff;
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}
.hero p {
  font-size: 1.1rem;
  opacity: .9;
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── Butonlar ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 700;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--white); color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary-light); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-outline { background: transparent; color: var(--gray); border: 1.5px solid var(--border); }
.btn-outline:hover { background: var(--gray-light); }
.btn-white { background: #fff; color: var(--primary); font-weight: 700; }
.btn-white:hover { background: #f0f4ff; }
.btn-sm { padding: .4rem .9rem; font-size: .82rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Card ────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
}
.card-body { padding: 1.5rem; }
.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--gray-light);
}

/* ── İlan Kartı ─────────────────────────────────────── */
.ilan-kart {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all .2s;
  cursor: pointer;
}
.ilan-kart:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.ilan-kart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: .8rem;
}
.ilan-kart-baslik {
  font-weight: 700;
  color: var(--dark);
  font-size: .95rem;
}
.ilan-kart-alt {
  color: var(--gray);
  font-size: .82rem;
  margin-top: .15rem;
}
.ilan-ok {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  color: var(--dark);
  margin: .6rem 0;
}
.ilan-ok .ok { color: var(--primary); font-size: 1.1rem; }
.ilan-kart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
}
.ilan-sure { font-size: .78rem; color: var(--gray); }

/* ── Badge / Etiket ─────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .7rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-gray    { background: var(--gray-light); color: var(--gray); }

/* ── Form ────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  color: var(--dark);
  margin-bottom: .4rem;
}
.form-label .zorunlu { color: var(--danger); margin-left: .2rem; }
.form-control {
  width: 100%;
  padding: .65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}
.form-control.hata { border-color: var(--danger); }
.form-hata { font-size: .78rem; color: var(--danger); margin-top: .3rem; }
.form-bilgi { font-size: .78rem; color: var(--gray); margin-top: .3rem; }

.input-grup { position: relative; }
.input-grup .form-control { padding-left: 2.8rem; }
.input-grup .icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 1rem;
  pointer-events: none;
}

/* ── Alert ───────────────────────────────────────────── */
.alert {
  padding: .9rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: 1rem;
}
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--success); }
.alert-danger  { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger); }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--warning); }
.alert-info    { background: #dbeafe; color: #1e40af; border-left: 4px solid var(--info); }

/* ── İstatistik Kutusu ──────────────────────────────── */
.stat-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-box .sayi {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.stat-box .etiket { font-size: .82rem; color: var(--gray); font-weight: 600; margin-top: .2rem; }

/* ── Grid ────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-ilan { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* ── Sayfa Başlık ───────────────────────────────────── */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.page-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
}
.page-sub { color: var(--gray); font-size: .88rem; margin-top: .2rem; }

/* ── Mesaj ───────────────────────────────────────────── */
.mesaj-balonu {
  max-width: 70%;
  padding: .65rem 1rem;
  border-radius: 18px;
  font-size: .88rem;
  margin-bottom: .4rem;
  word-break: break-word;
}
.mesaj-ben { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; margin-left: auto; }
.mesaj-karsi { background: var(--gray-light); color: var(--dark); border-bottom-left-radius: 4px; }
.mesaj-wrap { display: flex; flex-direction: column; }
.mesaj-wrap.ben { align-items: flex-end; }
.mesaj-wrap.karsi { align-items: flex-start; }
.mesaj-sure { font-size: .7rem; color: var(--gray); margin-top: .1rem; }

/* ── Sidebar ─────────────────────────────────────────── */
.sidebar { width: 260px; flex-shrink: 0; }
.sidebar-menu { list-style: none; }
.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--gray);
  font-weight: 600;
  font-size: .88rem;
  transition: all .2s;
  margin-bottom: .15rem;
}
.sidebar-menu a:hover, .sidebar-menu a.aktif { background: var(--primary-light); color: var(--primary); }
.sidebar-menu .icon { width: 18px; text-align: center; }

/* ── Ana Düzen ───────────────────────────────────────── */
.ana-duzey {
  display: flex;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
  align-items: flex-start;
}
.icerik { flex: 1; min-width: 0; }

/* ── Arama Formu ─────────────────────────────────────── */
.arama-kutusu {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.arama-form {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: flex-end;
}
.arama-form .form-group { margin: 0; flex: 1; min-width: 150px; }

/* ── Abonelik Kartları ───────────────────────────────── */
.paket-kart {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all .25s;
  position: relative;
}
.paket-kart:hover, .paket-kart.populer {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.paket-kart.populer .populer-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .9rem;
  border-radius: 20px;
}
.paket-fiyat {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
}
.paket-fiyat span { font-size: 1rem; color: var(--gray); }
.paket-ozellik {
  list-style: none;
  margin: 1.2rem 0;
  text-align: left;
}
.paket-ozellik li {
  padding: .35rem 0;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 1px solid var(--border);
}
.paket-ozellik li:last-child { border: none; }
.paket-ozellik .evet { color: var(--success); }
.paket-ozellik .hayir { color: var(--gray); }

/* ── Footer ──────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; max-width: 1200px; margin: 0 auto; }
footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
footer a { color: #94a3b8; text-decoration: none; font-size: .85rem; display: block; margin-bottom: .4rem; }
footer a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid #334155;
  font-size: .8rem;
}

/* ── Yükleniyor ──────────────────────────────────────── */
.yukleniyor {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: don 1s linear infinite;
}
@keyframes don { to { transform: rotate(360deg); } }

/* ── Boş Durum ───────────────────────────────────────── */
.bos-durum {
  text-align: center;
  padding: 3rem;
  color: var(--gray);
}
.bos-durum .icon { font-size: 3rem; margin-bottom: 1rem; opacity: .4; }
.bos-durum h3 { font-size: 1.1rem; color: var(--dark); margin-bottom: .5rem; }
.bos-durum p { font-size: .88rem; }

/* ── OTP Kutusu ──────────────────────────────────────── */
.otp-wrap { display: flex; gap: .5rem; justify-content: center; margin: 1.5rem 0; }
.otp-input {
  width: 50px;
  height: 58px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  color: var(--primary);
  transition: all .2s;
}
.otp-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,.12); outline: none; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ana-duzey { flex-direction: column; }
  .sidebar { width: 100%; }
  .navbar-nav .gizle-mobil { display: none; }
  .hero { padding: 3rem 1.5rem; }
}

/* ── Admin Panel ─────────────────────────────────────── */
.admin-sidebar {
  width: 240px;
  background: var(--dark);
  min-height: 100vh;
  padding: 1rem 0;
  flex-shrink: 0;
}
.admin-sidebar .logo {
  padding: 1rem 1.5rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  border-bottom: 1px solid #334155;
  margin-bottom: .5rem;
}
.admin-sidebar .logo span { color: var(--accent); }
.admin-menu { list-style: none; }
.admin-menu a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.5rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  transition: all .2s;
}
.admin-menu a:hover, .admin-menu a.aktif { background: #1e3a5f; color: #fff; }
.admin-icerik { flex: 1; padding: 1.5rem; background: #f8fafc; min-height: 100vh; }
.admin-wrap { display: flex; }

.tablo { width: 100%; border-collapse: collapse; }
.tablo th {
  background: var(--gray-light);
  padding: .7rem 1rem;
  text-align: left;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
}
.tablo td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  vertical-align: middle;
}
.tablo tr:hover td { background: var(--gray-light); }
.tablo tr:last-child td { border: none; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
}
.modal-kapat {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--gray);
  line-height: 1;
}

/* Scroll */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-light); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray); }

/* Utility */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.text-center { text-align: center; }
.text-gray { color: var(--gray); }
.text-sm { font-size: .82rem; }
.fw-bold { font-weight: 700; }
.w-100 { width: 100%; }
