/* ==========================================================================
   SUPPORT THEME - CSS Variables
   Açık ve Koyu Tema Desteği ile Profesyonel Renk Paleti
   ========================================================================== */

/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* ==========================================================================
   ROOT VARIABLES - Açık Tema (Varsayılan)
   ========================================================================== */
:root {
  /* ===== FONT FAMILY ===== */
  --font-primary: "Montserrat Alternates", sans-serif;
  --font-fallback:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;

  /* ===== FONT WEIGHTS ===== */
  --font-weight-thin: 100;
  --font-weight-extralight: 200;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  /* ===== FONT SIZES ===== */
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem; /* 36px */
  --font-size-5xl: 3rem; /* 48px */
  --font-size-6xl: 3.75rem; /* 60px */

  /* ===== LINE HEIGHTS ===== */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  /* ===== ANA RENKLER (Primary Colors) ===== */
  /* Deep Charcoal - Başlıklar ve Ana Metinler */
  --color-deep-charcoal: #1e293b;
  --color-deep-charcoal-rgb: 30, 41, 59;

  /* Steel Blue - İkincil Metinler ve İkonlar */
  --color-steel-blue: #334155;
  --color-steel-blue-rgb: 51, 65, 85;

  /* Soft Mint - Action Butonları ve Başarı */
  --color-soft-mint: #10b981;
  --color-soft-mint-rgb: 16, 185, 129;

  /* Cool Gray - Genel Arka Plan */
  --color-cool-gray: #f1f5f9;
  --color-cool-gray-rgb: 241, 245, 249;

  /* Pure White - Kartlar ve İçerik Alanları */
  --color-pure-white: #ffffff;
  --color-pure-white-rgb: 255, 255, 255;

  /* ===== TEMA RENKLERİ (Semantic Colors) ===== */
  /* Primary */
  --color-primary: var(--color-soft-mint);
  --color-primary-rgb: var(--color-soft-mint-rgb);
  --color-primary-hover: #0d9668;
  --color-primary-active: #087f58;
  --color-primary-light: #d1fae5;
  --color-primary-dark: #065f46;

  /* Secondary */
  --color-secondary: var(--color-steel-blue);
  --color-secondary-rgb: var(--color-steel-blue-rgb);
  --color-secondary-hover: #475569;
  --color-secondary-active: #1e293b;
  --color-secondary-light: #cbd5e1;

  /* ===== DURUM RENKLERİ (Status Colors) ===== */
  /* Success - Başarı */
  --color-success: #10b981;
  --color-success-rgb: 16, 185, 129;
  --color-success-light: #d1fae5;
  --color-success-dark: #065f46;

  /* Warning - Uyarı */
  --color-warning: #f59e0b;
  --color-warning-rgb: 245, 158, 11;
  --color-warning-light: #fef3c7;
  --color-warning-dark: #b45309;

  /* Error/Danger - Hata */
  --color-error: #ef4444;
  --color-error-rgb: 239, 68, 68;
  --color-error-light: #fee2e2;
  --color-error-dark: #b91c1c;

  /* Info - Bilgi */
  --color-info: #3b82f6;
  --color-info-rgb: 59, 130, 246;
  --color-info-light: #dbeafe;
  --color-info-dark: #1d4ed8;

  /* ===== METİN RENKLERİ (Text Colors) ===== */
  --color-text-primary: var(--color-deep-charcoal);
  --color-text-secondary: var(--color-steel-blue);
  --color-text-tertiary: #64748b;
  --color-text-muted: #94a3b8;
  --color-text-disabled: #cbd5e1;
  --color-text-inverse: var(--color-pure-white);
  --color-text-link: var(--color-soft-mint);
  --color-text-link-hover: #0d9668;

  /* ===== ARKA PLAN RENKLERİ (Background Colors) ===== */
  --color-bg-primary: var(--color-cool-gray);
  --color-bg-secondary: var(--color-pure-white);
  --color-bg-tertiary: #e2e8f0;
  --color-bg-card: var(--color-pure-white);
  --color-bg-hover: #f8fafc;
  --color-bg-active: #e2e8f0;
  --color-bg-disabled: #f1f5f9;
  --color-bg-overlay: rgba(30, 41, 59, 0.5);
  --color-bg-modal: var(--color-pure-white);

  /* ===== BORDER RENKLERİ ===== */
  --color-border-primary: #e2e8f0;
  --color-border-secondary: #cbd5e1;
  --color-border-focus: var(--color-soft-mint);
  --color-border-error: var(--color-error);
  --color-border-success: var(--color-success);

  /* ===== GÖLGE (Shadows) ===== */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm:
    0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  --shadow-none: 0 0 #0000;

  /* Focus Ring Shadow */
  --shadow-focus: 0 0 0 3px rgba(16, 185, 129, 0.3);

  /* ===== BORDER RADIUS ===== */
  --radius-none: 0;
  --radius-sm: 0.25rem; /* 4px */
  --radius-md: 0.375rem; /* 6px */
  --radius-lg: 0.5rem; /* 8px */
  --radius-xl: 0.75rem; /* 12px */
  --radius-2xl: 1rem; /* 16px */
  --radius-3xl: 1.5rem; /* 24px */
  --radius-full: 9999px;

  /* ===== SPACING ===== */
  --spacing-0: 0;
  --spacing-1: 0.25rem; /* 4px */
  --spacing-2: 0.5rem; /* 8px */
  --spacing-3: 0.75rem; /* 12px */
  --spacing-4: 1rem; /* 16px */
  --spacing-5: 1.25rem; /* 20px */
  --spacing-6: 1.5rem; /* 24px */
  --spacing-8: 2rem; /* 32px */
  --spacing-10: 2.5rem; /* 40px */
  --spacing-12: 3rem; /* 48px */
  --spacing-16: 4rem; /* 64px */
  --spacing-20: 5rem; /* 80px */
  --spacing-24: 6rem; /* 96px */

  /* ===== TRANSITIONS ===== */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;

  /* ===== Z-INDEX ===== */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;

  /* ===== CONTAINER ===== */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
}

