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

/* =========================
   1. RENKLER VE TEMALAR
========================= */

:root {
  --bg: #f7f7f1;
  --card: #fcfcf8;
  --ink: #1d3028;
  --muted: #6b7c71;
  --sage: #c0d0b1;
  --border: #cbd4c9;
  --accent: #557b59;
  --shadow: 0 12px 35px rgba(29, 48, 40, 0.06);
}

body.dark {
  --bg: #18241e;
  --card: #25362c;
  --ink: #f1f4ec;
  --muted: #b3c0b7;
  --sage: #46674c;
  --border: #526958;
  --accent: #b9d4b6;
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
}

/* =========================
   2. GENEL
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px Montserrat, Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 11px 16px;
  background: transparent;
  color: var(--ink);
  transition: background 0.2s, transform 0.2s;
}

button:hover,
button.active {
  background: var(--sage);
}

button:active {
  transform: scale(0.98);
}

button.filled,
.primary {
  background: var(--sage);
  border: 0;
  font-weight: 700;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

a {
  color: var(--accent);
}

/* =========================
   3. ÜST MENÜ
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.head-inner {
  max-width: 1320px;
  margin: auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font: 30px 'Playfair Display', serif;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.brand small {
  display: block;
  font: 700 9px Montserrat, Arial, sans-serif;
  letter-spacing: 3px;
  color: var(--ink);
}

nav,
.actions {
  display: flex;
  gap: 7px;
  align-items: center;
}

nav button {
  border: 0;
}

.actions {
  flex-wrap: wrap;
}

#locationButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

#locationButton:hover {
  background: var(--sage);
  color: var(--ink);
}

/* =========================
   4. CANLI SKOR BANDI
========================= */

.ticker {
  max-width: 1320px;
  margin: 18px auto 0;
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 15px 20px;
  color: var(--muted);
}

/* =========================
   5. ANA SAYFA YERLEŞİMİ
========================= */

.shell {
  max-width: 1320px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 30px;
  padding: 0 24px;
  align-items: start;
}

#main {
  min-width: 0;
}

/*
  Sayfa sınıflarını sonraki adımda
  JavaScript üzerinden ekleyeceğiz.

  body.page-maclar
  body.page-mekanlar
  body.page-harita
  body.page-hakkinda
*/

/* Maçlar: solda puan durumu */
body.page-maclar .shell {
  grid-template-columns: 265px minmax(0, 1fr);
}

/* Mekanlar: solda filtreler */
body.page-mekanlar .shell {
  grid-template-columns: 265px minmax(0, 1fr);
}

/* Harita: tam genişlik */
body.page-harita .shell {
  grid-template-columns: minmax(0, 1fr);
}

/* Hakkında: tam genişlik */
body.page-hakkinda .shell {
  grid-template-columns: minmax(0, 1fr);
}

/* =========================
   6. FİLTRE PANELİ
========================= */

.filters {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  height: max-content;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow);
}

.filters h3 {
  font-size: 11px;
  letter-spacing: 2px;
  margin: 0 0 25px;
  color: var(--accent);
  line-height: 1.7;
}

/*
  Filtreleri yalnızca Mekanlar
  sayfasında göstereceğiz.
*/

body.page-maclar .filters,
body.page-harita .filters,
body.page-hakkinda .filters {
  display: none;
}

body.page-mekanlar .filters {
  display: block;
}

label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 700;
  margin-bottom: 20px;
}

input,
select,
textarea {
  display: block;
  margin-top: 9px;
  width: 100%;
  padding: 13px 15px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  outline: none;
}

textarea {
  border-radius: 15px;
  min-height: 90px;
}

.wide {
  width: 100%;
}

.hint,
.muted {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}

/* =========================
   7. PUAN DURUMU PANELİ
========================= */

/*
  HTML ve veri bağlantısını
  sonraki adımda oluşturacağız.
*/

.standings-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow);
}

.standings-panel h3 {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--accent);
}

.standings-league {
  margin-bottom: 15px;
}

