/* CSS */

body {
    font-family: 'Roboto', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bangers', cursive;
}
h1 {
  font-size: 4rem;
}
h2 {
  font-size: 3.5rem;
}
h3 {
  font-size: 2.5rem;
}
h4 {
  font-size: 2rem;
}

.hero-section {
    position: relative;
  }

  .hero-image {
    position: relative;
    height: 400px; /* Set height for desktop */
  }

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

  .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff; /* Text color */
    background: rgba(0,0,0,0.4);
    align-items: center;
    display: flex;
    width: 100%;
    height: 100% ;
  }

  /* Media Query for smaller screens */
  @media (max-width: 768px) {
    .hero-image {
      height: 500px; /* Adjust height for mobile devices */
    }
  }




  /* Header */
  .navbar {
    /* background-color: #FF8C00;*/ /* Orange */
    background-color: var(--primary-color);
  }
  .navbar-nav .nav-link {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.1rem;
  }

  .navbar-dark .navbar-nav .nav-link {
    /* color: #000; */ /* Black */
    color: var(--secondary-color)
  }

  .navbar-dark .navbar-nav .nav-link:hover {
    color: #fff; /* White */
  }

  /* Hero Text */
  .hero-text h1,
  .hero-text p {
    color: #fff; /* White */
  }

  /* Footer */
  .footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 20px 0;
  }
  .footer a {
    color: #FFF;
  }

  /* Standings Section */
  #standings {
    background-color: var(--primary-alt-color);
    color: var(--secondary-color);
  }

  /* Fixtures Section */
  #fixtures {
    background-color: var(--secondary-color);
    color: var(--primary-alt-color);
  }
  #fixtures h4 {
    color: var(--primary-color);
  }

  /* About Section */
  #record {
    background-color: var(--primary-color);
    color: var(--secondary-color);
  }

  /* Contact Section */
  #contact {
    background-color: var(--secondary-alt-color);
    color: var(--primary-alt-color);
  }
  #contact a {
    color: var(--primary-color);
  }

  /* Media Query for smaller screens */
  @media (max-width: 768px) {
    .hero-image {
      height: 500px; /* Adjust height for smaller screens */
    }
  }
  .text-big {
    font-size: 5rem; /* Adjust font size as needed */
  }






.goalnet-geo {
  position: relative;   /* IMPORTANT: keeps ::after inside the section */
  overflow: hidden;
}


/* === Soccer ball overlay on the right (keeps class name goalnet-geo) === */
.goalnet-geo::after {
  /* ---- Controls you can tweak ---- */
  --ball-size: 590px;         /* diameter of the ball */
  --ball-opacity: 0.22;       /* 0–1: overall visibility */
  --ball-rotate: -8deg;       /* small tilt to match the angle of your shapes */
  --ball-offset-x: -121px;     /* push into the right edge (negative moves outward) */
  --ball-offset-y: 0px;       /* raise/lower the ball */
  --ball-blend: normal;       /* try: multiply | screen | overlay | soft-light */

  content: "";
  position: absolute;
  width: var(--ball-size);
  height: var(--ball-size);
  right: var(--ball-offset-x);
  top: calc(50% + var(--ball-offset-y));
  transform: translateY(-50%) rotate(var(--ball-rotate));
  transform-origin: center;

  /* ⬇️ Replace this with the image you just generated (URL or data URI) */
  background-image: url("/static/sports/images/soccer-ball-drawing.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  /* Make it feel like part of the background */
  opacity: var(--ball-opacity);
  mix-blend-mode: var(--ball-blend);  /* optional blending */

  /* Keep it inside the same angled polygon footprint as your net */
  clip-path: polygon(25% 0%, 100% 0%, 100% 80%, 45% 100%, 0% 70%);

  /* Feather the left edge so it blends into the base */
  -webkit-mask-image: linear-gradient(to left, transparent 0%, black 18%, black 100%);
          mask-image: linear-gradient(to left, transparent 0%, black 18%, black 100%);

  pointer-events: none;
  z-index: 1;  /* text is z-index:2, net ::before is z-index:1 – this will sit with it */


  mix-blend-mode: multiply;
  opacity: var(--ball-opacity, 0.22);

}

/* Mobile tuning (optional) */
@media (max-width: 768px) {
  .goalnet-geo::after {
    --ball-size: 300px;
    --ball-opacity: 0.18;
    --ball-offset-x: -80px;
    --ball-rotate: -6deg;
  }
}



/* === Fixture List === */
/* -------------------------------
   Base tokens (adjust as needed)
--------------------------------*/
:root{
  --row-divider: rgba(0,0,0,.08);
  --muted: #6b7280;
  --ink: #111827;
}

/* -------------------------------
   List container
--------------------------------*/
.fixtures-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* A single fixture row (mobile-first) */
.fixture-row {
  display: grid;
  grid-template-columns: 1fr; /* stack by default on small screens */
  gap: 0.75rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--row-divider);
}

