/* =========================================================
   UP PRO HANDBALL LEAGUE
   FIXTURES PAGE
   White + Orange Professional Theme
   ========================================================= */

:root {
  --orange: #f47b20;
  --orange-dark: #d85d0b;
  --orange-light: #fff1e7;
  --dark: #202020;
  --text: #555;
  --white: #fff;
  --border: #e7e7e7;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   GENERAL
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: var(--dark);
  overflow-x: clip;
}

/* =========================================================
   HEADER
   ========================================================= */

header {
  background: #fff;
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.06);
}

.nav-links > li > a {
  transition: 0.3s ease;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--orange);
}

.nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 3px;
  background: var(--orange);
  border-radius: 20px;
  transform: translateX(-50%);
  transition: 0.3s ease;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
  width: 65%;
}

/* =========================================================
   HERO
   ========================================================= */

.fixtures-hero {
  min-height: 380px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(
      90deg,
      rgba(15, 15, 15, 0.88),
      rgba(15, 15, 15, 0.60),
      rgba(244, 123, 32, 0.30)
    ),
    url("../images/fixtures-banner.jpeg")
    center/cover no-repeat;
}

/* Orange decorative circle */

.fixtures-hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -120px;
  top: -120px;
  border: 55px solid rgba(244, 123, 32, 0.18);
  border-radius: 50%;
  animation: rotateCircle 15s linear infinite;
}

.fixtures-hero .container {
  position: relative;
  z-index: 2;
}

.fixtures-hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 15px;
  animation: slideUp 0.8s ease;
}

.fixtures-hero h1::first-letter {
  color: var(--orange);
}

.fixtures-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.7;
  animation: slideUp 0.9s ease 0.1s both;
}

/* =========================================================
   FIXTURES SECTION
   ========================================================= */

.fixtures-section {
  padding: 80px 0;

  background:
    linear-gradient(
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.94)
    ),
    url("../images/fixtures-banner.jpeg")
    center/cover fixed no-repeat;
}

.fixtures-container {
  max-width: 1050px;
  margin: 0 auto;
}

/* =========================================================
   DATE TITLE
   ========================================================= */

.fixtures-date-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  color: var(--dark);
  font-size: 1.25rem;
  font-weight: 700;

  margin: 0 0 18px;
  padding-left: 18px;

  border-left: 5px solid var(--orange);
}

.fixtures-date-title span {
  display: inline-block;

  color: var(--orange-dark);
  background: var(--orange-light);

  padding: 7px 14px;
  border-radius: 30px;

  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

/* =========================================================
   MATCH CARD
   ========================================================= */

.match-card {
  position: relative;

  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;

  min-height: 180px;

  padding: 30px 35px;

  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border);
  border-radius: 16px;

  box-shadow: var(--shadow);

  overflow: hidden;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.match-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;

  width: 5px;
  height: 100%;

  background: var(--orange);
}

.match-card::after {
  content: "";
  position: absolute;

  width: 130px;
  height: 130px;

  right: -65px;
  bottom: -65px;

  border-radius: 50%;

  background: rgba(244, 123, 32, 0.06);
}

.match-card:hover {
  transform: translateY(-7px);
  border-color: rgba(244, 123, 32, 0.35);
  box-shadow: 0 18px 40px rgba(244, 123, 32, 0.13);
}

/* =========================================================
   TEAM
   ========================================================= */

.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px;
  text-align: center;
}

.fixture-team-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 6px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
  flex-shrink: 0;
  overflow: hidden;
}

.fixture-team-logo svg,
.fixture-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.match-card:hover .fixture-team-logo {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 12px 28px rgba(244, 123, 32, 0.25);
}

.match-team .fixture-team-name,
.match-team span {
  color: var(--dark);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.25;
  transition: 0.3s ease;
}

.match-card:hover .match-team .fixture-team-name,
.match-card:hover .match-team span {
  color: var(--orange-dark);
}

/* =========================================================
   CENTER MATCH INFORMATION
   ========================================================= */

.match-versus {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  padding: 10px 20px;

  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
}

/* VS */

.vs-badge {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 55px;
  height: 55px;

  background: var(--orange);
  color: #fff;

  border-radius: 50%;

  font-size: 0.9rem;
  font-weight: 800;

  box-shadow: 0 7px 18px rgba(244, 123, 32, 0.25);

  margin-bottom: 12px;

  transition: 0.35s ease;
}

.match-card:hover .vs-badge {
  transform: scale(1.08) rotate(5deg);
  background: var(--orange-dark);
}

/* TIME */

.match-time {
  color: var(--dark);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 5px;
}

/* VENUE */

.match-venue {
  color: #777;
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.5;
}

/* =========================================================
   COMPLETED MATCH
   ========================================================= */

.match-score {
  color: var(--dark);
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.score-badge {
  display: inline-block;

  padding: 6px 13px;

  background: #eeeeee;
  color: #555;

  border-radius: 30px;

  font-size: 0.75rem;
  font-weight: 600;

  margin-bottom: 10px;
}

/* =========================================================
   SPACING BETWEEN MATCHES
   ========================================================= */

.fixtures-container > br {
  display: block;
  content: "";
  height: 25px;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  background: #181818;
}

.footer-links a {
  transition: 0.3s ease;
}

.footer-links a:hover {
  color: var(--orange);
  padding-left: 5px;
}

.footer-col h4::after {
  content: "";
  display: block;

  width: 35px;
  height: 3px;

  margin-top: 8px;

  background: var(--orange);
  border-radius: 20px;
}

.social-icons a {
  transition: 0.3s ease;
}

.social-icons a:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-4px);
}

.footer-contact i {
  color: var(--orange);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateCircle {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 992px) {

  .fixtures-container {
    max-width: 90%;
  }

  .match-card {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 25px 20px;
  }

  .match-team span {
    font-size: 1.1rem;
  }

  .match-versus {
    padding: 10px 12px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

  .fixtures-hero {
    min-height: 320px;
    text-align: center;
  }

  .fixtures-hero h1 {
    font-size: 2.5rem;
  }

  .fixtures-hero p {
    font-size: 0.95rem;
  }

  .fixtures-section {
    padding: 55px 0;
    background-attachment: scroll;
  }

  .fixtures-container {
    max-width: 92%;
  }

  .fixtures-date-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;

    font-size: 1.05rem;
    padding-left: 12px;
  }

  .match-card {
    grid-template-columns: 1fr;
    gap: 15px;

    padding: 25px 18px;
  }

  .match-team {
    padding: 8px;
    gap: 8px;
  }

  .fixture-team-logo {
    width: 62px;
    height: 62px;
    padding: 6px;
  }

  .match-team .fixture-team-name,
  .match-team span {
    font-size: 1.1rem;
  }

  .match-versus {
    border-left: none;
    border-right: none;

    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;

    padding: 20px 10px;
  }

  .vs-badge {
    width: 48px;
    height: 48px;
  }

  .match-venue {
    max-width: 280px;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

  .fixtures-hero {
    min-height: 285px;
  }

  .fixtures-hero h1 {
    font-size: 2.15rem;
  }

  .fixtures-hero p {
    font-size: 0.9rem;
  }

  .fixtures-date-title span {
    font-size: 0.7rem;
  }

  .match-card {
    padding: 22px 15px;
  }

  .match-team span {
    font-size: 1.05rem;
  }

  .match-time {
    font-size: 1rem;
  }

  .match-score {
    font-size: 1.4rem;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}