/* ====== GENEL ====== */
a {
  text-decoration: none;
}

:root {
  --bg: #0f1216;
  --panel: #171b21;
  --muted: #9aa4b2;
  --text: #e8eef5;
  --brand: #3b82f6; /* birincil */
  --brand-2: #8b5cf6; /* ikincil */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* ====== NAVBAR ====== */
.navbar {
  position: sticky; /* sayfa kayınca üstte kalsın */
  top: 0;
  z-index: 1000;
  background: #0f1115;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(140%) blur(6px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-left a,
.nav-right a {
  color: #e7e9ee;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.06s ease;
}

.nav-left a:hover,
.nav-right a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-left a:active,
.nav-right a:active {
  background: rgba(255, 255, 255, 0.08);

  transform: translateY(1px);
}

.brand {
  color: #8ab4ff;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.btn-link {
  background: transparent;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand);
  color: white;
  border: 1px solid #2d6be0;
}
.btn-primary:hover {
  background: #2d6be0;
}

/* içerik navbar'a yapışık görünmesin */
header {
  margin-top: 32px;
}

/* ====== SAYFA BAŞLIKLARI ====== */
h1 {
  font-size: clamp(22px, 3vw, 32px);
  margin: 8px 0;
  text-align: center;
}

.lead {
  color: var(--muted);
  text-align: center;
  margin-bottom: 28px;
}

/* ====== KART GRID ====== */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px; /* Kartlar arası boşluk */
  justify-content: flex-start;
}

.card {
  flex: 1 1 300px; /* minimum 300px */
  max-width: 340px; /* çok büyümesin */
  background: var(--panel);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #1f2630;
  display: flex;
  flex-direction: column;
  /* hover + giriş animasyonu */
  transition: transform 0.15s ease, border-color 0.15s, opacity 0.6s ease-out;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #2a3442;
}

.thumb {
  aspect-ratio: 16/9;
  background: #111 center / cover no-repeat;
}

.body {
  padding: 20px 22px 24px;
}

.title {
  font-weight: 700;
  margin: 4px 0 14px;
  font-size: 20px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  border: 0;
  background: var(--brand);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  color: #0b1220;
}

.btn.secondary {
  background: #253041;
  color: #dbe6f3;
}

.badge {
  font-size: 13px;
  color: #cbd5e1;
  background: #232a35;
  border: 1px solid #2f3947;
  padding: 5px 10px;
  border-radius: 8px;
}

.card.disabled {
  opacity: 0.6;
  filter: saturate(0.6);
}
.card.disabled .btn {
  pointer-events: none;
  opacity: 0.5;
}

/* giriş animasyonu başlangıcı */
.card-hidden {
  opacity: 0;
  transform: translateY(40px);
}

/* ====== FOOTER ====== */
footer {
  margin-top: auto;
  color: #708198;
  text-align: center;
  padding: 24px;
}

/* ====== ÖZEL OYNA BUTONU ====== */
#bottone1 {
  color: black;
  font-size: 16px;
  padding: 18px 36px;
  border-radius: 9px;
  background: #d5f365;
  border: none;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: 0.4s;
}
#bottone1:hover {
  box-shadow: 7px 5px 56px -14px #c3d900;
}
#bottone1:active {
  transform: scale(0.97);
  box-shadow: 7px 5px 56px -10px #c3d900;
}

/* ====== ERİŞİLEBİLİRLİK (klavye odak) ====== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ====== MOBİL ====== */
@media (max-width: 720px) {
  .nav-inner {
    flex-wrap: wrap;
    gap: 8px 10px;
  }
  .nav-left {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
  .nav-right {
    margin-left: auto;
    gap: 8px;
  }
}
.nav-left a.is-active {
  background: rgba(255, 255, 255, 0.12);
}
.nav-right a.is-active {
  background: rgba(255, 255, 255, 0.12);
}
/* küçük ekranlarda menüyü daralt */
@media (max-width: 560px) {
  .nav-left {
    display: none;
  }
  .navbar.open .nav-left {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: 6px;
  }
  .hamburger {
    display: inline-flex;
  }
}
.hamburger {
  display: none;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
}
.hamburger:hover {
  background: rgba(255, 255, 255, 0.08);
}