.standings-league select {
  margin: 0;
  width: 100%;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.standings-table th {
  text-align: left;
  padding: 10px 5px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.standings-table td {
  padding: 11px 5px;
  border-bottom: 1px solid var(--border);
}

.standings-table tr:last-child td {
  border-bottom: none;
}

.standings-table td:last-child,
.standings-table th:last-child {
  text-align: right;
  font-weight: 700;
}

.standings-team {
  display: flex;
  align-items: center;
  gap: 7px;
}

.standings-team img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.standings-note {
  margin-top: 15px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================
   8. BAŞLIKLAR VE İÇERİK
========================= */

h1,
h2 {
  font-family: 'Playfair Display', serif;
}

h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.22;
  margin: 10px 0 20px;
}

h2 {
  font-size: 26px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
}

.intro {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  align-items: center;
  margin-bottom: 30px;
}

.intro p {
  max-width: 380px;
  color: var(--muted);
  line-height: 1.9;
}

.section-head {
  margin: 30px 0 16px;
}

/* =========================
   9. KARTLAR
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.card h3 {
  margin: 0 0 8px;
}

.card p {
  line-height: 1.7;
  color: var(--muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0;
}

.pill {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 10px;
  font-size: 11px;
}

.team {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-weight: 700;
}

.count {
  color: var(--accent);
  font-size: 12px;
}

/* =========================
   10. MEKAN FOTOĞRAF GALERİSİ
========================= */

/*
  Mekan kartlarına fotoğraf geçişi
  eklendiğinde kullanılacak.
*/

.venue-gallery {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  border-radius: 17px;
  margin-bottom: 15px;
  background: var(--sage);
}

.venue-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  padding: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  border: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

.gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

/* =========================
   11. MAÇ KARTLARI
========================= */

.match-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.match-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 18, 0.72);
  pointer-events: none;
}

.match-card > * {
  position: relative;
  z-index: 1;
}

.match-card .team,
.match-card .eyebrow,
.match-card .count {
  color: #ffffff;
}

.match-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.match-logos img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.match-stadium {
  font-size: 12px;
  color: #e4eae5;
}

.match-countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

/* =========================
   12. HARİTA
========================= */

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
}

.map {
  height: 490px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-side {
  max-height: 490px;
  overflow: auto;
}

.map-side .card {
  margin-bottom: 10px;
  padding: 14px;
}

#nearestVenueButton {
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* =========================
   13. DETAYLAR
========================= */

.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
}

/* =========================
   14. MODAL
========================= */

.modal-card {
  position: relative;
  width: min(540px, 90vw);
  max-height: 85vh;
  overflow: auto;
  padding: 32px;
}

dialog {
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 20px 70px #0004;
}

dialog::backdrop {
  background: #17251dbb;
  backdrop-filter: blur(4px);
}

.close {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 7px 12px;
}

/* =========================
   15. YARDIMCI ALANLAR
========================= */

.empty {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 20px;
}

.notice {
  background: var(--sage);
  padding: 12px 15px;
  border-radius: 12px;
  margin: 15px 0;
}

.links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.links a {
  color: var(--accent);
}

/* =========================
   16. RESPONSIVE - TABLET
========================= */

@media (max-width: 1100px) {
  .head-inner {
    flex-wrap: wrap;
  }

  .actions {
    flex-wrap: wrap;
  }

  .shell {
    gap: 20px;
    grid-template-columns: 230px minmax(0, 1fr);
  }

  body.page-maclar .shell,
  body.page-mekanlar .shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }
}

@media (max-width: 1000px) {
  .grid,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-side {
    max-height: none;
  }
}

/* =========================
   17. RESPONSIVE - MOBİL
========================= */

@media (max-width: 700px) {
  .shell,
  body.page-maclar .shell,
  body.page-mekanlar .shell,
  body.page-harita .shell,
  body.page-hakkinda .shell {
    display: block;
    padding: 0 12px;
    margin-top: 20px;
  }

  .filters,
  .standings-panel {
    position: static;
    margin-bottom: 24px;
  }

  .head-inner {
    padding: 10px;
  }

  .brand {
    font-size: 23px;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  nav button {
    padding: 9px 6px;
  }

  .actions button {
    padding: 7px;
    font-size: 11px;
  }

  #locationButton {
    font-size: 11px;
  }

  .intro,
  .detail {
    display: block;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .map {
    height: 350px;
  }

  .map-layout {
    display: block;
  }

  .map-side {
    margin-top: 18px;
  }

  .match-logos img {
    width: 42px;
    height: 42px;
  }
}
