/* ============================================
   GRIND BJJ — Raw & Gritty One-Pager
   ============================================ */

:root {
  /* Colors */
  --black: #080808;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --surface-3: #222222;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --text-muted: #777777;
  --text-dim: #555555;
  --accent: #0170B9;
  --accent-bright: #0190e8;
  --red: #E63946;
  --red-dark: #b82d38;
  --gold: #C9A94E;
  --white: #ffffff;

  /* Typography */
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 140px);
  --inner-max: 1200px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--black);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ---- Grain Overlay ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* ---- Scroll Animations ---- */
.anim-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.anim-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.nav.is-scrolled {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.08em;
  color: var(--white);
  transition: color 0.3s;
}

.nav__logo:hover {
  color: var(--red);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s var(--ease);
}

.nav__links a:hover {
  color: var(--white);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 8px 20px;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  transition: background 0.3s, transform 0.2s !important;
}

.nav__cta::after {
  display: none !important;
}

.nav__cta:hover {
  background: var(--red-dark);
  transform: scale(1.02);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 72px 24px 40px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    url('img/hero-bg.jpeg') center center / cover no-repeat;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8, 8, 8, 0.55) 0%, rgba(8, 8, 8, 0.7) 50%, rgba(8, 8, 8, 0.92) 100%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.015) 2px,
    rgba(255, 255, 255, 0.015) 4px
  );
}

.hero__content {
  position: relative;
  text-align: center;
  max-width: 800px;
}

.hero__badge {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero__title {
  margin-bottom: 16px;
}

.hero__title-main {
  font-family: var(--font-display);
  font-size: clamp(100px, 18vw, 220px);
  line-height: 0.85;
  letter-spacing: 0.04em;
  color: var(--white);
  display: block;
  text-shadow: 0 0 80px rgba(230, 57, 70, 0.15);
}

.hero__tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(18px, 2.5vw, 28px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 56px;
}

.hero__event {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}

.hero__event::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--accent));
}

.hero__event-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.hero__event-name {
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: 0.06em;
  color: var(--white);
}

.hero__event-details {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__event-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero__event-icon {
  font-size: 18px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---- Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230, 57, 70, 0.25);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ---- Section Common ---- */
.section {
  padding: var(--section-pad) 24px;
  position: relative;
}

.section__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
}

.section__header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 56px;
}

.section__number {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--surface-3);
  line-height: 1;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
}

/* ---- Alternating section backgrounds ---- */
.section--how,
.section--about {
  background: var(--surface);
}

/* ---- Turnaje ---- */
.upcoming__label,
.past__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.upcoming__card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
  margin-bottom: 56px;
}

.upcoming__stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--red), var(--accent));
}

.upcoming__info {
  flex: 1;
}

.upcoming__name {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 8px;
}

.upcoming__meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.upcoming__sep {
  color: var(--text-dim);
}

.upcoming__desc {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 15px;
}

.past__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.past__card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.past__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.06), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.past__card:hover {
  border-color: var(--text-dim);
  transform: translateY(-4px);
}

.past__card:hover::before {
  opacity: 1;
}

.past__card-number {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--surface-3);
  line-height: 1;
  position: relative;
}

.past__card-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--white);
  position: relative;
}

.past__card-meta {
  font-size: 13px;
  color: var(--text-muted);
  position: relative;
}

.past__card-tag {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
}

/* ---- Jak to funguje ---- */
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.how__card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}

.how__card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.how__card:hover::after {
  transform: scaleX(1);
}

.how__card-icon {
  color: var(--red);
  margin-bottom: 24px;
}

.how__card-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 12px;
}

.how__card-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Pravidla ---- */
.rules__intro {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 700px;
}

.rules__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
}

.rules__col {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.rules__col-header {
  padding: 24px 32px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.rules__col-header h3 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.04em;
  color: var(--white);
}

.rules__col-header span {
  font-size: 13px;
  color: var(--text-muted);
}

.rules__col-header--nogi {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), transparent);
  border-bottom: 2px solid var(--red);
}

.rules__col-header--gi {
  background: linear-gradient(135deg, rgba(1, 112, 185, 0.1), transparent);
  border-bottom: 2px solid var(--accent);
}

.rules__col-body {
  padding: 24px 32px 32px;
}

.rules__col-body h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  margin-top: 20px;
}

.rules__col-body h4:first-child {
  margin-top: 0;
}

.rules__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rules__tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* Skill levels */
.rules__levels {
  margin-top: 56px;
}

.rules__levels-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 32px;
}

.rules__levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rules__level {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
}

.rules__level h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 8px;
}

.rules__level p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.rules__level-badge {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--white);
}

.rules__level-badge--beginner {
  background: rgba(1, 112, 185, 0.15);
  border: 2px solid var(--accent);
}

.rules__level-badge--intermediate {
  background: rgba(201, 169, 78, 0.15);
  border: 2px solid var(--gold);
}

.rules__level-badge--advanced {
  background: rgba(230, 57, 70, 0.15);
  border: 2px solid var(--red);
}

.rules__note {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--surface);
  border-left: 3px solid var(--text-dim);
  font-size: 14px;
  color: var(--text-muted);
}

/* ---- O nás ---- */
.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 32px;
  position: relative;
  padding-left: 24px;
  border-left: 3px solid var(--red);
}

.about__quote-mark {
  position: absolute;
  top: -20px;
  left: -8px;
  font-size: 80px;
  color: var(--surface-3);
  line-height: 1;
  font-family: Georgia, serif;
}

.about__text p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

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

.about__text strong {
  color: var(--text);
}

.about__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__glyph {
  display: flex;
  gap: 8px;
}

