﻿/* ==========================================================================
   KasımSavaşı — Minimal Eğlenceli Tema
   --------------------------------------------------------------------------
   • Tutarlı değişkenler
   • Düşük özgüllük (class tabanlı, kolay override)
   • Responsive grid
   • Erişilebilir tasarım
   ========================================================================== */

/* ========== 1) KÖK DEĞİŞKENLER ========== */
.header-title h1 img {
  height: 28px;
  vertical-align: middle;
  margin-right: 8px;
}

:root {
  --brand: #0b1b3a;
  --primary: #ff3b4e;
  --primary-ink: #fff;
  --pill: #eef2ff;
  --ink: #0b1220;
  --muted: #6b7280;
  --bg: #f7f8fc;
  --card: #fff;
  --shadow: 0 10px 30px rgba(10, 17, 40, .08);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(255, 59, 78, .35);
}

/* ========== 2) GENEL AYARLAR ========== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f9fbff 0%, var(--bg) 100%);
}
img { max-width: 100%; display: block; }

:where(button, a, input, textarea) { outline: none; }
:where(button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible) {
  box-shadow: var(--focus);
  border-radius: 8px;
}

/* Konteyner */
.container { 
  max-width: 1220px;
  margin: 0 auto;
  padding: 10px 12px;
}

main.container { padding-bottom: 24px; }
body.vote-bar-visible main.container { padding-bottom: 120px; }

/* ========== 3) HEADER ========== */
.site-header {
  background: var(--brand);
  color: #fff;
  padding: 12px 0 14px;
  text-align: left;
  box-shadow: 0 8px 40px rgba(11, 27, 58, .3);
}
.header-wrap {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 8px;
  align-items: center;
}
.header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.site-header h1 {
  margin: 0;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: clamp(20px, 2.1vw + 10px, 32px);
  line-height: 1.1;
}
.deadline {
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-weight: 700;
  font-size: 12px;
}
.header-copy p {
  margin: 0;
  opacity: .92;
  line-height: 1.35;
  font-size: clamp(13px, 1vw + 9px, 16px);
}
@media (min-width: 900px) {
  .header-wrap { grid-template-columns: 1fr 1.3fr; column-gap: 24px; }
}
@media (max-width: 520px) {
  .site-header { text-align: center; }
  .header-title { justify-content: center; }
}

/* ========== 4) HOW-TO BLOĞU ========== */
.howto {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  margin: 18px 0;
}
.howto h2 { margin: 0 0 6px; }
.hint { color: var(--muted); }
.warn { margin-top: 4px; color: #b42318; font-weight: 600; }

/* ========== 6) ÜRÜN GRID & KARTLAR ========== */
.grid.products {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr)); /* ✅ sabit 5 sütun */
  align-items: stretch;
}

/* Tablet görünüm (3 sütun) */
@media (max-width: 900px) {
  .grid.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobil görünüm (2 sütun) */
@media (max-width: 600px) {
  .grid.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(10, 17, 40, .14);
}
.img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1/1;
  background: #f1f3fb;
}
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s;
}
.card:hover .img-wrap img { transform: scale(1.04); }

.card::after {
  content: '♥';
  position: absolute;
  top: 12px; right: 12px;
  font-size: 14px;
  color: #fff;
  background: rgba(0, 0, 0, .28);
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 999px;
}

.card-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.brand-inline-logo { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.name { margin: 0; font-size: 15px; line-height: 1.25; }
.desc { margin: 0; color: #5e647a; font-size: 13px; }
.price {
  margin-top: 4px;
  font-weight: 800;
  letter-spacing: .2px;
  display: inline-block;
  background: #fff1f2;
  color: #c2152a;
  padding: 6px 10px;
  border-radius: 8px;
}

/* Kart butonları */
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .1s ease;
}
.btn-outline:hover { background: var(--primary); color: var(--primary-ink); transform: translateY(-1px); }
.btn-outline.selected { background: var(--primary); color: #fff; }
.btn-link {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: #3f4780;
}
.btn-link:hover { text-decoration: underline; }

/* ========== 7) FLOATING VOTE BAR ========== */
.vote-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--brand);
  color: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(10, 17, 40, .25);
  z-index: 60;
}
.vote-bar.hidden { display: none; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 0;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-ghost { background: transparent; border: 0; color: #c7cbe0; cursor: pointer; }

/* ========== 8) MODAL ========== */
dialog::backdrop { background: rgba(8, 12, 32, .45); }
dialog {
  border: 0;
  border-radius: 16px;
  max-width: 520px;
  width: 92%;
  padding: 20px;
  box-shadow: var(--shadow);
}
.grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid { grid-template-columns: 1fr 1fr; } }
.grid label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.grid input, .grid textarea {
  border: 1.6px solid #d7dbef;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}
.grid input:focus, .grid textarea:focus { border-color: var(--primary); }
.modal-actions { margin-top: 8px; display: flex; gap: 10px; justify-content: flex-end; }
.form-error { color: #c2152a; font-weight: 700; margin-top: 8px; }

/* ========== 9) PARTNER LOGOLARI ========== */
.partners {
  margin: 40px 0 16px;
  text-align: center;
}
.partners .logos {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.partners .logos a { display: inline-flex; align-items: center; }
.partners .logos img {
  height: 28px;
  margin: 0 6px;
  opacity: 1;
  filter: none;
  transition: transform .15s ease, filter .15s ease;
}
.partners .logos img:hover { transform: translateY(-2px); }
.footnote {
  margin-top: 14px;
  color: #6f7691;
  font-style: italic;
  font-size: 14px;
}

/* ========== 10) SAYFALAMA ========== */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 24px 0 8px;
}
.load-more {
  display: inline-block;
  text-align: center;
  font-weight: 700;
}
