/* ==========================================================================
   EuroCheking v2 — Base CSS
   Reset, grid, utilities, responsive
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-family);
  font-size: var(--f-md);
  line-height: var(--lh-normal);
  color: var(--c-text);
  background-color: var(--c-bg);
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

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

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

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

fieldset {
  border: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--f-weight-semibold);
  line-height: var(--lh-tight);
}

h1 { font-size: var(--f-xl); }
h2 { font-size: var(--f-lg); }
h3 { font-size: var(--f-md); }

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

::selection {
  background-color: var(--c-primary);
  color: #ffffff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--c-border);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--c-text-secondary);
}

@supports (scrollbar-width: thin) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--c-border) transparent;
  }
}

/* --- Grid System --- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--s-md);
}

.grid {
  display: grid;
  gap: var(--s-md);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
.grid-cols-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

@media (min-width: 480px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .xl\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1440px) {
  .xxl\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .xxl\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
}

/* --- Flex Utilities --- */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.flex-1 { flex: 1; }
.flex-auto { flex: auto; }
.flex-none { flex: none; }

.self-start { align-self: flex-start; }
.self-center { align-self: center; }
.self-end { align-self: flex-end; }

/* --- Gap Utilities --- */
.gap-0 { gap: 0; }
.gap-xs { gap: var(--s-xs); }
.gap-sm { gap: var(--s-sm); }
.gap-md { gap: var(--s-md); }
.gap-lg { gap: var(--s-lg); }
.gap-xl { gap: var(--s-xl); }

/* --- Spacing Utilities --- */
.m-0 { margin: 0; }
.m-xs { margin: var(--s-xs); }
.m-sm { margin: var(--s-sm); }
.m-md { margin: var(--s-md); }
.m-lg { margin: var(--s-lg); }
.m-xl { margin: var(--s-xl); }

.mt-xs { margin-top: var(--s-xs); }
.mt-sm { margin-top: var(--s-sm); }
.mt-md { margin-top: var(--s-md); }
.mt-lg { margin-top: var(--s-lg); }
.mt-xl { margin-top: var(--s-xl); }

.mb-xs { margin-bottom: var(--s-xs); }
.mb-sm { margin-bottom: var(--s-sm); }
.mb-md { margin-bottom: var(--s-md); }
.mb-lg { margin-bottom: var(--s-lg); }
.mb-xl { margin-bottom: var(--s-xl); }

.mr-xs { margin-right: var(--s-xs); }
.mr-sm { margin-right: var(--s-sm); }
.mr-md { margin-right: var(--s-md); }
.mr-lg { margin-right: var(--s-lg); }

.ml-xs { margin-left: var(--s-xs); }
.ml-sm { margin-left: var(--s-sm); }
.ml-md { margin-left: var(--s-md); }
.ml-lg { margin-left: var(--s-lg); }

.mx-auto { margin-inline: auto; }

.p-0 { padding: 0; }
.p-xs { padding: var(--s-xs); }
.p-sm { padding: var(--s-sm); }
.p-md { padding: var(--s-md); }
.p-lg { padding: var(--s-lg); }
.p-xl { padding: var(--s-xl); }

.pt-xs { padding-top: var(--s-xs); }
.pt-sm { padding-top: var(--s-sm); }
.pt-md { padding-top: var(--s-md); }
.pt-lg { padding-top: var(--s-lg); }

.pb-xs { padding-bottom: var(--s-xs); }
.pb-sm { padding-bottom: var(--s-sm); }
.pb-md { padding-bottom: var(--s-md); }
.pb-lg { padding-bottom: var(--s-lg); }

.px-sm { padding-inline: var(--s-sm); }
.px-md { padding-inline: var(--s-md); }
.px-lg { padding-inline: var(--s-lg); }
.px-xl { padding-inline: var(--s-xl); }

.py-xs { padding-block: var(--s-xs); }
.py-sm { padding-block: var(--s-sm); }
.py-md { padding-block: var(--s-md); }
.py-lg { padding-block: var(--s-lg); }
.py-xl { padding-block: var(--s-xl); }

/* --- Text Utilities --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-xs { font-size: var(--f-xs); }
.text-sm { font-size: var(--f-sm); }
.text-md { font-size: var(--f-md); }
.text-lg { font-size: var(--f-lg); }
.text-xl { font-size: var(--f-xl); }

.font-normal { font-weight: var(--f-weight-normal); }
.font-medium { font-weight: var(--f-weight-medium); }
.font-semibold { font-weight: var(--f-weight-semibold); }
.font-bold { font-weight: var(--f-weight-bold); }

.text-secondary { color: var(--c-text-secondary); }
.text-primary { color: var(--c-primary); }
.text-success { color: var(--c-success); }
.text-warning { color: var(--c-warning); }
.text-danger { color: var(--c-danger); }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.break-word {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* --- Display Utilities --- */
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }

@media (max-width: 479px) {
  .xs\:hidden { display: none; }
}
@media (max-width: 767px) {
  .sm\:hidden { display: none; }
}
@media (max-width: 1023px) {
  .md\:hidden { display: none; }
}
@media (min-width: 768px) {
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
}
@media (min-width: 1024px) {
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
}

/* --- Width / Height --- */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }

/* --- Overflow --- */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* --- Position --- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { inset: 0; }

/* --- Object --- */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* --- Cursor --- */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* --- Accessibility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--s-sm);
  left: var(--s-sm);
  z-index: var(--z-tooltip);
  padding: var(--s-sm) var(--s-md);
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--r-sm);
  transform: translateY(-200%);
  transition: transform var(--duration-200) var(--ease-out);
}
.skip-link:focus {
  transform: translateY(0);
}

/* --- Reduced Data --- */
@media (prefers-reduced-data: reduce) {
  img,
  video {
    display: none;
  }
}

/* --- Print --- */
@media print {
  .no-print,
  nav,
  .sidebar,
  .header,
  .footer,
  .toast,
  .modal {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  .card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}
