/* Kayıt sayfası, aydınlatma metni ve yönetim paneli için ortak stiller (style.css'in üzerine). */

[hidden] { display: none !important; }

body.duz { background: var(--bg-alt); }
.bar { background: #fff; border-bottom: 1px solid var(--line); }
.bar__in { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bar__in img { height: 40px; width: auto; }
.bar__in .link::after { content: none; }
.bar__sag { display: flex; align-items: center; gap: 16px; font-size: .95rem; }

.sayfa { padding-block: 40px 72px; }
.dar { max-width: 760px; }
.kart { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 4vw, 36px); }
.kart + .kart { margin-top: 16px; }
.sayfa h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.15; font-weight: 800; margin: 0 0 12px; }
.sayfa h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 12px; }
.yukleniyor { color: var(--muted); padding: 40px 0; }

/* Etkinlik başlığı */
.etk__meta { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text); font-weight: 500; }
.etk__meta li::before { content: "· "; color: var(--accent); font-weight: 800; }
.etk__meta li:first-child::before { content: none; }
.etk__aciklama { margin: 0; color: var(--muted); white-space: pre-line; }
.rozet { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--bg-alt); color: var(--text); border: 1px solid var(--line); }
.rozet--yesil { background: #E8F7EE; color: #17663A; border-color: #BFE6CD; }
.rozet--sari { background: #FFF6E0; color: #8A5A00; border-color: #F5DFA3; }
.rozet--kirmizi { background: #FDECEF; color: #A3123F; border-color: #F6C3D1; }
.rozet--gri { background: #F1EFF4; color: var(--muted); }

/* Form */
.form { display: grid; gap: 18px; }
.form__iki { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.alan { display: grid; gap: 6px; }
.alan > span { font-weight: 600; font-size: .95rem; color: var(--ink); }
.alan > span small { font-weight: 400; color: var(--muted); }
.alan input, .alan select, .alan textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #D5D0DC; border-radius: 8px;
  font: 400 1rem/1.4 var(--font); color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.alan textarea { min-height: 96px; resize: vertical; }
.alan input:focus, .alan select:focus, .alan textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 17, 95, .15); }
.alan .ipucu { font-size: .85rem; color: var(--muted); }
.onay { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.onay input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.onay a { color: var(--accent); }
.gizli-alan { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__hata { margin: 0; padding: 12px 14px; border-radius: 8px; background: #FDECEF; color: #A3123F; font-weight: 500; }
.form__hata:empty { display: none; }
.form button[type="submit"] { justify-self: start; min-width: 200px; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* Sonuç */
.sonuc { text-align: center; padding-block: 12px; }
.sonuc__isaret { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: #fff; background: #1E9E58; }
.sonuc--yedek .sonuc__isaret { background: var(--orange); }
.sonuc p { color: var(--muted); max-width: 46ch; margin: 0 auto 20px; }
.sonuc .butonlar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.etk-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.etk-liste a.etk-satir { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.etk-liste a.etk-satir:hover { border-color: var(--accent); }
.etk-liste b { display: block; color: var(--ink); font-size: 1.05rem; }
.etk-liste span { color: var(--muted); font-size: .92rem; }

/* Metin sayfası (aydınlatma) */
.metin h2 { margin-top: 28px; }
.metin p, .metin li { color: var(--text); }
.metin ul { padding-left: 20px; }
.not-kutusu { padding: 12px 14px; border-radius: 8px; background: #FFF6E0; color: #6B4700; font-size: .92rem; }

/* ---------- Yönetim paneli ---------- */
.panel { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.panel__yan { position: sticky; top: 16px; display: grid; gap: 10px; }
.panel__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: calc(100vh - 160px); overflow: auto; }
.panel__liste button {
  width: 100%; text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  display: grid; gap: 4px;
}
.panel__liste button:hover { border-color: #CFC8D8; }
.panel__liste button[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.panel__liste b { color: var(--ink); font-size: .97rem; line-height: 1.3; }
.panel__liste small { color: var(--muted); font-size: .82rem; }
.sayilar { display: flex; flex-wrap: wrap; gap: 6px; }

.ust-satir { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.ust-satir h2 { margin: 0 0 6px; font-size: 1.5rem; }
.araclar { display: flex; flex-wrap: wrap; gap: 8px; }
.btn--kucuk { height: 38px; padding: 0 14px; font-size: .9rem; }
.btn--tehlike { background: #fff; color: #A3123F; border-color: #F0B8C8; }
.btn--tehlike:hover { background: #FDECEF; border-color: #A3123F; }

.ozet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.ozet div { background: #fff; padding: 12px 14px; }
.ozet b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.ozet span { font-size: .85rem; color: var(--muted); }

.suzgec { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.suzgec input { flex: 1 1 220px; min-height: 40px; padding: 8px 12px; border: 1px solid #D5D0DC; border-radius: 8px; font: inherit; }
.sekmeler { display: flex; gap: 4px; flex-wrap: wrap; }
.sekmeler button { height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .88rem; font-weight: 600; color: var(--text); }
.sekmeler button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.tablo-kap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.tablo { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 760px; }
.tablo th, .tablo td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--text); font-weight: 400; }
.tablo thead th { background: #FBFAF8; font-weight: 700; color: var(--ink); white-space: nowrap; }
.tablo tbody tr:last-child td { border-bottom: 0; }
.tablo td small { color: var(--muted); display: block; }
.tablo select { min-height: 34px; border-radius: 6px; border: 1px solid #D5D0DC; padding: 4px 6px; font: inherit; font-size: .9rem; }
.tablo tr[data-durum="katildi"] td:first-child { box-shadow: inset 3px 0 0 #1E9E58; }
.tablo tr[data-durum="yedek"] td:first-child { box-shadow: inset 3px 0 0 var(--orange); }
.tablo tr[data-durum="iptal"] td { color: var(--muted); text-decoration: line-through; }
.tablo tr[data-durum="iptal"] td:last-child, .tablo tr[data-durum="iptal"] td:nth-last-child(2) { text-decoration: none; }
.ikon-btn { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 1rem; line-height: 1; }
.ikon-btn:hover { color: #A3123F; border-color: #F0B8C8; }
.bos { padding: 32px; text-align: center; color: var(--muted); }

.duzenle { margin-bottom: 16px; }
.duzenle[hidden] { display: none; }
.form__alt { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.bildirim {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 500; font-size: .95rem;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
}
.giris { max-width: 420px; margin: 8vh auto 0; }

@media (max-width: 920px) {
  .panel { grid-template-columns: 1fr; }
  .panel__yan { position: static; }
  .panel__liste { max-height: 240px; }
}

@media (max-width: 600px) {
  .form__iki { grid-template-columns: 1fr; }
  .form button[type="submit"] { width: 100%; }
  .ozet { grid-template-columns: repeat(2, 1fr); }
  .bar__in img { height: 34px; }
  .sayfa { padding-block: 24px 56px; }
}
