/* ============================================================
   MAHALLE — base.css
   Değişkenler, reset, tipografi, erişilebilirlik
   Vurgu rengi: #00b1c9 (turkuaz)
   ============================================================ */

/* ============================================================
   CSS DEĞİŞKENLERİ — AÇIK TEMA
   ============================================================ */
:root{
  /* Nötr renkler */
  --white:#ffffff;
  --off-white:#fafafa;
  --light-gray:#f0f0f0;
  --mid-gray:#b0b0b0;
  --dark-gray:#4a4a4a;
  --text-muted:#6b6b6b;
  --border:#e5e5e5;

  /* Metin (siyah kalır) */
  --near-black:#1a1a1a;
  --black:#000000;

  /* ==========================================================
     VURGU RENGİ — Turkuaz
     ========================================================== */
  --accent:           #00b1c9;
  --accent-hover:     #0093a8;
  --accent-dark:      #007a8a;
  --accent-light:     #e0f7fa;
  --accent-lighter:   #f0fbfc;
  --accent-contrast:  #ffffff;

  /* ==========================================================
     SEMANTİK RENKLER
     ========================================================== */
  --danger:#b3242a;
  --danger-bg:#fdf2f2;
  --danger-border:#f5d0d0;
  --success:#146b2b;
  --success-bg:#f1faf3;
  --success-border:#cfe9d6;
  --warning:#8a6300;
  --warning-bg:#fbf5e5;
  --info:#00b1c9;
  --info-bg:#e0f7fa;

  /* Yarıçap */
  --r-sm:6px;
  --r-md:10px;
  --r-lg:14px;
  --r-xl:20px;
  --r-pill:999px;

  /* Gölge */
  --shadow-sm:0 1px 2px rgba(0,0,0,.05);
  --shadow-md:0 4px 12px rgba(0,0,0,.06);
  --shadow-lg:0 12px 32px rgba(0,0,0,.08);

  /* Fontlar */
  --font-head:'Inter','Segoe UI',system-ui,-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;
  --font-body:var(--font-head);
  --font-mono:'JetBrains Mono','SF Mono',Menlo,Consolas,monospace;

  /* Boşluk ölçeği */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px;
  --sp-5:24px; --sp-6:32px; --sp-7:48px; --sp-8:64px;

  /* Layout */
  --container:1400px;
  --header-h:64px;

  /* Focus ring (WCAG) */
  --focus-ring:2px solid var(--accent);
  --focus-offset:2px;
}



/* ============================================================
   RESET
   ============================================================ */
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  font-family:var(--font-body);
  font-size:15px;
  line-height:1.6;
  color:var(--near-black);
  background:var(--off-white);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  transition:background-color .2s, color .2s;
}

img,svg,video{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
a:hover{color:var(--accent)}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:none;background:none}
ul,ol{list-style:none;margin:0;padding:0}
h1,h2,h3,h4,h5,h6{
  margin:0;font-weight:600;letter-spacing:-.015em;
  font-family:var(--font-head);color:var(--near-black);
}
p{margin:0 0 1em}
hr{border:none;border-top:1px solid var(--border);margin:24px 0}

/* ============================================================
   FOCUS — WCAG 2.4.7
   ============================================================ */
:focus{outline:none}
:focus-visible{
  outline:var(--focus-ring);
  outline-offset:var(--focus-offset);
  border-radius:var(--r-sm);
}
:focus:not(:focus-visible){outline:none}

/* ============================================================
   SEÇİM
   ============================================================ */
::selection{
  background:var(--accent);
  color:var(--accent-contrast);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:var(--off-white)}
::-webkit-scrollbar-thumb{
  background:var(--light-gray);border-radius:999px;
  border:2px solid var(--off-white);
}
::-webkit-scrollbar-thumb:hover{background:var(--accent)}

/* ============================================================
   YARDIMCI SINIFLAR
   ============================================================ */
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 var(--sp-5);
  width:100%;
}

.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:absolute;top:-100px;left:16px;
  z-index:9999;
  padding:10px 16px;
  background:var(--accent);color:var(--accent-contrast);
  border-radius:var(--r-md);
  font-weight:600;font-size:14px;
  transition:top .15s;
}
.skip-link:focus{top:12px;outline:var(--focus-ring);outline-offset:2px}

.text-muted{color:var(--text-muted)}
.text-center{text-align:center}
.text-right{text-align:right}

.divider{height:1px;background:var(--border);margin:24px 0;border:none}

[hidden]{display:none !important}

/* ============================================================
   FORM
   ============================================================ */
input,textarea,select{
  font-family:var(--font-body);
  font-size:14px;
  color:var(--near-black);
  background-color:var(--white);
}
input::placeholder,
textarea::placeholder{
  color:var(--text-muted);opacity:1;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus{
  -webkit-text-fill-color:var(--near-black);
  -webkit-box-shadow:0 0 0 1000px var(--white) inset;
  transition:background-color 5000s ease-in-out 0s;
}

/* ============================================================
   ANİMASYONLAR
   ============================================================ */
@keyframes pulse{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.55;transform:scale(.85)}
}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes fadeIn{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:none}
}
@keyframes slideDown{
  from{opacity:0;transform:translateY(-6px)}
  to{opacity:1;transform:none}
}
@keyframes shimmer{
  0%{background-position:-400px 0}
  100%{background-position:400px 0}
}

.fade-in{animation:fadeIn .25s ease-out}

/* ============================================================
   AZALTILMIŞ HAREKET
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}

/* ============================================================
   YÜKSEK KONTRAST MODU
   ============================================================ */
@media (prefers-contrast: more){
  :root{
    --border:#000000;
    --text-muted:#333333;
  }
}

/* ============================================================
   YAZDIRMA
   ============================================================ */
@media print{
  body{background:#fff;color:#000}
  .site-header,
  .site-footer,
  .flash-container,
  .loc-trigger,
  .menu-toggle,
  .btn,
  .pagination,
  .filter-form,
  .theme-toggle,
  .skip-link,
  .back-to-top{display:none !important}
  a{color:#000;text-decoration:underline}
  .container{max-width:none;padding:0}
  .listing-card{border:1px solid #ccc;box-shadow:none;break-inside:avoid}
}