/* Elle yazılan ek stiller (Tailwind derlemesi app.css'e dokunmayın). */

/* Kaydırmada belirme ([data-reveal]); yalnızca JS çalışıyorsa (html.js) gizlenir */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* Harita: JS yoksa düğmeler ve "yükleniyor" katmanı gizlenir (bağlantılar çalışmaya devam eder) */
html:not(.js) [data-map-controls],
html:not(.js) [data-map-loading] { display: none; }

/* ═══ Yönetim paneli (/admin) — .adm-* ═══ */
.adm { padding: 2.5rem 0 5rem; background: hsl(var(--background)); color: hsl(var(--foreground)); }
.adm .shell { max-width: 1100px; }
.adm .adm-narrow { max-width: 30rem; }
.adm .adm-narrow-lg { max-width: 44rem; }
.adm .adm-wide { max-width: 60rem; }
.adm-title { font-size: clamp(1.75rem, 4vw, 2.6rem); margin-top: .6rem; }
.adm-lead { margin-top: .6rem; max-width: 46rem; font-size: .95rem; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.adm-head { margin: 1.75rem 0 1.5rem; }
.adm-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.adm-h2 { font-family: Archivo, Inter, sans-serif; font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; }
.adm-help { margin-top: .4rem; font-size: .8rem; line-height: 1.5; color: hsl(var(--muted-foreground)); }
.adm-help.adm-warn { color: hsl(var(--destructive)); }
.adm-center { text-align: center; justify-content: center; }
.adm code { font-size: .85em; padding: .1em .4em; border-radius: .35rem; background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }

.adm-card { margin-top: 1.25rem; padding: 1.5rem; border: 1px solid hsl(var(--border)); border-radius: 1rem; background: hsl(var(--card)); box-shadow: 0 1px 2px hsl(0 0% 0% / .06); }
.adm-card > .adm-h2 + .adm-help { margin-bottom: 1rem; }
.adm-icon { display: inline-flex; height: 2.75rem; width: 2.75rem; align-items: center; justify-content: center; border-radius: .6rem; background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); margin-bottom: 1rem; }
.adm-subcard { margin-top: 1rem; padding: 1.1rem; border: 1px solid hsl(var(--border)); border-radius: .75rem; background: hsl(var(--background)); }
.adm-subhead { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .5rem; }
.adm-sublabel { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.adm-steps { margin: 1rem 0; padding-left: 1.2rem; list-style: decimal; font-size: .92rem; line-height: 1.7; color: hsl(var(--muted-foreground)); }
.adm-errlist { margin: .4rem 0 0 1.1rem; list-style: disc; }
.adm-empty { padding: 1rem 0; font-size: .9rem; color: hsl(var(--muted-foreground)); }

.adm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid hsl(var(--border)); }
.adm-tabs { display: flex; flex-wrap: wrap; gap: .25rem; }
.adm-tab { padding: .5rem .95rem; border-radius: 999px; font-size: .88rem; font-weight: 600; color: hsl(var(--muted-foreground)); transition: color .15s, background .15s; }
.adm-tab:hover { color: hsl(var(--foreground)); }
.adm-tab.is-active { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.adm-bar-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.adm-grid { display: grid; gap: 1rem; }
.adm-grid > * { min-width: 0; }
.adm-grid-2, .adm-grid-3, .adm-grid-4, .adm-grid-no-title { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .adm-grid-2 { grid-template-columns: 1fr 1fr; }
  .adm-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .adm-grid-no-title { grid-template-columns: 6rem 1fr; }
  .adm-span-2 { grid-column: span 2; }
}
@media (min-width: 900px) {
  .adm-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .adm-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.adm-grid > .adm-card { margin-top: 0; }
.adm-grid-3, .adm-grid-4 { margin-top: 1.25rem; }

.adm-field { margin-top: 1rem; }
.adm-grid > .adm-field { margin-top: 0; }
.adm-grid-no-title + .adm-field { margin-top: 1rem; }
.adm-card > .adm-field:first-child, .adm-subcard > .adm-field:first-of-type, .adm-form > .adm-field:first-child { margin-top: 0; }
.adm-field label { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.adm input[type=text], .adm input[type=password], .adm input[type=email], .adm input[type=tel], .adm input[type=date], .adm textarea {
  width: 100%; margin-top: .5rem; padding: .65rem .85rem; font: inherit; font-size: .9rem; color: hsl(var(--foreground));
  background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: .6rem; outline: none; transition: border-color .15s, box-shadow .15s;
  color-scheme: light;
}
.dark .adm input, .dark .adm textarea { color-scheme: dark; }
.adm textarea { resize: vertical; line-height: 1.55; }
.adm input:focus, .adm textarea:focus { border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / .18); }
.adm input[readonly] { opacity: .65; cursor: not-allowed; }
.adm input::placeholder, .adm textarea::placeholder { color: hsl(var(--muted-foreground) / .7); }

.adm-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.adm-rowline { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.adm-rowline input[type=text] { margin-top: 0; flex: 1 1 12rem; width: auto; min-width: 0; }
.adm-rowline .adm-w-36 { flex: 0 0 9rem; }
.adm-rowline .adm-w-48 { flex: 0 0 12rem; }
.adm-range { display: flex; flex: 1 1 12rem; align-items: center; gap: .75rem; }
.adm-range input[type=range] { width: 100%; margin: 0; accent-color: hsl(var(--primary)); }
.adm-range output { width: 3rem; text-align: right; font-size: .85rem; font-weight: 600; color: hsl(var(--muted-foreground)); }
.adm-card [data-add] { margin-top: 1rem; }

.adm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .65rem 1.3rem; border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; text-decoration: none; }
.adm-btn:disabled { opacity: .6; cursor: not-allowed; }
.adm-btn-sm { padding: .45rem .9rem; font-size: .8rem; }
.adm-btn-block { width: 100%; padding-top: .8rem; padding-bottom: .8rem; margin-top: 1.25rem; }
.adm-btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); box-shadow: 0 1px 2px hsl(0 0% 0% / .15); }
.adm-btn-primary:hover { box-shadow: 0 6px 18px hsl(var(--primary) / .35); }
.adm-btn-ghost { border-color: hsl(var(--border)); color: hsl(var(--foreground)); background: transparent; }
.adm-btn-ghost:hover { border-color: hsl(var(--primary) / .5); color: hsl(var(--primary)); }
.adm-btn-danger { background: hsl(var(--destructive)); color: #fff; }
.adm-btn-danger:hover { filter: brightness(1.08); }
.adm-btn-danger-ghost { border-color: hsl(var(--border)); color: hsl(var(--foreground)); background: transparent; }
.adm-btn-danger-ghost:hover { border-color: hsl(var(--destructive) / .6); color: hsl(var(--destructive)); }
.adm-btn:focus-visible, .adm-iconbtn:focus-visible, .adm-tab:focus-visible, .adm-link:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }
.adm-iconbtn { display: inline-flex; height: 2.25rem; width: 2.25rem; flex: none; align-items: center; justify-content: center; border: 1px solid hsl(var(--border)); border-radius: .6rem; color: hsl(var(--muted-foreground)); background: transparent; cursor: pointer; transition: border-color .15s, color .15s; }
.adm-iconbtn:hover { border-color: hsl(var(--destructive) / .6); color: hsl(var(--destructive)); }
.adm-link { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 3px; }
.adm-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; align-items: center; }

