/* ==========================================================================
   Uluşehir Gayrimenkul — Tasarım sistemi
   Renkler doğrudan kurumsal logodan türetilmiştir.
   ========================================================================== */

:root {
  /* Marka — logodan örneklenen değerler */
  --brand-600: #005a96;
  --brand-500: #0071bc;
  --brand-400: #1a8ad4;
  --brand-300: #2c8fb8;
  --brand-200: #6bc0e2;
  --brand-deep: #176c93;
  --lime-500: #8ab00d;
  --lime-400: #a0c910;
  --lime-300: #b9e226;
  --olive: #92a441;

  /* Zemin katmanları */
  --bg-000: #04090f;
  --bg-050: #060e18;
  --bg-100: #08131f;
  --bg-200: #0b1a2a;
  --bg-300: #102437;
  --bg-400: #163149;

  /* Metin */
  --text: #eaf2f8;
  --text-strong: #ffffff;
  --muted: #9db2c6;
  /* Kartta 5,05:1, zeminde 5,98:1 — eski #6d8299 kartta AA sınırının altındaydı. */
  --faint: #7f94aa;

  /* Birincil dolgu: logonun kule mavisi; beyaz metinle 5,37:1. */
  --fill: #1b7299;
  --fill-hover: #176c93;

  /* Çizgi ve cam — çizgiler beyaz yerine soluk mürekkep tonundan türer. */
  --line: rgba(157, 178, 198, 0.14);
  --line-strong: rgba(157, 178, 198, 0.24);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.075);

  /* Durum renkleri */
  --ok: #35c98a;
  --warn: #f2b544;
  --danger: #f3695f;
  --info: var(--brand-400);

  /* Yükseklik — üç katmanlı gölge ile gerçek derinlik hissi */
  --sh-1: 0 1px 2px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .22);
  --sh-2: 0 2px 4px rgba(0, 0, 0, .3), 0 8px 20px rgba(0, 0, 0, .28);
  --sh-3: 0 4px 8px rgba(0, 0, 0, .32), 0 18px 42px rgba(0, 0, 0, .38);
  --sh-4: 0 8px 16px rgba(0, 0, 0, .34), 0 34px 80px rgba(0, 0, 0, .46);
  --glow: 0 0 0 1px rgba(26, 138, 212, .35), 0 12px 40px rgba(0, 113, 188, .28);

  /* Yarıçap */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Tipografi */
  --font-display: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Ölçek */
  --shell: 1240px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Üst bar yüksekliği; iç sayfa başlıkları ve kaydırma payı buna göre hizalanır. */
  --hdr-h: 76px;

  /*
   * Danışman fotoğraf çerçevesi. Fotoğraflar kullanıcı isteğiyle doğrudan beyaz
   * zeminde gösterilir; paspartu kartın biraz açığı, iç kenar ince çizgi.
   */
  --frame-paper: #ffffff;
  --frame-ink: #16445e;
  --frame-mat: rgba(157, 178, 198, .075);
  --frame-tone: none;
}

@media (max-width: 899.98px) {
  :root { --hdr-h: 64px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

/*
 * `hidden` özniteliği her koşulda gizlemeli.
 *
 * Tarayıcının kendi `[hidden] { display: none }` kuralı, yazarın yazdığı
 * herhangi bir `display` bildiriminden zayıftır. `.login-screen { display: grid }`
 * gibi bir kural olduğunda `el.hidden = true` görsel olarak hiçbir şey yapmaz.
 * Bu yüzden kural burada `!important` ile yeniden tanımlanır.
 */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Sayfa boyunca çok yumuşak marka ışıması — düz siyahtan kaçınır */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 600px at 12% -8%, rgba(0, 113, 188, .16), transparent 62%),
    radial-gradient(900px 520px at 92% 8%, rgba(44, 143, 184, .12), transparent 60%),
    radial-gradient(760px 520px at 50% 108%, rgba(160, 201, 16, .07), transparent 62%);
  pointer-events: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.022em;
  color: var(--text-strong);
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5.2vw, 3.9rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; color: var(--muted); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-200); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--lime-300); }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--lime-400);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: rgba(160, 201, 16, .3); color: #fff; }

/* Kaydırma çubuğu */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .13); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .24); background-clip: content-box; }

