@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

:root {
  --dark: #1a1a2e;
  --darker: #12121f;
  --accent: #e94560;
  --accent2: #c73652;
  --light: #f8f9fa;
  --card-bg: #ffffff;
  --text: #333;
  --text-muted: #777;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(233,69,96,0.18);
  --radius: 14px;
}

body { font-family: 'Poppins', sans-serif; background: var(--light); color: var(--text); }

a { text-decoration: none; }

/* ───── NAVBAR ───── */
nav {
  background: var(--dark);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
nav .logo { color: #fff; font-size: 1.4rem; font-weight: 700; text-decoration: none; }
nav .logo span { color: var(--accent); }
nav .nav-links { display: flex; align-items: center; gap: 0.5rem; }
nav .nav-links a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  margin-left: 1rem; font-size: 0.9rem; transition: color 0.2s;
  padding: 0.4rem 0.8rem; border-radius: 6px;
}
nav .nav-links a:hover { color: var(--accent); }
nav .nav-links a.btn-nav {
  background: var(--accent); color: white;
  padding: 0.45rem 1.1rem; border-radius: 8px;
}
nav .nav-links a.btn-nav:hover { background: var(--accent2); }

/* ───── HERO ───── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 60%, #0f3460 100%);
  color: white; text-align: center; padding: 4rem 1rem 3rem;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 0.5rem; }
.hero h1 span { color: var(--accent); }
.hero p { opacity: 0.8; font-size: 1rem; margin-bottom: 2rem; }

/* ───── FİLTRE ───── */
.filter-bar {
  background: white; padding: 1.2rem 2rem;
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.filter-bar form { display:flex; gap:0.8rem; flex-wrap:wrap; width:100%; align-items:center; }
.filter-bar input, .filter-bar select {
  padding: 0.55rem 1rem; border: 1px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: 0.9rem;
  outline: none; transition: border-color 0.2s; background: white;
}
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--accent); }
.filter-bar input { flex: 1; min-width: 180px; }

