/* Uygulamaya özel ek stiller. Tasarım ekranlarındaki (tasarim/*.html) sayfa içi stillerden alındı. */

/* Sistem koyu temasında bildirim şeridi */
@media (prefers-color-scheme: dark) {
  html:not([data-tema="acik"]) .toast { background: #F8FAFC; color: #0F172A; }
  html:not([data-tema="acik"]) .toast-geri { color: #1D4ED8; }
}

/* ---------- Açılış perdesi (01-perde) ---------- */
#perde {
  position: fixed; inset: 0; z-index: 100;
  background: var(--renk-zemin);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  text-align: center; cursor: pointer; user-select: none;
  transition: opacity .25s ease, transform .25s ease;
  animation: perde-yedek 0s linear 3.6s forwards; /* JS bozulursa */
}
#perde.kalkti { opacity: 0; transform: scale(.98); pointer-events: none; }
@keyframes perde-yedek { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) { #perde { display: none; } }
.sahne-kutu {
  width: 148px; height: 148px; border-radius: 32px;
  background: var(--renk-ana-yumusak); border: 1px solid var(--renk-ai-cizgi);
  display: flex; align-items: center; justify-content: center;
}
.kagit-1 { transform-origin: 60px 60px; animation: toplan-1 1.45s cubic-bezier(.22,1,.36,1) forwards; }
.kagit-2 { transform-origin: 60px 60px; animation: toplan-2 1.45s cubic-bezier(.22,1,.36,1) forwards; }
.ana-kart { transform-origin: 60px 60px; animation: kart-yerles 1.45s cubic-bezier(.22,1,.36,1) forwards; }
.onay-daire { transform-origin: 86px 86px; opacity: 0; animation: onay-gel .45s cubic-bezier(.22,1,.36,1) 1.05s forwards; }
@keyframes toplan-1 { 0% { transform: translate(-26px,-16px) rotate(-14deg); opacity: .4; } 55% { transform: translate(-6px,-4px) rotate(-5deg); opacity: .9; } 100% { transform: none; opacity: 0; } }
@keyframes toplan-2 { 0% { transform: translate(26px,14px) rotate(13deg); opacity: .4; } 55% { transform: translate(6px,4px) rotate(5deg); opacity: .9; } 100% { transform: none; opacity: 0; } }
@keyframes kart-yerles { 0% { transform: scale(.86) translateY(8px); opacity: .5; } 65% { transform: scale(1.03); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes onay-gel { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.marka-ad { font-size: 28px; font-weight: 800; letter-spacing: -.025em; opacity: 0; transform: translateY(8px); animation: yazi-gel .5s ease .35s forwards; }
.marka-slogan { font-size: 16px; color: var(--renk-metin-2); max-width: 280px; margin-top: 6px; opacity: 0; transform: translateY(8px); animation: yazi-gel .5s ease .55s forwards; }
@keyframes yazi-gel { to { opacity: 1; transform: none; } }

/* ---------- İlan listesi (04-ilanlar) ---------- */
.puan-satir { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 8px; border-top: 1px solid var(--renk-cizgi); font-size: 14.5px; }
.kart-alt-eylem { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 2px; }
.siralama-satir { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.siralama-sec { min-height: 40px; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--renk-cizgi); background: var(--renk-yuzey); font-size: 14px; font-weight: 600; }
.ilan-baslik-link { color: inherit; }

/* ---------- İlan detayı (05-detay) ---------- */
.zaman-cizgi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.zaman-adim { background: var(--renk-zemin); border: 1px solid var(--renk-cizgi); border-radius: 10px; padding: 8px 6px; text-align: center; font-size: 12px; }
.zaman-adim.aktif { border-color: var(--renk-ana); background: var(--renk-ana-yumusak); color: var(--renk-ana-yumusak-metin); }
.zaman-adim strong { display: block; font-size: 13px; margin-top: 2px; }
.sart-satir { display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px; border-radius: 10px; background: var(--renk-zemin); font-size: 14.5px; line-height: 1.4; }
.evrak-satir { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 10px; border-radius: 10px; background: var(--renk-zemin); }
.evrak-sol { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.evrak-sol input { width: 20px; height: 20px; accent-color: var(--renk-ana); flex-shrink: 0; }
.edevlet-link { font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: var(--renk-yuzey); border: 1px solid var(--renk-cizgi); white-space: nowrap; }
.detay-alt-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--ekran-max);
  background: var(--renk-yuzey); border-top: 1px solid var(--renk-cizgi);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 30;
}
.not-kutu { background: var(--renk-zemin); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; }
.kaynak-metin { font-size: 14px; color: var(--renk-metin-2); white-space: pre-line; }
.uzun-link { overflow-wrap: anywhere; }

/* ---------- Giriş (02) ---------- */
.adim-kart { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--renk-zemin); border: 1px solid var(--renk-cizgi); }
.adim-no { width: 30px; height: 30px; border-radius: 999px; background: var(--renk-ana); color: var(--renk-ana-metin); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hata-metin { color: var(--renk-uyari-metin); font-size: 14px; font-weight: 600; }

/* ---------- Kurulum sihirbazı (03) ---------- */
.ilerleme-ray { width: 100%; height: 6px; border-radius: 999px; background: var(--renk-yuzey-2); overflow: hidden; }
.ilerleme-dolgu { height: 100%; width: 100%; background: var(--renk-ana); border-radius: 999px; transition: transform .25s ease; transform-origin: left center; }
.secenek-kart { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--renk-cizgi); background: var(--renk-yuzey); cursor: pointer; width: 100%; text-align: left; font-size: 15.5px; font-weight: 600; }
.secenek-kart.secili { border-color: var(--renk-ana); background: var(--renk-ana-yumusak); color: var(--renk-ana-yumusak-metin); }
.sinav-satir { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--renk-cizgi); background: var(--renk-yuzey); }
.sinav-satir.secili { border-color: var(--renk-ana); }
.ozet-satir { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--renk-cizgi); font-size: 15px; }
.ozet-satir:last-child { border-bottom: 0; }
.ozet-satir span:last-child { text-align: right; color: var(--renk-metin-2); }
.sabit-alt {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--ekran-max);
  background: var(--renk-yuzey); border-top: 1px solid var(--renk-cizgi);
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 10px; z-index: 30;
}
.il-liste { display: flex; flex-direction: column; gap: 6px; max-height: 46dvh; overflow-y: auto; }
.il-secenek { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border-radius: 10px; background: var(--renk-zemin); cursor: pointer; font-size: 15px; }
.il-secenek input { width: 20px; height: 20px; accent-color: var(--renk-ana); }