/* ==========================================================================
   Yerleşim
   ========================================================================== */

.shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); position: relative; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
  flex-wrap: wrap;
}

.section-head p { max-width: 56ch; margin: 0; }
.section-head > div { max-width: 62ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lime-300);
  margin-bottom: .95rem;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--lime-400), transparent);
  border-radius: 2px;
}

.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* ==========================================================================
   Yüzeyler
   ========================================================================== */

.surface {
  background: linear-gradient(160deg, var(--glass-strong), var(--glass));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

/* Üst kenarda ince ışık — cam yüzeyin kalınlığını hissettirir */
.surface--lit { position: relative; overflow: hidden; }
.surface--lit::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
}

.panel {
  background: linear-gradient(165deg, rgba(16, 36, 55, .92), rgba(8, 19, 31, .96));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
}
.panel--pad { padding: clamp(1.4rem, 3vw, 2.2rem); }

/* ==========================================================================
   Düğmeler
   ========================================================================== */

.btn {
  --btn-bg: var(--glass-strong);
  --btn-fg: var(--text);
  --btn-line: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .82rem 1.5rem;
  min-height: 46px;
  font-family: var(--font-display);
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-line);
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .22s var(--ease-out), background-color .22s var(--ease), border-color .22s var(--ease), color .2s var(--ease);
  box-shadow: var(--sh-1);
}

/* Düğme yalnızca bir piksel kalkar; gölge büyümez — "yüzen hap" görünümünden kaçınılır. */
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .5; pointer-events: none; }

/* Dolgular düz renktir; degrade ve renkli gölge kimliği ucuzlatıyordu. */
.btn--primary { --btn-fg: #fff; --btn-line: transparent; --btn-bg: var(--fill); }
.btn--primary:hover { --btn-bg: var(--fill-hover); }

.btn--accent { --btn-fg: #0a1a05; --btn-line: transparent; --btn-bg: var(--lime-400); }
.btn--accent:hover { --btn-bg: var(--lime-300); }

.btn--danger { --btn-fg: #fff; --btn-line: transparent; --btn-bg: #c93f36; }
.btn--danger:hover { --btn-bg: #b3372f; }

.btn--ghost { --btn-bg: transparent; --btn-line: var(--line-strong); box-shadow: none; }
.btn--ghost:hover { --btn-bg: var(--glass); border-color: rgba(107, 192, 226, .45); }

.btn--sm { padding: .52rem 1rem; min-height: 36px; font-size: .84rem; }
.btn--block { width: 100%; }

.btn svg { width: 17px; height: 17px; flex: none; }

/* ==========================================================================
   Rozetler
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .3rem .68rem;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: var(--r-pill);
  background: var(--glass-strong);
  border: 1px solid var(--line-strong);
  color: var(--text);
  white-space: nowrap;
}

.badge--brand { background: rgba(0, 113, 188, .2); border-color: rgba(26, 138, 212, .5); color: #a8dcf5; }
.badge--lime { background: rgba(160, 201, 16, .16); border-color: rgba(160, 201, 16, .45); color: var(--lime-300); }
.badge--gold { background: rgba(242, 181, 68, .15); border-color: rgba(242, 181, 68, .45); color: #f7cf86; }
.badge--ok { background: rgba(53, 201, 138, .15); border-color: rgba(53, 201, 138, .42); color: #7ee0b4; }
.badge--warn { background: rgba(242, 181, 68, .15); border-color: rgba(242, 181, 68, .42); color: #f7cf86; }
.badge--danger { background: rgba(243, 105, 95, .16); border-color: rgba(243, 105, 95, .45); color: #ffa79f; }
.badge--muted { color: var(--muted); }

/* ==========================================================================
   Form öğeleri
   ========================================================================== */

.field { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }

.field > label,
.label {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--faint);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: .78rem 1rem;
  min-height: 46px;
  background: rgba(4, 11, 19, .6);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3) inset;
}

.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

.input::placeholder, .textarea::placeholder { color: var(--faint); }

.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, .24); }

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-400);
  background: rgba(4, 11, 19, .82);
  box-shadow: 0 0 0 3px rgba(26, 138, 212, .2), 0 1px 2px rgba(0, 0, 0, .3) inset;
}

