:root{
  --bg:#0b1220;
  --card:#101a2e;
  --text:#e7eefc;
  --muted:#a9b7d0;
  --line:rgba(255,255,255,.08);
  --primary:#3b82f6;
  --primary2:#2563eb;
  --danger:#ef4444;
  --ok:#22c55e;
  --shadow:0 12px 30px rgba(0,0,0,.35);
  --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:
    radial-gradient(1200px 600px at 20% 0%, rgba(59,130,246,.18), transparent 60%),
    radial-gradient(1000px 500px at 90% 10%, rgba(34,197,94,.12), transparent 60%),
    var(--bg);
  color:var(--text);
}

a{color:inherit;text-decoration:none}

/* =========================
   CONTAINER (ORTA ALAN)
   ✅ reklam boşluğu açmaz!
   ========================= */
.container{
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 12px 40px;
  position: relative;
  z-index: 5;
}

/* NAVBAR */
.navbar{
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(10px);
  background:rgba(11,18,32,.65);
  border-bottom:1px solid var(--line);
}
.navbar .inner{
  max-width: 1400px;
  width: min(1400px, 92vw);
  margin:0 auto;
  padding:14px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
}
.badge{
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:12px;
}
.navlinks{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.navlinks a{
  padding:8px 10px;
  border-radius:10px;
  color:var(--muted);
}
.navlinks a:hover{
  background:rgba(255,255,255,.06);
  color:var(--text);
}

/* TYPOGRAPHY */
h1{margin:10px 0 14px;font-size:28px}
h2{margin:0 0 10px}
h3{margin:0 0 8px}

/* CARD */
.card{
  background:rgba(16,26,46,.92);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
}

/* GRID */
.grid{display:grid;gap:12px}
.grid-2{grid-template-columns:1fr 1fr}
@media(max-width:720px){
  .grid-2{grid-template-columns:1fr}
}

/* FORM */
input[type=text],
input[type=email],
input[type=password],
textarea,
select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
}
textarea{min-height:90px;resize:vertical}
label{color:var(--muted);font-size:13px}

/* BUTTON */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(59,130,246,.35);
  background:linear-gradient(180deg,var(--primary),var(--primary2));
  color:#fff;
  font-weight:700;
  cursor:pointer;
}
.btn:hover{filter:brightness(1.05)}
.btn.secondary{
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
}
.btn.danger{
  background:rgba(239,68,68,.15);
  border:1px solid rgba(239,68,68,.4);
  color:#ffd7d7;
}

/* FLASH */
.flash{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  margin:12px 0;
}
.flash.success{background:rgba(34,197,94,.12)}
.flash.error{background:rgba(239,68,68,.12)}
.flash.info{background:rgba(59,130,246,.12)}

/* TABLE */
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--line);
}
.table th,.table td{
  padding:12px;
  border-bottom:1px solid var(--line);
}
.table th{
  background:rgba(255,255,255,.04);
  font-size:12px;
  text-transform:uppercase;
  color:var(--muted);
}
.table tr:last-child td{border-bottom:none}

/* FOOTER */
.footer{
  margin-top:20px;
  text-align:center;
  font-size:12px;
  color:var(--muted);
}
.small{font-size:12px;color:var(--muted)}

/* =========================
   SABİT REKLAM KUTULARI (KENAR)
   ========================= */
.side-ads{
  position: fixed;
  top: 86px;
  width: 220px;
  display: grid;
  gap: 12px;
  z-index: 30;
}
.side-ads.left{ left: 12px; }
.side-ads.right{ right: 12px; }

.ad-box{
  width: 220px;
  height: 220px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color: rgba(231,238,252,.85);
  padding: 10px;
}
.ad-box img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.ad-box .label{
  font-size: 12px;
  color: rgba(231,238,252,.7);
}

/* =========================================================
   ✅ ANASAYFA İÇ LAYOUT (İÇ KOLONLAR SABİT)
   - Sol iç kolon: 220px
   - Orta içerik: esnek
   - Sağ iç kolon: 220px
   ========================================================= */
.home-layout{
  display:grid;
  grid-template-columns: 220px minmax(0,1fr) 220px;
  gap:16px;
  align-items:start;
}

.rail{
  width:220px;
  max-width:220px;
  display:grid;
  gap:16px;
  flex-shrink:0;
}

.main-col{
  min-width:0;
  overflow:hidden;
}

/* ✅ Sonradan eklenen dikey reklam alanı: 220x660 */
.tower{
  width:220px;
  height:660px;
  padding:10px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.tower a{
  width:100%;
  height:100%;
  display:block;
}
.tower img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:14px;
  display:block;
}
.tower .placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.4;
  color: rgba(231,238,252,.70);
  font-size: 13px;
  padding: 14px;
  border:2px dashed rgba(255,255,255,.18);
  border-radius:14px;
}

/* ✅ Yeni Anketler / Popüler Anketler kutuları: 220x660 */
.big-slot{
  width:220px;
  height:660px;
  max-width:220px;
  padding:12px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  overflow:auto; /* liste uzarsa içeriden scroll */
}

/* Slider taşma engeli */
#sliderWrap, #sliderWrap .slide, #sliderWrap img{
  width:100%;
  max-width:100%;
}

/* =========================================================
   ✅ RESPONSIVE
   - 1180px altı: iç kolonları kapat, tek kolona düş
   - 1199 altı: sabit kenar reklamları kapat
   ========================================================= */
@media (max-width:1180px){
  .home-layout{ grid-template-columns: 1fr; }
  .rail{ display:none; }
}

@media (max-width:1199px){
  .side-ads{ display:none; }
}