/* ---------- Takvim (07) ---------- */
.takvim-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.gun-ad { font-size: 12px; font-weight: 700; color: var(--renk-metin-soluk); padding-bottom: 6px; }
.gun-hucre { min-height: 44px; border-radius: 10px; border: 1px solid transparent; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 14px; font-weight: 600; cursor: pointer; }
.gun-hucre.bos { cursor: default; }
.gun-hucre.bugun { border-color: var(--renk-ana); color: var(--renk-ana); }
.gun-hucre.secili { background: var(--renk-ana); color: var(--renk-ana-metin); }
.gun-noktalar { display: flex; gap: 3px; height: 6px; }
.gn { width: 6px; height: 6px; border-radius: 999px; }
.gn-basvuru { background: var(--renk-ana); }
.gn-kayit { background: var(--renk-son-gun-metin); }
.gun-hucre.secili .gn { background: var(--renk-ana-metin); }

/* ---------- Başvurular (08) ---------- */
.evrak-bar { height: 7px; border-radius: 999px; background: var(--renk-yuzey-2); overflow: hidden; }
.evrak-dolgu { height: 100%; background: var(--renk-ana); border-radius: 999px; }

/* ---------- Profil (11) ve yönetim (15) ---------- */
.avatar { width: 52px; height: 52px; border-radius: 14px; background: var(--renk-ana); color: var(--renk-ana-metin); font-family: var(--yazi-baslik); font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bilgi-satir { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--renk-cizgi); font-size: 15px; }
.bilgi-satir:last-child { border-bottom: 0; }
.bilgi-satir span:last-child { text-align: right; color: var(--renk-metin-2); }
.menu-link { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 8px 0; border-bottom: 1px solid var(--renk-cizgi); color: var(--renk-metin); font-weight: 600; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; cursor: pointer; font-size: 16px; }
.menu-link:last-child { border-bottom: 0; }
.link-kutu { padding: 12px 14px; border-radius: 10px; background: var(--renk-zemin); border: 1px solid var(--renk-cizgi); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; word-break: break-all; }
.uye-satir { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--renk-cizgi); }
.uye-satir:last-child { border-bottom: 0; }

/* ---------- Tercih (09) ---------- */
.sira-no { width: 28px; height: 28px; border-radius: 8px; background: var(--renk-ana-yumusak); color: var(--renk-ana-yumusak-metin); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tercih-satir { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--renk-zemin); border: 1px solid var(--renk-cizgi); border-radius: 10px; }
