/* ───────────────────────────────────────────────────────
   Yaz Okulu — sayfa özel stiller
   Bağımlılıklar: styles.css (önce yüklenmeli)
─────────────────────────────────────────────────────── */

/* ── Hero ────────────────────────────────────────────── */

#yaz-okulu-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a0a;
}

.yaz-hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  background: radial-gradient(ellipse 75% 80% at 50% 50%, rgba(160, 95, 10, 0.11) 0%, transparent 70%);
}

/* Güneş ışınları SVG */
.sun-rays {
  width: min(900px, 140vw);
  height: min(900px, 140vw);
  animation: sunRotate 120s linear infinite;
  flex-shrink: 0;
}

@keyframes sunRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Hero içerik */
.yaz-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 140px 24px 80px;
  max-width: 820px;
}

.yaz-hero-eyebrow {
  margin-bottom: 18px;
}

.yaz-hero-title {
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(3.6rem, 9vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #e8e8e8;
  margin: 0 0 20px;
}

.yaz-hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: #666;
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 26px 0 38px;
}

.hero-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50px;
  padding: 7px 15px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.hero-badge:hover {
  color: #e8e8e8;
  border-color: rgba(124, 19, 17, 0.45);
  background: rgba(124, 19, 17, 0.08);
}

.yaz-hero-cta {
  display: inline-block;
}

/* ── Yaprak süslemeleri ──────────────────────────────── */

.leaf-motif {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.leaf-motif--hero-r {
  width: 150px;
  height: 200px;
  top: 18%;
  right: 5%;
  transform: rotate(22deg);
}

.leaf-motif--hero-l {
  width: 100px;
  height: 133px;
  bottom: 16%;
  left: 5%;
  transform: rotate(-38deg) scaleX(-1);
}

#donemler {
  position: relative;
  overflow: hidden;
}

.leaf-motif--donemler {
  width: 130px;
  height: 173px;
  top: 20px;
  right: -10px;
  transform: rotate(12deg);
}

#kayit {
  position: relative;
  overflow: hidden;
}

.leaf-motif--kayit {
  width: 110px;
  height: 147px;
  bottom: 60px;
  left: -20px;
  transform: rotate(-28deg);
}

/* ── Bilgi şeridi ─────────────────────────────────────── */

#yaz-info {
  padding: 80px 0;
  background: #0c0c0c;
}

/* ── Dönem Seçimi ─────────────────────────────────────── */

#donemler {
  padding: 100px 0;
  background: #0a0a0a;
}

.donem-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 48px;
}

.donem-card {
  position: relative;
  background: #141414;
  border: 2px solid #242424;
  border-radius: 18px;
  padding: 26px 18px 22px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.28s, box-shadow 0.28s, transform 0.28s, background 0.28s;
  user-select: none;
  overflow: hidden;
}

.donem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124, 19, 17, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 0 0 2px 2px;
}

@media (hover: hover) {
  .donem-card:hover {
    border-color: #353535;
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  }
  .donem-card:hover::before {
    opacity: 0.5;
  }
}

.donem-card.selected {
  border-color: #7c1311;
  background: rgba(124, 19, 17, 0.06);
  box-shadow: 0 0 0 1px rgba(124, 19, 17, 0.18),
              0 18px 44px rgba(124, 19, 17, 0.20);
  transform: translateY(-7px);
}

.donem-card.selected::before {
  opacity: 1;
}

/* Kart numarası */
.donem-card-num {
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: rgba(124, 19, 17, 0.18);
  line-height: 1;
  margin-bottom: 10px;
  transition: color 0.28s;
}

.donem-card.selected .donem-card-num {
  color: rgba(124, 19, 17, 0.45);
}

/* Güneş ikonu */
.donem-card-sun {
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  color: rgba(124, 19, 17, 0.28);
  transition: color 0.28s, transform 0.4s;
}

.donem-card-sun svg {
  width: 100%;
  height: 100%;
}

.donem-card:hover .donem-card-sun,
.donem-card.selected .donem-card-sun {
  color: rgba(124, 19, 17, 0.65);
  transform: rotate(30deg);
}

/* Tarihler */
.donem-card-dates {
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #d8d8d8;
  line-height: 1.45;
  margin-bottom: 6px;
}

.donem-card-dates span {
  color: #777;
  font-size: 0.92rem;
}

/* Alt etiket */
.donem-card-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #444;
  margin-top: 4px;
  transition: color 0.28s;
}

.donem-card.selected .donem-card-label {
  color: rgba(124, 19, 17, 0.65);
}

/* Onay işareti */
.donem-card-check {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 22px;
  height: 22px;
  background: #7c1311;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.donem-card-check svg {
  width: 11px;
  height: 11px;
}

.donem-card.selected .donem-card-check {
  opacity: 1;
  transform: scale(1);
}