/* LEFT: Date + optional league logo */
.fix-left {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.fix-left .league {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}

.date-wrap {
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.date-wrap .dow {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}
.date_wrap .dom,
.date-wrap .dom {
  font-size: .9rem;
  color: var(--muted);
}

/* CENTER BLOCK */
.fix-center {
  display: block;
}

/* TOP ROW: grid with home | pill | away | badge space (auto) */
.row-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
  width: 100%;
}

/* TEAM NAME BLOCK */
.team-name-block {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;
  min-width: 0; /* allow truncation */
}

.team-name-block img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
  flex: 0 0 auto;
}

.team-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Middle pill (score/time) */
.mid-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .25rem .5rem;
  border-radius: 999px;
  background: rgba(0,0,0,.04);
  font-weight: 700;
  min-width: 70px;
}
.mid-pill .score,
.mid-pill .time { font-variant-numeric: tabular-nums; }

/* Badges */
.badge.small {
  font-size: .7rem;
  padding: .1rem .4rem;
  border-radius: .4rem;
  background: rgba(0,0,0,.06);
  color: #333;
}
.badge.small.muted { opacity: .7; }
.badge.small.tz { background: rgba(0,0,0,.08); }

/* RIGHT: location text (placed under center on mobile) */
.fix-right {
  color: var(--muted);
  font-size: .9rem;
}

/* Empty state */
.fixture-row.empty {
  text-align: center;
  color: var(--muted);
}

/* -------------------------------
   Responsive breakpoints
--------------------------------*/

/* ≥ 480px: slightly denser */
@media (min-width: 480px) {
  .mid-pill { min-width: 82px; }
}

/* ≥ 640px: three-column layout returns */
@media (min-width: 640px) {
  .fixture-row {
    display: grid;
    grid-template-columns: 140px 1fr 220px; /* left | center | right */
    align-items: center;
    gap: 1rem;
    padding: 16px 0;
  }

  .fix-left { gap: .9rem; }
  .fix-left .league {
    width: 32px;
    height: 32px;
  }

  .team-name-block img { width: 32px; height: 32px; }
  .team-name { font-size: 1.02rem; }

  .fix-right {
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ≥ 768px: original spacing, nicer grid */
@media (min-width: 768px) {
  .fixture-row {
    gap: 1.25rem;
    padding: 18px 0;
  }

  .row-top {
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
  }

  .fix-left .league { width: 34px; height: 34px; }
  .team-name-block img { width: 34px; height: 34px; }
  .team-name { font-size: 1.05rem; font-weight: 800; }
}

/* ≥ 1024px: align with your original desktop intent */
@media (min-width: 1024px) {
  .fixture-row {
    gap: 1.5rem;
    padding: 20px 0;
  }
  .fix-left { min-width: 120px; } /* from your original */
}

/* -------------------------------
   Helpful truncation helpers
--------------------------------*/
.home-name, .away-name { min-width: 0; }
.loc-text {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}





/* =========================================
   RESULTS PAGE — fix desktop + allow name wrap
   ========================================= */

/* 1) Let grid columns actually shrink on long content */
.page-results .row-top > * { min-width: 0; }

/* 2) Team names: wrap (no ellipsis), break long words safely */
.page-results .team-name {
  font-weight: 800;               /* keep your bold look */
  line-height: 1.25;
  white-space: normal;            /* <-- was nowrap */
  overflow: visible;              /* remove clipping */
  text-overflow: clip;            /* remove ellipsis */
  overflow-wrap: anywhere;        /* wrap long words */
  word-break: break-word;         /* fallback */
  hyphens: auto;                  /* nicer hyphenation when supported */
}

/* 3) Keep logos from shrinking; allow multi-line alignment */
.page-results .team-name-block {
  display: inline-flex;
  align-items: center;            /* center vs multi-line text looks good */
  gap: .5rem;
}
.page-results .team-name-block img {
  flex: 0 0 28px;                 /* don't shrink the avatar */
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}

/* 4) Score pill stays centered; badge stays on the right */
.page-results .row-top {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto;  /* home | pill | away | badge */
  align-items: center;
  column-gap: .75rem;
}
.page-results .score-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(0,0,0,.05);
  font-weight: 800;
  min-width: 78px;
}
.page-results .result-badge { justify-self: end; }

/* 5) Desktop alignment: names hug the pill */
@media (min-width: 1024px) {
  .page-results .home-name { justify-content: flex-end; text-align: right; }
  .page-results .away-name { justify-content: flex-start; text-align: left; }

  /* give the date column a predictable width and keep center wide */
  .page-results .fixture-row {
    display: grid;
    grid-template-columns: 160px 1fr;   /* left date | center block */
    align-items: start;
    gap: 1.25rem;
  }
}

/* 6) Tablet: scale logos/names a touch */
@media (min-width: 768px) {
  .page-results .team-name-block img { width: 34px; height: 34px; }
  .page-results .team-name { font-size: 1.05rem; }
}

/* 7) Mobile tweaks: everything centered except badge stays at row end */
@media (max-width: 639.98px) {
  .page-results .fixture-row {
    grid-template-columns: 1fr;        /* stack date above center */
    gap: .6rem;
  }
  .page-results .team-name-block { justify-content: center; text-align: center; }
  .page-results .result-badge { justify-self: end; } /* keep on the right edge */
  .page-results .score-block { min-width: 72px; padding: .22rem .5rem; }
}

/* 8) Goals list stays close to the line */
.page-results .row-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* home goals | away goals */
  gap: .75rem;
  margin-top: .5rem;
}
.page-results .goal-list { list-style: none; margin: 0; padding: 0; line-height: 1.35; }
.page-results .goal-list li { white-space: normal; overflow-wrap: anywhere; }