.adm-savebar { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

.adm-alert { margin: 1rem 0 0; padding: .8rem 1rem; border: 1px solid; border-radius: .75rem; font-size: .88rem; line-height: 1.55; }
.adm-alert-ok { border-color: hsl(142 55% 40% / .45); background: hsl(142 55% 40% / .12); color: hsl(var(--foreground)); }
.adm-alert-err { border-color: hsl(var(--destructive) / .5); background: hsl(var(--destructive) / .1); color: hsl(var(--foreground)); }

.adm-badge { display: inline-flex; align-items: center; padding: .2rem .6rem; border: 1px solid hsl(var(--border)); border-radius: 999px; font-size: .68rem; font-weight: 600; letter-spacing: .05em; white-space: nowrap; color: hsl(var(--muted-foreground)); }
.adm-badge-primary { border-color: hsl(var(--primary) / .5); color: hsl(var(--primary)); }
.adm-badge-accent { background: hsl(var(--accent)); border-color: transparent; color: hsl(var(--accent-foreground)); }

.adm-list-card { padding: .5rem 1.25rem; }
.adm-list-card > .adm-h2 { margin-top: 1rem; }
.adm-list { margin: 0; padding: 0; list-style: none; }
.adm-item { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: 1rem 0; border-bottom: 1px solid hsl(var(--border)); }
.adm-item:last-child { border-bottom: 0; }
.adm-item-main { flex: 1 1 18rem; min-width: 0; }
.adm-item-title { font-size: .95rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.adm-item-meta { margin-top: .25rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .78rem; color: hsl(var(--muted-foreground)); overflow-wrap: anywhere; }
.adm-item-actions { display: flex; flex-wrap: wrap; gap: .4rem; }

.adm-stat { display: flex; flex-direction: column; gap: .25rem; }
.adm-stat-n { font-family: Archivo, Inter, sans-serif; font-size: 2.2rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.adm-stat-l { font-size: .78rem; color: hsl(var(--muted-foreground)); }
.adm-tile { display: block; transition: border-color .15s, transform .15s; }
.adm-tile:hover { border-color: hsl(var(--primary) / .5); transform: translateY(-2px); }
.adm-tile h2 { margin-top: .75rem; font-family: Archivo, Inter, sans-serif; font-size: 1.05rem; font-weight: 700; }
.adm-tile p { margin-top: .4rem; font-size: .85rem; line-height: 1.55; color: hsl(var(--muted-foreground)); }
.adm-row-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
@media (prefers-reduced-motion: reduce) { .adm-tile, .adm-btn, .adm-iconbtn { transition: none; } .adm-tile:hover { transform: none; } }

/* Mobil sahne alanı: gündüz temasında video olmadığı için boş yer kaplamasın */
html:not(.dark) [data-stage] { display: none; }
