/**
 * Denklem Bilgisayar — Modern CSS Reset & Temel Standartlar (reset.css)
 * %100 Mobil Uyumluluk • Sıfır Yatay Kayma (Zero Overflow) Güvencesi
 */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-base);
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--bg-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* ==================== MEDYA & GÖRSELLER ==================== */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  flex-shrink: 0;
}

/* ==================== TİPOGRAFİ VE LİNKLER ==================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--font-3xl); font-weight: 800; }
h2 { font-size: var(--font-2xl); font-weight: 800; }
h3 { font-size: var(--font-xl); font-weight: 700; }
h4 { font-size: var(--font-lg); font-weight: 700; }
h5 { font-size: var(--font-base); font-weight: 600; }
h6 { font-size: var(--font-sm); font-weight: 600; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* ==================== FORM ELEMANLARI & BUTONLAR ==================== */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

textarea {
  resize: vertical;
}

/* ==================== TABLOLAR ==================== */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* ==================== ERİŞİLEBİLİRLİK & FOCUS ==================== */
:focus-visible {
  outline: 2px solid var(--primary-orange);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

::selection {
  background-color: var(--primary-orange-light);
  color: var(--primary-orange-hover);
}