/* ───── BUTONLAR ───── */
.btn {
  padding: 0.55rem 1.4rem; border: none; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-size: 0.9rem; font-weight: 500;
  transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-secondary { background: #eee; color: var(--text); }
.btn-secondary:hover { background: #ddd; }
.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.8rem; }
.btn-danger { background: #dc3545; color: white; }
.btn-danger:hover { background: #c82333; }
.btn-success { background: #28a745; color: white; }
.btn-success:hover { background: #218838; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ───── LAYOUT ───── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 2.5rem 0; }

/* ───── KART GRİDİ ───── */
.grid-ilanlar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ───── KART ───── */
.kart {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.kart:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.kart-foto { position: relative; height: 260px; overflow: hidden; background: #ddd; }
.kart-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.kart:hover .kart-foto img { transform: scale(1.05); }
.kart-foto .kategori-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: white; font-size: 0.72rem;
  padding: 3px 10px; border-radius: 20px; font-weight: 600;
}
.kart-foto .paket-badge {
  position: absolute; top: 10px; right: 10px;
  background: #ffc107; color: #333; font-size: 0.7rem;
  padding: 3px 10px; border-radius: 20px; font-weight: 700;
}
.kart-foto .no-foto {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e0e0e0, #c8c8c8); color: #999; font-size: 3rem;
}
.kart-body { padding: 1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.kart-body h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--dark); }
.kart-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.kart-meta span { margin-right: 0.6rem; }
.kart-aciklama { font-size: 0.85rem; color: #555; flex: 1; line-height: 1.5; margin-bottom: 0.8rem; }
.kart-footer {
  border-top: 1px solid var(--border); padding-top: 0.8rem;
  display: flex; align-items: center; justify-content: space-between;
}
.telefon-no {
  font-size: 0.92rem; font-weight: 600; color: var(--accent);
  text-decoration: none; display: flex; align-items: center; gap: 5px;
}
.telefon-no:hover { color: var(--accent2); }

/* ───── DETAY SAYFASI ───── */
.detay-wrapper {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; padding: 2rem 0;
}
@media(max-width:768px){ .detay-wrapper { grid-template-columns: 1fr; } }

.galeri { display: flex; flex-direction: column; gap: 0.8rem; }
.galeri-main { border-radius: var(--radius); overflow: hidden; }
.galeri-main img { width: 100%; height: 420px; object-fit: cover; cursor: pointer; display: block; }
.galeri-thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.galeri-thumbs img {
  width: 80px; height: 70px; object-fit: cover; border-radius: 8px;
  cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s;
}
.galeri-thumbs img:hover, .galeri-thumbs img.active { border-color: var(--accent); }

.detay-info { background: white; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.detay-info h1 { font-size: 1.7rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.detay-info .badge {
  display: inline-block; background: var(--accent); color: white;
  padding: 3px 12px; border-radius: 20px; font-size: 0.8rem; margin-bottom: 1rem;
}
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 1.2rem 0; }
.info-item { background: var(--light); border-radius: 8px; padding: 0.7rem 1rem; }
.info-item .label { font-size: 0.75rem; color: var(--text-muted); }
.info-item .val { font-size: 1rem; font-weight: 600; color: var(--dark); }
.aciklama-kutu {
  background: var(--light); border-radius: 10px; padding: 1rem 1.2rem;
  margin: 1rem 0; color: #555; line-height: 1.7; font-size: 0.95rem;
}
.btn-tel {
  background: var(--accent); color: white; width: 100%; text-align: center;
  padding: 0.9rem; border-radius: 10px; font-size: 1.1rem; font-weight: 600;
  margin-top: 1rem; display: block; text-decoration: none; transition: background 0.2s;
}
.btn-tel:hover { background: var(--accent2); }
.btn-wp {
  background: #25D366; color: white; width: 100%; text-align: center;
  padding: 0.8rem; border-radius: 10px; font-size: 1rem; font-weight: 600;
  margin-top: 0.5rem; display: block; text-decoration: none;
}
.btn-wp:hover { background: #1db954; }

.hit-bilgi {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border);
}
.hit-bilgi span {
  background: var(--light); border-radius: 6px; padding: 4px 10px;
  font-size: 0.78rem; color: var(--text-muted);
}

/* ───── LİGHTBOX ───── */
.lightbox {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,0.92); z-index:9999;
  align-items:center; justify-content:center;
}
.lightbox.active { display:flex; }
.lightbox img { max-width:90vw; max-height:90vh; border-radius:8px; }
.lightbox-close {
  position:absolute; top:20px; right:30px;
  color:white; font-size:2rem; cursor:pointer; line-height:1;
}

/* ───── SAYFALAMA ───── */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin: 2rem 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none;
  font-size: 0.9rem; border: 1px solid var(--border); color: var(--text);
}
.pagination a:hover { background: var(--accent); color: white; border-color: var(--accent); }
.pagination .active { background: var(--accent); color: white; border-color: var(--accent); }

/* ───── FLASH ───── */
.flash { padding: 0.9rem 1.2rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; }
.flash.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ───── BOŞALAN ───── */
.bos { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.bos .icon { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* ───── GİRİŞ / KAYIT ───── */
.auth-page {
  min-height: calc(100vh - 65px);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--dark), #0f3460);
  padding: 2rem 1rem;
}
.auth-card {
  background: white; border-radius: var(--radius);
  padding: 2.5rem 2rem; width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.auth-card h2 { text-align: center; font-size: 1.5rem; color: var(--dark); margin-bottom: 0.3rem; }
.auth-card p  { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.8rem; }

/* ───── FORMLAR ───── */
.form-card {
  background: white; border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow); max-width: 800px;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: #555; margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.65rem 1rem; border: 1px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: 0.9rem;
  outline: none; transition: border-color 0.2s; background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.foto-preview {
  width: 120px; height: 100px; object-fit: cover;
  border-radius: 8px; margin-top: 0.5rem; display: block; border: 2px dashed #ccc;
}
.foto-placeholder {
  width: 120px; height: 100px; display: flex; align-items: center;
  justify-content: center; border: 2px dashed #ccc; border-radius: 8px;
  margin-top: 0.5rem; font-size: 2rem; color: #ccc; background: #fafafa;
}

/* ───── PAKETLERİLAN VER ───── */
.paket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem; margin: 1.5rem 0;
}
.paket-kart {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.paket-kart:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.paket-header {
  background: var(--dark); color: white;
  padding: 1.2rem; text-align: center;
}
.paket-header h3 { font-size: 1.2rem; font-weight: 700; }
.paket-body { padding: 1.5rem; flex: 1; }
.paket-fiyat { font-size: 0.95rem; color: var(--text); margin-bottom: 0.5rem; }
.paket-fiyat strong { color: var(--accent); }
.paket-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); }

/* ───── PANEL (KULLANICI) ───── */
.panel-layout { display: flex; min-height: 100vh; }
.panel-sidebar {
  width: 240px; background: var(--dark); color: white;
  padding: 1.5rem 0; flex-shrink: 0; display: flex; flex-direction: column;
}
.panel-sidebar .logo {
  padding: 0 1.5rem 1.5rem; font-size: 1.2rem; font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.panel-sidebar .logo span { color: var(--accent); }
.panel-sidebar a {
  display: block; padding: 0.75rem 1.5rem;
  color: rgba(255,255,255,0.75); text-decoration: none;
  font-size: 0.9rem; transition: all 0.2s;
}
.panel-sidebar a:hover,
.panel-sidebar a.active {
  background: rgba(233,69,96,0.15); color: white;
  border-left: 3px solid var(--accent);
}
.panel-content { flex: 1; padding: 2rem; background: #f5f5f5; overflow-y: auto; }
.panel-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem;
}
.panel-header h1 { font-size: 1.4rem; font-weight: 600; color: var(--dark); }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: white; border-radius: var(--radius); padding: 1.2rem 1.5rem; box-shadow: var(--shadow); }
.stat-card .num { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-card .lbl { font-size: 0.85rem; color: var(--text-muted); }

/* ───── TABLO ───── */
.table-wrap { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
table th {
  background: var(--dark); color: white;
  padding: 0.85rem 1rem; text-align: left;
  font-size: 0.85rem; font-weight: 500;
}
table td {
  padding: 0.75rem 1rem; border-bottom: 1px solid #f0f0f0;
  font-size: 0.88rem; vertical-align: middle;
}
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: #fafafa; }
.thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.no-thumb {
  width: 52px; height: 52px; border-radius: 8px; background: #eee;
  display: inline-flex; align-items: center; justify-content: center; color: #aaa; font-size: 1.2rem;
}

/* ───── BADGES ───── */
.badge-aktif { background: #d4edda; color: #155724; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-pasif { background: #f8d7da; color: #721c24; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }

/* ───── BREADCRUMB ───── */
.breadcrumb {
  background: white; padding: 0.8rem 1.5rem; border-radius: 8px;
  margin: 1rem 0; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { color: var(--accent2); }
.breadcrumb span { color: var(--text-muted); }

/* ───── FOOTER ───── */
footer {
  background: var(--dark); color: rgba(255,255,255,0.6);
  text-align: center; padding: 1.5rem; font-size: 0.85rem;
}
footer a { color: var(--accent); }

/* ───── RESPONSİVE ───── */
@media(max-width:768px) {
  nav { padding: 0 1rem; }
  .filter-bar { padding: 1rem; }
  .grid-ilanlar { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .panel-layout { flex-direction: column; }
  .panel-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; padding: 0.5rem; }
  .panel-sidebar a { padding: 0.5rem 0.8rem; font-size: 0.8rem; }
  .paket-grid { grid-template-columns: 1fr; }
}
@media(max-width:480px) {
  .grid-ilanlar { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}
