/* =========================================================
   e-GAS RACING TEAM — BASE DESIGN SYSTEM
   Modern UI Standards & Precision Motorsport Aesthetics
   Renk kodları, fontlar ve görseller orijinal standartta korunmuştur.
   ========================================================= */

/* ÖZEL BAŞLIK FONTU */
@font-face {
  font-family: "OzelFont";
  src: url("../../art/Oxanium-ExtraBold.ttf") format("truetype");
  font-display: swap;
  font-weight: 800;
  font-style: normal;
}

:root {
  /* Sabit Tutulan Orijinal Renk Kodları */
  --pink: #F697B9;
  --pink-soft: #F6C1D4;
  --pink-theme: #FBC3E4;
  --gray: #757574;
  --dark: #202124;
  --dark-soft: #292a2e;
  --light: #F6C1D4;
  --text: #29252a;
  --muted: #6e6870;
  --surface: #ffffff;
  --surface-alt: #fff0f8;
  --border: rgba(128, 128, 128, .25);
  --content-width: 1220px;

  /* Modern Standart UI Ölçü ve Geçiş Değişkenleri */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.18s;
  --duration-normal: 0.28s;
  --duration-slow: 0.45s;
}

/* Light Tema: Pembe ve Beyaz Yüzeyler */
body[data-theme="light"] {
  --page: var(--light);
  --surface: #ffffff;
  --surface-alt: #fff0f8;
  --text: #29252a;
  --muted: #6e6870;
  --header: rgba(255, 248, 252, .92);
  --footer: #f8d8eb;
  --border: rgba(128, 128, 128, .20);
  --card-border: rgba(246, 151, 185, .32);
  --hero-overlay: linear-gradient(135deg, rgba(24, 18, 25, .84) 0%, rgba(24, 18, 25, .58) 55%, rgba(24, 18, 25, .32) 100%);
  --shadow-sm: 0 2px 8px rgba(41, 37, 42, .06);
  --shadow-md: 0 10px 28px rgba(41, 37, 42, .08);
  --shadow-lg: 0 18px 42px rgba(41, 37, 42, .12);
  --shadow-accent: 0 8px 24px rgba(246, 151, 185, .35);
  --glow-accent: 0 0 24px rgba(246, 151, 185, .45);
}

/* Dark Tema: Gri ve Karbon Tonları */
body[data-theme="dark"] {
  --page: #25272b;
  --surface: #292a2e;
  --surface-alt: #333438;
  --text: #f6f2f5;
  --muted: #c0b9c0;
  --header: rgba(32, 33, 36, .94);
  --footer: #292a2e;
  --border: rgba(251, 195, 228, .20);
  --card-border: rgba(251, 195, 228, .22);
  --hero-overlay: linear-gradient(135deg, rgba(15, 15, 17, .88) 0%, rgba(15, 15, 17, .66) 55%, rgba(15, 15, 17, .42) 100%);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .28);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .44);
  --shadow-lg: 0 20px 52px rgba(0, 0, 0, .60);
  --shadow-accent: 0 8px 28px rgba(246, 151, 185, .25);
  --glow-accent: 0 0 28px rgba(246, 151, 185, .35);
}

/* CSS RESET & MODERN KUTU MODELİ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--page);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color var(--duration-normal) var(--ease-smooth), color var(--duration-normal) var(--ease-smooth);
  overflow-x: clip;
}

/* SEÇİM & KAYDIRMA ÇUBUĞU */
::selection {
  background-color: var(--pink);
  color: #252027;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--surface-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--pink);
  border-radius: var(--radius-pill);
  border: 2px solid var(--surface-alt);
}
::-webkit-scrollbar-thumb:hover {
  background: #FBC3E4;
}

/* TEMEL TİPOGRAFİ VE LİNKLER */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
}

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

/* MODERN TAŞIYICI (CONTAINER) */
.container {
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }
}