.select {
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239db2c6' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 16px;
  cursor: pointer;
}

.select option { background: var(--bg-200); color: var(--text); }

/* `.field > label` büyük harf etiket kuralı onay kutusu cümlesine de uyuyordu. */
.field > label.check {
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  font-size: .92rem;
  color: var(--muted);
  user-select: none;
}

.check input {
  appearance: none;
  width: 20px;
  height: 20px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(4, 11, 19, .6);
  cursor: pointer;
  transition: all .18s var(--ease);
}

.check input:checked {
  border-color: transparent;
  background-color: var(--lime-400);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1a05' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dokunmatik ekranlarda onay kutusu etiketleri rahat basılabilir olmalı. */
@media (pointer: coarse) {
  .check { min-height: 44px; padding-block: .35rem; }
}

.hint { font-size: .8rem; color: var(--faint); }
.error-text { font-size: .84rem; color: #ffa79f; }

/* ==========================================================================
   Yardımcılar
   ========================================================================== */

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.wrap { flex-wrap: wrap; }
.gap-xs { gap: .4rem; } .gap-sm { gap: .7rem; } .gap-md { gap: 1.1rem; } .gap-lg { gap: 1.8rem; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }
.text-faint { color: var(--faint); }
.text-lime { color: var(--lime-300); }
.text-center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 200;
  padding: .7rem 1.2rem;
  background: var(--lime-400);
  color: #0a1a05;
  border-radius: var(--r-pill);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .22s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); color: #0a1a05; }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; margin: 0; }

/* ==========================================================================
   Görünürlük animasyonu — kaydırma ile ortaya çıkış
   ========================================================================== */

/*
 * Beliriş `transform` yerine ayrı `translate` özelliğini kullanır: kartlardaki
 * eğim `transform` yazdığında beliriş kaymasını ezmesin. Kart bileşenleri kendi
 * `transition` listelerine opacity/translate satırlarını ekler (components.css).
 */
[data-reveal] {
  opacity: 0;
  translate: 0 16px;
  transition: opacity .6s var(--ease-out) var(--reveal-delay, 0ms), translate .6s var(--ease-out) var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; translate: none; }

/* ==========================================================================
   Bildirim balonları
   ========================================================================== */

.toasts {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  width: min(360px, calc(100vw - 2.2rem));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .85rem 1rem;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(22, 49, 73, .97), rgba(8, 19, 31, .98));
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-4);
  font-size: .9rem;
  pointer-events: auto;
  animation: toast-in .35s var(--ease-out) both;
  backdrop-filter: blur(10px);
}

.toast::before {
  content: '';
  width: 4px;
  align-self: stretch;
  border-radius: 99px;
  background: var(--brand-400);
  flex: none;
}
.toast--ok::before { background: var(--ok); }
.toast--error::before { background: var(--danger); }
.toast--warn::before { background: var(--warn); }
.toast.is-out { animation: toast-out .3s var(--ease) both; }

@keyframes toast-in { from { opacity: 0; transform: translateX(24px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px) scale(.97); } }

/* ==========================================================================
   Yükleme iskeletleri
   ========================================================================== */

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
  border-radius: var(--r-sm);
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(200%); } }

/* Izgaranın içine basıldığında tek sütuna sıkışmasın diye tüm satırı kaplar. */
.empty-state {
  grid-column: 1 / -1;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  color: var(--muted);
  background: rgba(255, 255, 255, .015);
}
.empty-state img { width: 56px; margin: 0 auto 1rem; opacity: .45; }
.empty-state h3 { color: var(--text); margin-bottom: .35rem; }
.empty-state p { max-width: 52ch; margin-inline: auto; }
.empty-state__action { margin-top: 1.3rem; }
.empty-state--ok { border-style: solid; border-color: rgba(160, 201, 16, .4); background: rgba(160, 201, 16, .06); }

/* Kırılabilir bilgi şeridi — rozetin tek satırlık kalıbı uzun metni taşırıyordu. */
.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .7rem;
  margin-bottom: 1rem;
  padding: .7rem 1rem;
  font-size: .9rem;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: rgba(27, 114, 153, .12);
}
.notice a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Hareket tercihi
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; translate: none; }
}

@media print {
  body::before, .site-header, .site-footer, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
