/* Temel sıfırlama ve erişilebilirlik */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--background);
  color: var(--text-primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  min-width: 280px;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img, svg { max-width: 100%; }
.ui-icon { display: block; height: 1.25rem; width: 1.25rem; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 72%, white); outline-offset: 3px; }
.skip-link { background: var(--primary); color: #fff; left: 1rem; padding: .7rem 1rem; position: fixed; top: -5rem; z-index: 1000; }
.skip-link:focus { top: 1rem; }

/* Uygulama kabuğu */
.app-shell { min-height: 100vh; }
.page-column { min-width: 0; }
.site-header {
  align-items: center;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  height: var(--header-height);
  justify-content: space-between;
  padding: .65rem 1rem;
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-brand-group, .header-actions { align-items: center; display: flex; gap: .55rem; }
.brand { align-items: center; display: inline-flex; min-width: 0; text-decoration: none; }
.brand__logo {
  background: transparent url("/assets/images/emlakcantasi-logo.png?v=2") center / contain no-repeat;
  display: block;
  flex: 0 1 245px;
  height: 52px;
  width: min(56vw, 245px);
}
.brand__logo--sidebar { filter: brightness(0) invert(1); height: 52px; width: 180px; }
.brand__logo--footer { height: 42px; width: 190px; }
.menu-button { display: inline-flex; }
.avatar-button {
  align-items: center;
  background: var(--primary);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

#main-content {
  margin: 0 auto;
  max-width: var(--content-max);
  min-height: calc(100vh - 260px);
  padding: 1rem 1rem calc(var(--bottom-nav-height) + 2rem + env(safe-area-inset-bottom));
  width: 100%;
}

/* Mobil çekmece; masaüstünde responsive.css sabitler */
.desktop-sidebar {
  background: linear-gradient(180deg, var(--sidebar-start), var(--sidebar-end));
  bottom: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  left: 0;
  max-width: 88vw;
  padding: 1rem;
  position: fixed;
  top: 0;
  transform: translateX(-105%);
  transition: transform var(--transition);
  width: var(--sidebar-width);
  z-index: 80;
}
.nav-open { overflow: hidden; }
.nav-open .desktop-sidebar { transform: translateX(0); }
.sidebar-backdrop {
  background: rgb(3 27 66 / 58%);
  border: 0;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity var(--transition);
  z-index: 70;
}
.nav-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
.sidebar-brand-row { align-items: center; display: flex; justify-content: space-between; }
.sidebar-close { background: rgb(255 255 255 / 12%); border: 0; border-radius: .7rem; color: #fff; cursor: pointer; font-size: 1.4rem; height: 44px; width: 44px; }
.desktop-sidebar nav { display: grid; gap: .45rem; margin-top: 1.6rem; }
.support-card {
  background: rgb(255 255 255 / 9%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: .9rem;
  color: #fff;
  display: grid;
  font-size: .72rem;
  gap: .45rem;
  margin-top: auto;
  padding: .85rem;
  text-decoration: none;
}
.support-card span { opacity: .78; }
.support-card strong { align-items: center; display: flex; font-size: .77rem; justify-content: space-between; }

/* Sayfa başlıkları */
.is-hidden { display: none !important; }
.muted { color: var(--text-secondary); }
.eyebrow { color: var(--primary); font-size: .72rem; font-weight: 850; letter-spacing: .035em; margin: 0 0 .4rem; text-transform: uppercase; }
.page-title { font-size: clamp(1.75rem, 4vw, 2.25rem); letter-spacing: -.03em; line-height: 1.12; margin: 0; }
.page-lead { color: var(--text-secondary); font-size: clamp(.9rem, 2vw, 1rem); margin: .55rem 0 0; max-width: 650px; }
.section-title { font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -.03em; line-height: 1.15; margin: 0; }

/* Alt alan */
.site-footer {
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  font-size: .78rem;
  gap: .75rem;
  margin: 0 auto;
  padding: 2rem 1rem calc(var(--bottom-nav-height) + 1.25rem + env(safe-area-inset-bottom));
  text-align: center;
}
.footer-brand { display: inline-flex; }
.footer-links { display: flex; flex-wrap: wrap; gap: .45rem 1rem; justify-content: center; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--primary); }
.site-footer p { margin: 0; }
.footer-disclaimer { font-size: .7rem; max-width: 720px; }