/* Dönem grid shake animasyonu */
@keyframes donemShake {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-9px); }
  30%       { transform: translateX(9px); }
  45%       { transform: translateX(-6px); }
  60%       { transform: translateX(6px); }
  78%       { transform: translateX(-3px); }
  90%       { transform: translateX(3px); }
}

.donem-grid.shake {
  animation: donemShake 0.5s ease;
}

/* ── Kayıt Formu ─────────────────────────────────────── */

#kayit {
  padding: 100px 0;
  background: #0c0c0c;
}

.kayit-wrap {
  max-width: 640px;
  margin: 48px auto 0;
}

/* Seçili dönem badge */
.kayit-selected-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 19, 17, 0.07);
  border: 1px solid rgba(124, 19, 17, 0.22);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #b0b0b0;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.kayit-selected-badge.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.kayit-selected-badge > svg {
  color: #7c1311;
  flex-shrink: 0;
}

.kayit-selected-badge strong {
  color: #e8e8e8;
  font-weight: 600;
}

.kayit-badge-change {
  margin-left: auto;
  font-size: 0.75rem;
  color: #7c1311;
  text-decoration: none;
  font-weight: 500;
  flex-shrink: 0;
  transition: color 0.2s;
}

.kayit-badge-change:hover {
  color: #ff2c29;
}

/* Çocuk bilgi notu */
.cocuk-bilgi-notu {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(251, 191, 36, 0.04);
  border-left: 3px solid rgba(251, 191, 36, 0.35);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin-bottom: 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.83rem;
  color: #777;
}

.cocuk-bilgi-notu > svg {
  color: rgba(251, 191, 36, 0.55);
  flex-shrink: 0;
}

.cocuk-bilgi-notu strong {
  color: #c8c8c8;
  font-weight: 600;
}

/* Dönem seçilmemiş uyarısı */
.donem-uyari {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #ef4444;
}

.donem-uyari.visible {
  display: flex;
}

/* Date input dark styling */
input[type="date"] {
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.65);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 0.9;
}

/* ── Broşür & Görsel ─────────────────────────────────── */

#materyal {
  padding: 100px 0;
  background: #0a0a0a;
}

.materyal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.materyal-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #222;
  background: #111;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: default;
}

@media (hover: hover) {
  .materyal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55),
                0 0 40px rgba(124, 19, 17, 0.12);
  }
}

.materyal-card img {
  width: 100%;
  display: block;
}

.materyal-card-label {
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #555;
  padding: 14px 18px;
  border-top: 1px solid #1e1e1e;
}

/* ── Dönem hero animasyon (CSS) ──────────────────────── */

@keyframes yasFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.yaz-hero-eyebrow { animation: yasFadeUp 0.7s ease both; animation-delay: 0.25s; }
.yaz-hero-title   { animation: yasFadeUp 0.7s ease both; animation-delay: 0.55s; }
.yaz-hero-sub     { animation: yasFadeUp 0.65s ease both; animation-delay: 0.85s; }
.hero-badge-row   { animation: yasFadeUp 0.65s ease both; animation-delay: 1.05s; }
.yaz-hero-cta     { animation: yasFadeUp 0.6s ease both;  animation-delay: 1.25s; }

/* ── Mobil kırılım noktaları ─────────────────────────── */

/* Tablet büyük (1101px ve altı) — 3+2 yerleşim */
@media (max-width: 1100px) {
  .donem-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .donem-card                  { grid-column: span 2; }
  .donem-card:nth-child(4)     { grid-column: 2 / 4; }
  .donem-card:nth-child(5)     { grid-column: 4 / 6; }
}

/* Tablet küçük (769–900px) */
@media (max-width: 900px) {
  .yaz-hero-title {
    font-size: clamp(2.8rem, 7vw, 4rem);
  }
}

/* Mobil büyük (481–768px) — 2 sütun */
@media (max-width: 768px) {
  .yaz-hero-content {
    padding: 110px 20px 60px;
  }

  .donem-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .donem-card                  { grid-column: span 1; }
  .donem-card:nth-child(4)     { grid-column: span 1; }
  .donem-card:nth-child(5)     { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; }

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

  .leaf-motif--hero-r,
  .leaf-motif--hero-l {
    display: none;
  }

  .sun-rays {
    width: 520px;
    height: 520px;
  }

  .kayit-selected-badge {
    flex-wrap: wrap;
  }

  .kayit-badge-change {
    margin-left: 0;
    width: 100%;
    text-align: right;
  }
}

/* Mobil küçük (≤480px) — tek sütun */
@media (max-width: 480px) {
  .donem-grid {
    grid-template-columns: 1fr;
  }

  .donem-card:nth-child(5) {
    grid-column: span 1;
    max-width: 100%;
    margin: 0;
  }

  #yaz-info,
  #donemler,
  #kayit,
  #materyal {
    padding: 70px 0;
  }
}