/* ==========================================================================
   KOYU TEMA (Dark Theme)
   ========================================================================== */
[data-theme="dark"],
.dark-theme {
  /* ===== METİN RENKLERİ ===== */
  --color-text-primary: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-tertiary: #94a3b8;
  --color-text-muted: #64748b;
  --color-text-disabled: #475569;
  --color-text-inverse: var(--color-deep-charcoal);
  --color-text-link: #34d399;
  --color-text-link-hover: #6ee7b7;

  /* ===== ARKA PLAN RENKLERİ ===== */
  --color-bg-primary: #0f172a;
  --color-bg-secondary: #1e293b;
  --color-bg-tertiary: #334155;
  --color-bg-card: #1e293b;
  --color-bg-hover: #334155;
  --color-bg-active: #475569;
  --color-bg-disabled: #1e293b;
  --color-bg-overlay: rgba(0, 0, 0, 0.7);
  --color-bg-modal: #1e293b;

  /* ===== BORDER RENKLERİ ===== */
  --color-border-primary: #334155;
  --color-border-secondary: #475569;
  --color-border-focus: #34d399;

  /* ===== PRIMARY RENK AYARLARI ===== */
  --color-primary: #34d399;
  --color-primary-hover: #6ee7b7;
  --color-primary-active: #10b981;
  --color-primary-light: #064e3b;
  --color-primary-dark: #a7f3d0;

  /* ===== DURUM RENKLERİ ===== */
  --color-success-light: #064e3b;
  --color-warning-light: #78350f;
  --color-error-light: #7f1d1d;
  --color-info-light: #1e3a8a;

  /* ===== GÖLGE (Shadows) - Koyu tema için daha yoğun ===== */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-sm:
    0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.4);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.3);
  --shadow-focus: 0 0 0 3px rgba(52, 211, 153, 0.4);
}