.about__glyph span {
  font-family: var(--font-display);
  font-size: clamp(60px, 8vw, 100px);
  color: var(--surface-2);
  line-height: 1;
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}

.about__glyph:hover span {
  color: var(--red);
}

.about__glyph span:nth-child(1) { transition-delay: 0s; }
.about__glyph span:nth-child(2) { transition-delay: 0.05s; }
.about__glyph span:nth-child(3) { transition-delay: 0.1s; }
.about__glyph span:nth-child(4) { transition-delay: 0.15s; }
.about__glyph span:nth-child(5) { transition-delay: 0.2s; }

.about__glyph:hover span:nth-child(1) { transform: translateY(-8px); }
.about__glyph:hover span:nth-child(2) { transform: translateY(-12px); }
.about__glyph:hover span:nth-child(3) { transform: translateY(-6px); }
.about__glyph:hover span:nth-child(4) { transform: translateY(-14px); }
.about__glyph:hover span:nth-child(5) { transform: translateY(-8px); }

/* ---- Galerie ---- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery__item {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery__item:hover .gallery__img {
  transform: scale(1.05);
}

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.gallery__caption-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
}

.gallery__caption-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- Kontakt ---- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact__block {
  margin-bottom: 32px;
}

.contact__block:last-child {
  margin-bottom: 0;
}

.contact__block h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.contact__block a {
  font-size: 18px;
  color: var(--white);
  transition: color 0.3s;
}

.contact__block a:hover {
  color: var(--red);
}

.contact__block p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.contact__socials {
  display: flex;
  gap: 16px;
}

.contact__social {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.3s;
  padding: 8px 0;
}

.contact__social:hover {
  color: var(--white);
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__group label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form__group input,
.form__group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.3s;
}

.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--red);
}

.form__group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer__inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--white);
}

.footer__copy {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer__links a:hover {
  color: var(--white);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .how__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rules__columns {
    grid-template-columns: 1fr;
  }

  .rules__levels-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }

  .nav__links.is-open {
    transform: translateX(0);
  }

  .nav__links a {
    font-size: 20px;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__event {
    padding: 24px;
    width: 100%;
  }

  .hero__event-details {
    flex-direction: column;
    gap: 8px;
  }

  .upcoming__card {
    flex-direction: column;
    padding: 28px;
    gap: 24px;
  }

  .upcoming__action {
    width: 100%;
  }

  .upcoming__action .btn {
    width: 100%;
    justify-content: center;
  }

  .past__grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section__header {
    gap: 12px;
    margin-bottom: 40px;
  }

  .section__number {
    font-size: 36px;
  }

  .past__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .gallery__item--wide {
    grid-column: span 1;
  }

  .hero__badge {
    font-size: 10px;
    letter-spacing: 0.15em;
  }

  .hero__stats {
    flex-direction: column;
    gap: 16px;
  }

  .timeline__card {
    grid-template-columns: 1fr !important;
  }

  .timeline__card-cover {
    height: 140px !important;
  }
}

/* ============================================
   Hero Stats
   ============================================ */
.hero__stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-bottom: 40px;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--white);
  display: block;
  line-height: 1;
}

.hero__stat-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ============================================
   Timeline Cards (Turnaje)
   ============================================ */
.past__timeline {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.timeline__card {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.timeline__card:hover {
  border-color: var(--text-dim);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.timeline__card-cover {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.timeline__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,8,8,0.2), rgba(8,8,8,0.7));
}

.timeline__card-edition {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 64px;
  color: rgba(255,255,255,0.15);
  line-height: 1;
}

.timeline__card-body {
  padding: 20px;
}

.timeline__card-name {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 6px;
}

.timeline__card-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline__sep {
  color: var(--text-dim);
}

.timeline__card-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.timeline__stat {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface-2);
  padding: 4px 10px;
}

.timeline__stat--gold {
  color: var(--gold);
  background: rgba(201, 169, 78, 0.1);
}

.timeline__card-actions {
  display: flex;
  gap: 10px;
}

/* Small buttons */
.btn-sm {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  display: inline-block;
}

.btn-sm--results {
  background: var(--red);
  color: var(--white);
}

.btn-sm--results:hover {
  background: var(--red-dark);
}

.btn-sm--link {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-sm--link:hover {
  color: var(--white);
  border-color: var(--text-dim);
}

/* ============================================
   Results Modal
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.modal__content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 900px;
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease);
}

.modal.is-open .modal__content {
  transform: translateY(0);
}

.modal__header {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--white);
}

.modal__close {
  font-size: 32px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 8px;
  transition: color 0.3s;
  line-height: 1;
}

.modal__close:hover {
  color: var(--white);
}

.modal__body {
  padding: 24px;
}

.results__header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.results__sep {
  color: var(--text-dim);
}

.results__group-title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 24px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}

.results__group-title:first-child {
  margin-top: 0;
}

.results__categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.results__cat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 16px;
}

.results__cat-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.results__podium {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.results__athlete {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 4px 0;
}

.results__medal {
  font-size: 16px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.results__name {
  color: var(--text);
  font-weight: 500;
  min-width: 150px;
}

.results__team {
  color: var(--text-dim);
  font-size: 12px;
}

.results__athlete--gold .results__name {
  color: var(--gold);
}

.results__athlete--silver .results__name {
  color: #c0c0c0;
}

.results__athlete--bronze .results__name {
  color: #cd7f32;
}

/* Modal responsive */
@media (max-width: 768px) {
  .modal__content {
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
  }

  .results__athlete {
    flex-wrap: wrap;
    gap: 4px;
  }

  .results__name {
    min-width: auto;
  }
}
