/* ============================================
   SKATING CLUB HRADEC KRÁLOVÉ
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg-primary: #0A0A0A;
  --bg-card: #1A1A1A;
  --bg-card-hover: #222222;
  --bg-footer: #111111;
  --bg-divider: #2E2E2E;
  --accent: #00E676;
  --accent-dark: #00C853;
  --accent-bg: rgba(0, 230, 118, 0.1);
  --accent-bg-light: rgba(0, 230, 118, 0.15);
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  --text-meta: #666666;
  --font-heading: 'Anton', sans-serif;
  --font-body: 'Inter', sans-serif;
  --section-gap: 80px;
  --card-padding: 24px;
  --card-radius: 16px;
  --pill-radius: 9999px;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.eyebrow {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 16px;
  border-radius: var(--pill-radius);
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 56px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 40px;
}

.section__header .eyebrow {
  margin-bottom: 16px;
}

.section__header p {
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Components --- */
.card {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  transition: background 0.2s;
}

.card:hover {
  background: var(--bg-card-hover);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--pill-radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: var(--bg-primary);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--bg-divider);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 4px 12px;
  border-radius: var(--pill-radius);
}

.tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, padding 0.3s;
}

.navbar--scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.navbar__logo img {
  height: 54px;
  width: auto;
  filter: invert(1);
}

.navbar__links {
  display: none;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.navbar__links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.navbar__links a:hover {
  color: var(--text-primary);
}

.navbar__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* Mobile nav overlay */
.nav--open,
.nav--open.navbar--scrolled {
  bottom: 0;
  background: #0A0A0A;
  backdrop-filter: none;
}

.nav--open .navbar__links {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0A0A0A;
  justify-content: center;
  align-items: center;
  gap: 24px;
  z-index: 200;
}

.nav--open .navbar__links a {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.nav--open .navbar__burger {
  z-index: 201;
}

.nav--open .navbar__burger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav--open .navbar__burger span:nth-child(2) {
  opacity: 0;
}

.nav--open .navbar__burger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% center;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.6) 60%,
    rgba(10, 10, 10, 1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 120px 24px 80px;
  max-width: 800px;
}

.hero__content h1 {
  margin-bottom: 16px;
}

.hero__subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* --- About --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.about__text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about__image {
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Coaches & Offerings (Bento Grid) --- */
.bento-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  padding: 32px;
  min-height: 300px;
}

.bento-card h3 {
  margin-bottom: 16px;
}

.bento-card p,
.bento-card li {
  color: var(--text-secondary);
}

.bento-card ul {
  list-style: none;
  padding: 0;
}

.bento-card ul li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.bento-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* --- Gallery --- */
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.gallery__item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery__item:first-child {
  background: #1A1A2E;
}

.gallery__item:first-child img {
  object-fit: contain;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

/* --- Results / Co se deje --- */
.results__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.result-card {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: background 0.2s;
}

.result-card:hover {
  background: var(--bg-card-hover);
}

.result-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #111;
}

.result-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.result-card__body {
  padding: var(--card-padding);
}

.result-card__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: none;
}

.result-card__meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.result-card__highlight {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.result-card--featured {
  grid-column: 1 / -1;
}

/* --- Media / V mediich --- */
.media__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.media-card {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  overflow: hidden;
}

.media-card__logo {
  padding: 24px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.media-card__logo img {
  max-height: 140px;
  max-width: 90%;
  height: auto;
  object-fit: contain;
}

.media-card__body {
  padding: var(--card-padding);
  border-top: 1px solid var(--bg-divider);
}

.media-card__date {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.media-card__title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  margin-bottom: 12px;
  line-height: 1.4;
}

.media-card__excerpt {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.media-card__link {
  font-size: 0.85rem;
  font-weight: 600;
}

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

.contact__info h3 {
  margin-bottom: 16px;
}

.contact__info p {
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.8;
}

.contact__info a {
  color: var(--accent);
}

.contact__map {
  border-radius: var(--card-radius);
  overflow: hidden;
  height: 300px;
}

/* --- Footer --- */
.footer {
  background: var(--bg-footer);
  padding: 48px 0 24px;
  margin-top: var(--section-gap);
}

.footer__partners {
  margin-bottom: 32px;
}

.footer__partners h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  text-align: center;
}

.footer__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.footer__logos img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: all 0.3s;
}

.footer__logos img:hover {
  filter: none;
  opacity: 1;
}

.footer__bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--bg-divider);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer__logo {
  display: inline;
  height: 2.1em;
  width: auto;
  filter: invert(1);
  opacity: 0.5;
  vertical-align: middle;
  margin: 0 4px;
}

/* --- Archive Page --- */
.page-header {
  padding: 120px 0 48px;
  text-align: center;
}

.page-header .eyebrow {
  margin-bottom: 16px;
}

.page-header p {
  color: var(--text-secondary);
  margin-top: 12px;
}

.back-link {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 102;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 768px) {
  .back-link {
    display: flex;
  }

  .has-back-link .navbar__logo {
    visibility: hidden;
  }
}

.season-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.season-pill {
  padding: 8px 20px;
  border-radius: var(--pill-radius);
  border: 1px solid var(--bg-divider);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.season-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.season-pill--active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  font-weight: 600;
}

.comp-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comp-card {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.2s;
}

.comp-card:hover {
  background: var(--bg-card-hover);
}

.comp-card__name {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.comp-card__meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.comp-card__best {
  font-size: 0.85rem;
}

.comp-card__best .tag {
  font-size: 0.75rem;
}

.comp-card__link {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}

.comp-card__link:hover {
  color: var(--accent);
}

/* --- Competition Detail Page --- */
.detail-header {
  padding: 100px 0 48px;
  text-align: center;
}

.detail-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-top: 16px;
}

.detail-header__meta {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 0.95rem;
}

.detail-header__image {
  margin-top: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--card-radius);
  overflow: hidden;
}

.detail-header__image img {
  width: 100%;
  height: auto;
  display: block;
}

.results-table {
  max-width: 900px;
  margin: 0 auto 48px;
}

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

.results-table thead th {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-divider);
}

.results-table tbody tr {
  border-bottom: 1px solid var(--bg-divider);
  transition: background 0.2s;
}

.results-table tbody tr:hover {
  background: var(--bg-card);
}

.results-table tbody td {
  padding: 16px;
  font-size: 0.9rem;
}

.results-table .result-best {
  border-left: 3px solid var(--accent);
}

.results-table .result-best td:first-child {
  color: var(--accent);
  font-weight: 700;
}

.detail-stats {
  max-width: 900px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  padding: 32px;
}

.stat-card__label {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.stat-card__value {
  font-size: 2.5rem;
  font-weight: 700;
}

.stat-card--accent .stat-card__value {
  color: var(--accent);
}

.detail-back {
  text-align: center;
  margin-top: 48px;
  margin-bottom: 64px;
}

/* --- Responsive --- */
@media (min-width: 640px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (min-width: 768px) {
  .section {
    padding: 100px 0;
  }

  .section__header {
    margin-bottom: 56px;
  }

  .navbar__links {
    display: flex;
  }

  .navbar__burger {
    display: none;
  }

  .about__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .bento-2 {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .results__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .media__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 1024px) {
  .container {
    padding: 0 48px;
  }

  .media__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .results__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