/* SCORE PILL */
.score-block {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.score {
  background: var(--primary-alt-color);
  color: var(--secondary-alt-color);
  font-weight: 800;
  padding: .45rem .55rem;
  border-radius: .5rem;
  min-width: 60px;
}

/* RESULT BADGES */
.record-wrapper {
  text-align:center;
  margin-top:20px;
}

.record-numbers,
.record-labels {
  display:grid;
  grid-template-columns: repeat(3, 80px);
  justify-content:center;
  gap:30px;
}

.record-numbers span {
  font-size:4.5rem;
  font-weight:800;
  position:relative;
}

/* draw hyphens between numbers */
.record-numbers span:not(:last-child)::after {
  content:"-";
  position:absolute;
  right:-30px;
  top:50%;
  transform:translateY(-50%);
  font-size:3.5rem;
}

.record-labels {
  margin-top:12px;
  font-weight:700;
}

.res {
  padding: .4rem .6rem;
  border-radius: .35rem;
  font-weight: 700;
  color: #fff;
}
.res.win  { background: #28a745; }
.res.loss { background: #dc3545; }
.res.draw { background: #6c757d; }



/* BOTTOM ROW: GOAL LISTS */
.row-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  width: 100%;
  margin-top: .5rem;
}

.goal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .85rem;
  color: var(--text-color);
}
.goal-list li {
  margin-bottom: 3px;
  text-align: center;
}

/* Empty state */
.fixture-row.empty {
  justify-content: center;
  color: var(--muted);
}

/* MOBILE */
@media (max-width: 768px) {
  .fixture-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .row-top,
  .row-bottom {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }

  .score-block {
    justify-content: center;
  }
}







/* Player Cards */
.player-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.player-card {
  position: relative;
  border-radius: 15px;
  height: 300px;
  color: orange;
  overflow: hidden;
  backdrop-filter: blur(10px);
  background-color: rgba(225, 225, 225, 0.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;

}

.player-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.player-info {
  position: absolute;
  bottom: 0px;

  padding: 10px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.player-number {
  margin: 0;
  font-size: 1.9em;
  color: var(--accent-color);
  font-weight: bolder;
  text-align: left;
}

.player-info .separator {
  width: 35px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 5px 0;
}

.player-name {
  display: flex;
  flex-direction: column;
}

.first-name, .last-name {
  color: white;
  margin: 0;
  font-size: 2.2em;
  text-align: left;
}

.first-name {
  line-height: 1.1;
}

.player-photo {
  width: 46px;
  height: 46px;
  border-radius: 50%
}

/* So that there is no more than 4 columns*/
@media (min-width: 1200px) {
  .player-container {
    grid-template-columns: repeat(4, 1fr);
  }
}
