/* themes/default/assets/style.css */
:root{
  --bg:#f6f8fc;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;
  --primary:#2563eb;
  --radius:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* layout */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:18px;
}
@media (min-width: 1200px){
  .container{ max-width:1280px; }
}
@media (min-width: 1400px){
  .container{ max-width:1440px; }
}


/* top nav */
.site-top{
  position:sticky; top:0; z-index:50;
  background:rgba(246,248,252,.9);
  backdrop-filter:saturate(1.2) blur(8px);
  border-bottom:1px solid var(--border);
}
.site-top .bar{
  max-width:1100px; margin:0 auto;
  padding:12px 16px;
  display:flex; align-items:center; gap:12px;
  justify-content:center;
}
.brand{
  font-weight:700; color:var(--text); text-decoration:none;
  margin-right:10px;
}
.nav{
  display:flex; gap:10px; flex-wrap:wrap; justify-content:center;
}
.nav a{
  text-decoration:none;
  color:var(--text);
  background:var(--card);
  border:1px solid var(--border);
  padding:8px 12px;
  border-radius:999px;
  font-size:14px;
}
.nav a:hover{border-color:#cbd5e1}
.nav a.active{
  border-color:rgba(37,99,235,.35);
  box-shadow:0 0 0 3px rgba(37,99,235,.12);
}

/* buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  text-decoration:none;
  font-weight:600;
}
.btn-primary{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}
.btn-outline{
  background:var(--card);
  color:var(--text);
}

/* cards */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:0 8px 30px rgba(15,23,42,.06);
  overflow:hidden;
}
.card-pad{padding:18px}
.muted{color:var(--muted)}

/* simple hero image */
.hero-img{
  width:100%;
  height:320px;
  object-fit:cover;
  display:block;
}
@media (max-width: 768px){
  .hero-img{height:220px}
}

/* footer */
.site-footer{
  max-width:1100px; margin:40px auto 0;
  padding:24px 16px;
  color:var(--muted);
  font-size:13px;
  text-align:center;
}

/* === NAV ACTIVE STATE === */
.nav a {
  position: relative;
  transition: all .2s ease;
}

.nav a:hover {
  background: #f1f5f9;
}

/* aktif sayfa */
.nav a.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  font-weight: 600;
}

/* aktif alt çizgi (desktop için hoş detay) */
.nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -6px;
  height: 3px;
  background: #0f172a;
  border-radius: 6px;
}

/* === RESPONSIVE NAV === */
@media (max-width: 640px) {
  .nav {
    gap: 8px;
  }

  .nav a {
    font-size: 14px;
    padding: 6px 10px;
  }

  .nav a.active::after {
    display: none; /* mobilde alt çizgi kapalı */
  }
}

.grid{display:grid;gap:14px;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:16px}
@media (max-width:1100px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:800px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.grid{grid-template-columns:1fr}}

.tile{display:block;border:1px solid var(--border);border-radius:14px;overflow:hidden;background:#fff}
.tile img{width:100%;height:220px;object-fit:cover;display:block}
@media (max-width:520px){.tile img{height:200px}}

.empty{padding:14px;border:1px dashed var(--border);border-radius:14px;background:#fff;margin-top:14px}

.rooms{display:grid;gap:14px;margin-top:16px}
.room-card{display:grid;grid-template-columns:260px 1fr;gap:14px;border:1px solid var(--border);border-radius:14px;overflow:hidden;background:#fff}
@media (max-width:800px){.room-card{grid-template-columns:1fr}}
.room-cover img{width:100%;height:220px;object-fit:cover;display:block}
.noimg{height:220px;display:flex;align-items:center;justify-content:center;color:var(--muted);background:#f8fafc}
.room-body{padding:14px}
.room-title{font-size:18px;font-weight:700;margin-bottom:6px}
.room-meta{display:flex;flex-wrap:wrap;gap:10px;color:var(--muted);font-size:13px;margin-bottom:10px}
.thumbs{display:flex;flex-wrap:wrap;gap:8px}
.thumbs img{width:64px;height:48px;object-fit:cover;border-radius:10px;border:1px solid var(--border)}
/* === HEADER SPACING OVERRIDE (force) === */

/* Üstteki boşluk (kırmızı alan 1) */
.site-header__bar{
  margin-top: 1px !important;
}

/* Menü üst/alt boşluğu (bar içi) */
.site-header__inner{
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

/* Header ile içerik arasındaki boşluk (kırmızı alan 2) */
:root{
  --hdr-gap: 4px !important;
}

/* Bazı sayfalarda body padding-top JS ile şişiyorsa bunu sabitle */
body{
  padding-top: calc(80px + 4px + 6px) !important; /* logo(80) + iç padding + ufak pay */
}
