@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400..600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/*
 * Emin Emlak — Astra & Modern Real Estate Tasarım Token'ları
 */

:root {
  color-scheme: dark;

  /* Brand (Live Site: Mint Vivo & Ombra) */
  --brand-primary: #7ECA9C;
  --brand-hover: #5EAD80;
  --brand-dark: #479367;
  --brand-secondary: rgba(126, 202, 156, 0.15);
  --brand-tertiary: rgba(126, 202, 156, 0.08);
  --brand-muted: #7ECA9C;

  /* Canvas & Body (Live Site: Navy-Black) */
  --bg-body: #202a44;

  /* Status */
  --success: #7ECA9C;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Surfaces (Live Site: Deep Navy & Obsidian) */
  --surface-bg: #1a2238;
  --surface-secondary-bg: #202a44;
  --surface-hover: #26314f;
  --surface-dark: #141b2c;
  --surface-dark-hover: #1c263d;
  --surface-darkest: #0f1422;

  /* Text (On Dark Canvas) */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-tertiary: rgba(255, 255, 255, 0.45);
  --on-brand: #1a2238;
  --on-reverse: #ffffff;

  /* Borders (Live Site: Graphite & Steel) */
  --border-primary: rgba(73, 73, 73, 0.7);
  --border-secondary: rgba(73, 73, 73, 0.4);
  --border-selected: #7ECA9C;

  /* Backgrounds */
  --input-bg: #141b2c;
  --bg-faint: rgba(255, 255, 255, 0.04);
  --bg-subtle: rgba(255, 255, 255, 0.07);
  --bg-hover: rgba(255, 255, 255, 0.12);
  --modal-scrim: rgba(10, 14, 26, 0.85);

  /* Spacing (base-4) */
  --space-xs: 4px;
  --space-sm: 6px;
  --space-md: 8px;
  --space-lg: 12px;
  --space-xl: 16px;
  --space-2xl: 24px;

  /* Radius */
  --corner-sm: 4px;
  --corner-md: 8px;
  --corner-lg: 16px;
  --corner-full: 999px;

  /* Typography */
  --font-size: 16px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Barlow Condensed', 'Rajdhani', 'Bebas Neue', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-weight-normal: 400;
  --font-weight-book: 450;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --line-height: 1.45;

  /* Composite type scale (Astra) */
  --type-title-size: 24px;
  --type-title-weight: 600;
  --type-heading-size: 20px;
  --type-heading-weight: 600;
  --type-caption-size: 20px;
  --type-caption-weight: 600;
  --type-label-size: 16px;
  --type-label-weight: 600;
  --type-label-sm-size: 14px;
  --type-label-sm-weight: 500;
  --type-input-size: 16px;
  --type-input-weight: 400;
  --type-input-sm-size: 14px;
  --type-input-sm-weight: 500;
  --type-meta-size: 12px;
  --type-meta-weight: 400;

  /* Hero & display heading */
  --type-display-size: clamp(30px, 4.4vw, 48px);
  --type-display-weight: 700;
  --type-display-line-height: 1.15;

  /* Modern elevation tokens */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 12px 0 rgba(15, 23, 42, 0.05);
  --shadow-card-hover: 0 16px 32px -8px rgba(15, 23, 42, 0.12);
  --shadow-overlay: 0 16px 36px 0 rgba(15, 23, 42, 0.16);

  /* Hareket */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);

  /* Bileşen sabitleri */
  --sidebar-width: 60px;
  --control-height: 42px;
  --control-height-sm: 34px;
  --container-max: 1240px;
  --container-narrow: 840px;

  /* Toast */
  --toast-cancel: #093077;
  --toast-cancel-hover: #0a3a85;
  --toast-cancel-active: #072961;
}

.dark {
  color-scheme: dark;

  --brand-primary: #6366f1;
  --brand-hover: #4f46e5;
  --brand-dark: #4338ca;
  --brand-secondary: #312e81;
  --brand-tertiary: #1e1b4b;
  --brand-muted: #818cf8;

  /* Canvas & Body */
  --bg-body: #0b0f19;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --surface-bg: #131b2e;
  --surface-secondary-bg: #19243d;
  --surface-hover: #1c2742;
  --surface-dark: #0f1626;
  --surface-dark-hover: #162038;
  --surface-darkest: #070a12;

  --text-primary: #ffffffed;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --on-brand: #fff;
  --on-reverse: #0b0f19;

  --border-primary: rgba(255, 255, 255, 0.09);
  --border-secondary: rgba(255, 255, 255, 0.05);
  --border-selected: #6366f1;

  --input-bg: rgba(255, 255, 255, 0.05);
  --bg-faint: rgba(255, 255, 255, 0.03);
  --bg-subtle: rgba(255, 255, 255, 0.06);
  --bg-hover: rgba(255, 255, 255, 0.1);
  --modal-scrim: rgba(0, 0, 0, 0.75);

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 16px 32px rgba(0, 0, 0, 0.55);
  --shadow-overlay: 0 16px 36px 0 rgba(0, 0, 0, 0.5);

  --toast-cancel: #1a3f8a;
  --toast-cancel-hover: #224ba0;
  --toast-cancel-active: #13326e;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--type-input-size);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height);
  background: var(--bg-body);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

::selection {
  background: var(--brand-secondary);
  color: var(--text-primary);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
