/* path: assets/css/gimle-design-system.css */

:root {
  --gimle-red: #e30613;
  --gimle-red-dark: #8f0008;
  --gimle-black: #151515;
  --gimle-ink: #181818;
  --gimle-muted: #5d5d5d;
  --gimle-white: #ffffff;
  --gimle-cream: #f7f3ef;
  --gimle-grey: #e9e3de;
  --gimle-line: #ded6d0;
  --gimle-success: #198754;
  --gimle-warning: #b85c00;
  --gimle-danger: #b00020;

  --gimle-radius-sm: 0.75rem;
  --gimle-radius-md: 1rem;
  --gimle-radius-lg: 1.5rem;
  --gimle-radius-pill: 999px;

  --gimle-space-xs: 0.5rem;
  --gimle-space-sm: 1rem;
  --gimle-space-md: 1.5rem;
  --gimle-space-lg: 2.5rem;
  --gimle-space-xl: 4rem;
  --gimle-space-2xl: 6rem;

  --gimle-max-width: 1240px;
  --gimle-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.10);
  --gimle-shadow-md: 0 18px 50px rgba(0, 0, 0, 0.16);
  --gimle-focus: 0 0 0 4px rgba(227, 6, 19, 0.28);

  --gimle-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gimle-page {
  color: var(--gimle-ink);
  background: var(--gimle-cream);
  font-family: var(--gimle-font-sans);
  font-size: 18px;
  line-height: 1.55;
}

.gimle-container {
  width: min(100% - 2rem, var(--gimle-max-width));
  margin-inline: auto;
}

.gimle-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.gimle-section--dark {
  color: var(--gimle-white);
  background: var(--gimle-black);
}

.gimle-section--red {
  color: var(--gimle-white);
  background: var(--gimle-red);
}

.gimle-section--cream {
  background: var(--gimle-cream);
}

.gimle-section-label {
  margin: 0 0 0.55rem;
  color: var(--gimle-red);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gimle-section--dark .gimle-section-label,
.gimle-section--red .gimle-section-label {
  color: rgba(255, 255, 255, 0.86);
}

.gimle-display,
.gimle-section-title {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.gimle-display {
  font-size: clamp(4rem, 9vw, 8rem);
}

.gimle-section-title {
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  max-width: 920px;
}

.gimle-lead {
  max-width: 760px;
  margin: 1rem 0 2.2rem;
  color: var(--gimle-muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.gimle-section--dark .gimle-lead,
.gimle-section--red .gimle-lead {
  color: rgba(255, 255, 255, 0.78);
}

.gimle-grid {
  display: grid;
  gap: var(--gimle-space-md);
}

.gimle-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gimle-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gimle-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gimle-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.1rem;
  border: 2px solid transparent;
  border-radius: var(--gimle-radius-pill);
  font: inherit;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.gimle-button:hover {
  transform: translateY(-1px);
}

.gimle-button:focus-visible,
.gimle-card:focus-within,
.gimle-focusable:focus-visible {
  outline: none;
  box-shadow: var(--gimle-focus);
}

.gimle-button--primary {
  color: var(--gimle-white);
  background: var(--gimle-red);
}

.gimle-button--secondary {
  color: var(--gimle-red);
  background: var(--gimle-white);
}

.gimle-button--dark {
  color: var(--gimle-white);
  background: var(--gimle-black);
}

.gimle-button--ghost {
  color: inherit;
  background: transparent;
  border-color: currentColor;
}

.gimle-card {
  background: var(--gimle-white);
  border: 1px solid var(--gimle-line);
  border-radius: var(--gimle-radius-lg);
  box-shadow: var(--gimle-shadow-sm);
  overflow: hidden;
}

.gimle-card--accent {
  border-left: 8px solid var(--gimle-red);
}

.gimle-card__body {
  padding: var(--gimle-space-md);
}

.gimle-card__label {
  margin: 0 0 0.75rem;
  color: var(--gimle-red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gimle-card__title {
  margin: 0;
  color: var(--gimle-ink);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.gimle-card__text {
  color: #333;
  margin-block: 0.8rem 1rem;
}

.gimle-card__media {
  height: 260px;
  background-size: cover;
  background-position: center;
}

.gimle-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  min-height: 640px;
  margin-top: 2rem;
  background: var(--gimle-white);
}

.gimle-hero__media {
  min-height: 640px;
  background: var(--gimle-black);
  border-radius: 0 0 var(--gimle-radius-lg) 0;
}

.gimle-hero__content {
  color: var(--gimle-white);
  background: linear-gradient(145deg, var(--gimle-red), var(--gimle-red-dark));
  padding: clamp(2rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gimle-hero__kicker {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gimle-hero__lead {
  max-width: 580px;
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.gimle-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.gimle-hero__quicklinks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.gimle-hero__quicklinks a {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255,255,255,.15);
  color: white;
  font-size: 1.05rem;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.gimle-product-card {
  display: flex;
  flex-direction: column;
}

.gimle-product-card__image {
  height: 240px;
  padding: 1.5rem;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gimle-product-card__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gimle-product-card .gimle-card__body {
  padding: 1.2rem;
}

.gimle-product-card__price {
  font-size: 1.35rem;
  font-weight: 900;
  margin: .4rem 0 1rem;
}

.gimle-match-card__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gimle-match-card__logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.gimle-form-field {
  display: grid;
  gap: 0.35rem;
}

.gimle-label {
  font-weight: 850;
}

.gimle-input,
.gimle-select,
.gimle-textarea {
  width: 100%;
  min-height: 44px;
  border: 2px solid var(--gimle-line);
  border-radius: var(--gimle-radius-sm);
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: var(--gimle-white);
  color: var(--gimle-ink);
}

.gimle-input:focus,
.gimle-select:focus,
.gimle-textarea:focus {
  outline: none;
  border-color: var(--gimle-red);
  box-shadow: var(--gimle-focus);
}

.gimle-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--gimle-line);
  border-radius: var(--gimle-radius-md);
  background: var(--gimle-white);
}

.gimle-table {
  width: 100%;
  border-collapse: collapse;
}

.gimle-table th,
.gimle-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--gimle-line);
  text-align: left;
  vertical-align: top;
}

.gimle-table th {
  color: var(--gimle-white);
  background: var(--gimle-red);
  font-weight: 950;
}

.gimle-alert {
  padding: var(--gimle-space-md);
  border-radius: var(--gimle-radius-md);
  border-left: 8px solid var(--gimle-red);
  background: #fff0f1;
}

.gimle-admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: var(--gimle-cream);
}

.gimle-admin-sidebar {
  color: var(--gimle-white);
  background: var(--gimle-black);
  padding: var(--gimle-space-md);
}

.gimle-admin-main {
  padding: var(--gimle-space-lg);
}

.gimle-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;
}

nav a,
.main-nav a,
.header-nav a {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: .015em;
}

@media (max-width: 950px) {
  .gimle-hero,
  .gimle-grid--2,
  .gimle-grid--3,
  .gimle-grid--4,
  .gimle-admin-shell {
    grid-template-columns: 1fr;
  }

  .gimle-hero__media {
    min-height: 330px;
  }

  .gimle-admin-sidebar,
  .gimle-admin-main {
    padding: var(--gimle-space-md);
  }
}

@media(max-width: 800px){
  .gimle-hero__quicklinks{
    grid-template-columns:1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
