html {
  font-size: 14px;
}

:root {
  --color-surface-dark: #101417;
  --color-surface-ink: #05080c;
  --color-surface-card: #171d21;
  --color-text-light: #fff;
  --color-text-dark: #111;
  --color-accent-gold: #f5c95b;
  --color-accent-gold-hover: #ffd86d;
  --color-focus-ring: #258cfb;
  --color-border-muted: #d9dde3;
  --color-surface-light: #f6f7f9;
  --color-text-muted: #667085;
  --color-surface-ink-rgb: 5, 8, 12;
  --color-text-light-rgb: 255, 255, 255;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--color-text-light), 0 0 0 0.25rem var(--color-focus-ring);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: var(--color-surface-dark);
  color: var(--color-text-light);
}

.app-navbar {
  border-bottom: 1px solid rgba(var(--color-text-light-rgb), 0.1);
  background: var(--color-surface-dark);
}

.app-navbar .navbar-brand,
.app-navbar .nav-link {
  color: var(--color-text-light);
}

.app-navbar .navbar-brand {
  font-weight: 800;
}

.app-navbar .nav-link {
  font-weight: 700;
  opacity: 0.82;
}

.app-navbar .navbar-brand:hover,
.app-navbar .navbar-brand:focus,
.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
  color: var(--color-accent-gold);
  opacity: 1;
}

.app-navbar .navbar-toggler {
  border-color: rgba(var(--color-text-light-rgb), 0.28);
}

.app-navbar .navbar-toggler:focus {
  box-shadow: none;
}

.app-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.86%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero-section {
  position: relative;
  isolation: isolate;
  width: 100vw;
  min-height: clamp(560px, 82vh, 860px);
  margin: -1rem 0 0 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  overflow: hidden;
  color: var(--color-text-light);
  text-align: center;
  background: url("../images/hero-image.png") center top / cover no-repeat;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(var(--color-surface-ink-rgb), 0.08), rgba(var(--color-surface-ink-rgb), 0.34)),
    radial-gradient(circle at center, rgba(var(--color-surface-ink-rgb), 0.04), rgba(var(--color-surface-ink-rgb), 0.26));
}

.hero-content {
  position: relative;
  max-width: 900px;
}

.hero-subtitle {
  margin-bottom: 1rem;
  color: var(--color-accent-gold);
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-section h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.6rem, 6vw, 5.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-title-accent {
  color: var(--color-accent-gold);
}

.hero-description {
  max-width: 760px;
  margin: 0 auto 2rem;
  color: rgba(var(--color-text-light-rgb), 0.9);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 170px;
  border-radius: 6px;
  font-weight: 700;
}

.hero-actions .btn-icon {
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
}

.hero-actions .btn:focus,
.hero-actions .btn:active:focus {
  box-shadow: none;
}

.hero-actions .btn-primary {
  border-color: var(--color-accent-gold);
  background-color: var(--color-accent-gold);
  color: var(--color-text-dark);
}

.hero-actions .btn-primary:hover,
.hero-actions .btn-primary:focus {
  border-color: var(--color-accent-gold-hover);
  background-color: var(--color-accent-gold-hover);
  color: var(--color-text-dark);
}

.trending-bets-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.tips-feed-section {
  padding: 0 0 clamp(3rem, 6vw, 5rem);
}

.section-heading {
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-kicker {
  margin-bottom: 0.35rem;
  color: var(--color-accent-gold);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: var(--color-text-light);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0;
}

.trending-bets-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}

.trending-carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.trending-carousel-button {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--color-text-light-rgb), 0.16);
  border-radius: 6px;
  background: var(--color-surface-card);
  color: var(--color-text-light);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.trending-carousel-button:hover,
.trending-carousel-button:focus {
  border-color: var(--color-accent-gold);
  color: var(--color-accent-gold);
}

.trending-carousel-button:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.trending-carousel-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.trending-bets-carousel {
  margin: 0 -0.75rem;
  overflow: hidden;
}