/* ==========================================================================
   SYSTEM PREFERENCE - Sistem Tercihi ile Otomatik Tema
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* ===== METİN RENKLERİ ===== */
    --color-text-primary: #f8fafc;
    --color-text-secondary: #cbd5e1;
    --color-text-tertiary: #94a3b8;
    --color-text-muted: #64748b;
    --color-text-disabled: #475569;
    --color-text-inverse: var(--color-deep-charcoal);
    --color-text-link: #34d399;
    --color-text-link-hover: #6ee7b7;

    /* ===== ARKA PLAN RENKLERİ ===== */
    --color-bg-primary: #0f172a;
    --color-bg-secondary: #1e293b;
    --color-bg-tertiary: #334155;
    --color-bg-card: #1e293b;
    --color-bg-hover: #334155;
    --color-bg-active: #475569;
    --color-bg-disabled: #1e293b;
    --color-bg-overlay: rgba(0, 0, 0, 0.7);
    --color-bg-modal: #1e293b;

    /* ===== BORDER RENKLERİ ===== */
    --color-border-primary: #334155;
    --color-border-secondary: #475569;
    --color-border-focus: #34d399;

    /* ===== PRIMARY RENK AYARLARI ===== */
    --color-primary: #34d399;
    --color-primary-hover: #6ee7b7;
    --color-primary-active: #10b981;
    --color-primary-light: #064e3b;
    --color-primary-dark: #a7f3d0;

    /* ===== DURUM RENKLERİ ===== */
    --color-success-light: #064e3b;
    --color-warning-light: #78350f;
    --color-error-light: #7f1d1d;
    --color-info-light: #1e3a8a;

    /* ===== GÖLGE (Shadows) ===== */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-sm:
      0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.4);
    --shadow-md:
      0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg:
      0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-xl:
      0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.3);
    --shadow-focus: 0 0 0 3px rgba(52, 211, 153, 0.4);
  }
}

/* ==========================================================================
   FONT UTILITY CLASSES - Montserrat Alternates
   ========================================================================== */

/* Normal Styles */
.montserrat-alternates-thin {
  font-family: var(--font-primary);
  font-weight: 100;
  font-style: normal;
}

.montserrat-alternates-extralight {
  font-family: var(--font-primary);
  font-weight: 200;
  font-style: normal;
}

.montserrat-alternates-light {
  font-family: var(--font-primary);
  font-weight: 300;
  font-style: normal;
}

.montserrat-alternates-regular {
  font-family: var(--font-primary);
  font-weight: 400;
  font-style: normal;
}

.montserrat-alternates-medium {
  font-family: var(--font-primary);
  font-weight: 500;
  font-style: normal;
}

.montserrat-alternates-semibold {
  font-family: var(--font-primary);
  font-weight: 600;
  font-style: normal;
}

.montserrat-alternates-bold {
  font-family: var(--font-primary);
  font-weight: 700;
  font-style: normal;
}

.montserrat-alternates-extrabold {
  font-family: var(--font-primary);
  font-weight: 800;
  font-style: normal;
}

.montserrat-alternates-black {
  font-family: var(--font-primary);
  font-weight: 900;
  font-style: normal;
}

/* Italic Styles */
.montserrat-alternates-thin-italic {
  font-family: var(--font-primary);
  font-weight: 100;
  font-style: italic;
}

.montserrat-alternates-extralight-italic {
  font-family: var(--font-primary);
  font-weight: 200;
  font-style: italic;
}

.montserrat-alternates-light-italic {
  font-family: var(--font-primary);
  font-weight: 300;
  font-style: italic;
}

.montserrat-alternates-regular-italic {
  font-family: var(--font-primary);
  font-weight: 400;
  font-style: italic;
}

.montserrat-alternates-medium-italic {
  font-family: var(--font-primary);
  font-weight: 500;
  font-style: italic;
}

.montserrat-alternates-semibold-italic {
  font-family: var(--font-primary);
  font-weight: 600;
  font-style: italic;
}

.montserrat-alternates-bold-italic {
  font-family: var(--font-primary);
  font-weight: 700;
  font-style: italic;
}

.montserrat-alternates-extrabold-italic {
  font-family: var(--font-primary);
  font-weight: 800;
  font-style: italic;
}

.montserrat-alternates-black-italic {
  font-family: var(--font-primary);
  font-weight: 900;
  font-style: italic;
}

/* ==========================================================================
   BASE STYLES - Temel Stiller
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 12.8px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary), var(--font-fallback);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-top: 0;
  line-height: var(--line-height-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-base);
}

/* Links */
a {
  color: var(--color-text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-text-link-hover);
}

/* Focus States */
:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Selection */
::selection {
  background-color: var(--color-primary);
  color: var(--color-pure-white);
}
