/* ==========================================================================
   Vetro Cloud Konsolu - Temel katman (sıfırlama, tipografi, odak, erişilebilirlik)
   ========================================================================== */

/* --- Inter, yerel barındırma (dış istek yok) ----------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Sıfırlama ----------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--vc-header-h) + var(--vc-sp-4));
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--vc-font);
  font-size: var(--vc-fs-base);
  font-weight: 400;
  line-height: var(--vc-lh);
  color: var(--vc-text);
  background-color: var(--vc-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--vc-text);
  text-wrap: balance;
}

h1 {
  font-size: var(--vc-fs-2xl);
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--vc-fs-lg);
}

h3 {
  font-size: var(--vc-fs-md);
}

p {
  text-wrap: pretty;
}

a {
  color: var(--vc-primary);
  text-decoration: none;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration: underline;
}

strong,
b {
  font-weight: 600;
}

small {
  font-size: var(--vc-fs-xs);
}

code,
kbd,
samp,
pre {
  font-family: var(--vc-font-mono);
  font-size: 0.9em;
}

code {
  padding: 1px 5px;
  border-radius: var(--vc-radius-sm);
  background-color: #eef2f8;
  color: #1f2f4d;
  overflow-wrap: anywhere;
}

pre code {
  padding: 0;
  background: none;
  color: inherit;
}

img,
svg,
video {
  max-width: 100%;
  vertical-align: middle;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

[hidden] {
  display: none !important;
}

/* --- Odak görünürlüğü (WCAG 2.2 AA) -------------------------------------- */
:focus-visible {
  outline: 3px solid var(--vc-focus);
  outline-offset: 2px;
  border-radius: var(--vc-radius-sm);
}

/* --- Atlama bağlantısı --------------------------------------------------- */
.vc-skip {
  position: fixed;
  top: var(--vc-sp-2);
  left: var(--vc-sp-2);
  z-index: 1000;
  padding: var(--vc-sp-2) var(--vc-sp-4);
  border-radius: var(--vc-radius);
  background-color: var(--vc-surface);
  color: var(--vc-primary);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--vc-shadow);
  transform: translateY(calc(-100% - var(--vc-sp-4)));
  transition: transform var(--vc-transition);
}

.vc-skip:focus-visible {
  transform: translateY(0);
  text-decoration: none;
}

/* --- Ekran okuyucuya özel ------------------------------------------------ */
.vc-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Metin seçimi -------------------------------------------------------- */
::selection {
  background-color: var(--vc-primary-light);
  color: var(--vc-primary-dark);
}