.trending-bets-track {
  display: grid;
  grid-auto-columns: minmax(280px, calc((100% - 2rem) / 3));
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 0.75rem 0.75rem;
  scroll-behavior: smooth;
  scroll-padding-inline: 0.75rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.trending-bets-track::-webkit-scrollbar {
  display: none;
}

.trending-bet {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(var(--color-text-light-rgb), 0.12);
  border-radius: 8px;
  background: var(--color-surface-card);
  scroll-snap-align: start;
}

.trending-bet-header,
.trending-bet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.trending-bet-header span {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trending-matchup {
  display: grid;
  gap: 0.85rem;
}

.trending-logos {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.trending-logos img {
  width: 56px;
  height: 56px;
  justify-self: center;
}

.trending-team-names {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  text-align: center;
}

.trending-team-names span {
  color: var(--color-text-light);
  font-weight: 800;
  line-height: 1.2;
}

.trending-versus {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trending-bet-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--color-text-light-rgb), 0.12);
}

.trending-bet-footer span {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.trending-bet-footer strong {
  color: var(--color-accent-gold);
  font-size: 1.5rem;
  line-height: 1;
}

.tips-feed-list {
  display: grid;
  gap: 1rem;
}

.tips-feed-item {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  align-items: stretch;
  gap: 0.65rem;
  padding: 1.25rem;
  border: 1px solid rgba(var(--color-text-light-rgb), 0.12);
  border-radius: 8px;
  background: var(--color-surface-card);
}

.tips-feed-item:has(.tips-feed-content:only-child) {
  grid-template-columns: 1fr;
}

.tips-feed-image {
  min-height: 150px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--color-surface-ink);
}

.tips-feed-image img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.tips-feed-content {
  display: grid;
  gap: 0.65rem;
  align-content: center;
}

.tips-feed-item time {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-accent-gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tips-feed-item h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.tips-feed-item a {
  color: var(--color-text-light);
  text-decoration: none;
}

.tips-feed-item a:hover,
.tips-feed-item a:focus {
  color: var(--color-accent-gold);
}

.tips-feed-item p,
.tips-feed-empty {
  margin: 0;
  color: rgba(var(--color-text-light-rgb), 0.74);
  line-height: 1.55;
}

.tips-feed-empty {
  padding: 1.25rem;
  border: 1px solid rgba(var(--color-text-light-rgb), 0.12);
  border-radius: 8px;
  background: var(--color-surface-card);
  text-align: center;
}

@media (max-width: 575.98px) {
  .hero-section {
    min-height: min(760px, calc(100svh - 88px));
    align-items: center;
    padding: 5.5rem 1rem 4rem;
    background: var(--color-surface-dark);
  }

  .hero-section::before {
    display: none;
  }

  .hero-content {
    max-width: 34rem;
  }

  .hero-subtitle {
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
  }

  .hero-section h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.15rem, 12vw, 3.25rem);
    line-height: 1.04;
  }

  .hero-description {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.45;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trending-bets-section {
    padding: 2.5rem 0;
  }

  .tips-feed-section {
    padding-bottom: 2.5rem;
  }

  .section-heading {
    text-align: left;
  }

  .trending-bets-heading {
    align-items: center;
  }

  .trending-bets-carousel {
    margin-right: -0.75rem;
  }

  .trending-bets-track {
    grid-auto-columns: minmax(260px, 86%);
  }

  .trending-bet {
    min-height: auto;
  }

  .tips-feed-item {
    grid-template-columns: 1fr;
  }

  .tips-feed-image,
  .tips-feed-image img {
    min-height: 180px;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 720px;
    padding: 5rem 2rem;
    background-position: center top;
  }

  .hero-section h1 {
    font-size: clamp(3.25rem, 9vw, 4.75rem);
  }

  .trending-bets-track {
    grid-auto-columns: minmax(280px, calc((100% - 1rem) / 2));
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
