/* =========================================================
   FYNSLUND BK HÅNDBOLD · STILLINGER
   CSS til stillinger.html
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

:root {
  --green-950: #032b17;
  --green-900: #054523;
  --green-800: #07602b;
  --green-700: #0a7a2f;
  --green-600: #119541;
  --green-500: #16a34a;
  --green-100: #dcfce7;

  --gold-500: #e2b93b;
  --gold-400: #f0cb55;
  --gold-100: #fff4c7;

  --navy-950: #030712;
  --navy-900: #07111f;
  --navy-800: #0d1b2f;
  --navy-700: #17243a;

  --white: #ffffff;
  --surface: #f7f9fc;
  --surface-2: #eef2f7;

  --text: #101828;
  --text-soft: #344054;
  --muted: #667085;
  --line: #e4e7ec;

  --win: #16a34a;
  --draw: #f59e0b;
  --loss: #dc2626;

  --shadow-sm: 0 9px 26px rgba(3, 7, 18, 0.08);
  --shadow-md: 0 20px 52px rgba(3, 7, 18, 0.14);
  --shadow-lg: 0 34px 90px rgba(3, 7, 18, 0.28);

  --container: 1320px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 22%, rgba(22, 163, 74, 0.07), transparent 27%),
    radial-gradient(circle at 94% 78%, rgba(226, 185, 59, 0.08), transparent 24%),
    #f3f6fa;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--navy-950);
  background: var(--gold-400);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(3, 7, 18, 0.9);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--container));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
  color: var(--white);
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
  padding: 6px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--white);
  box-shadow:
    0 9px 22px rgba(0, 0, 0, 0.28),
    0 0 0 2px rgba(226, 185, 59, 0.42);
  transition: transform 0.25s ease;
}

.brand:hover img {
  transform: translateY(-2px) scale(1.04);
}

.brand-text {
  display: grid;
  line-height: 1.08;
}

.brand-text small {
  color: var(--gold-400);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.brand-text strong {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.main-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #d0d5dd;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: var(--white);
}

/* =========================================================
   HERO
========================================================= */

.standings-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 84px 20px 72px;
  color: var(--white);
  background:
    linear-gradient(118deg, rgba(3, 7, 18, 0.99), rgba(7, 17, 31, 0.97) 47%, rgba(5, 69, 35, 0.95));
}

.standings-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: min(850px, 72vw);
  aspect-ratio: 1;
  right: -270px;
  top: 47%;
  transform: translateY(-50%);
  background: url("images/logo/fynslund.png") center / contain no-repeat;
  opacity: 0.04;
}

.standings-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 185, 59, 0.75), transparent);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
}

.hero-glow-one {
  width: 500px;
  height: 500px;
  left: -220px;
  top: -250px;
  background: rgba(22, 163, 74, 0.18);
}

.hero-glow-two {
  width: 420px;
  height: 420px;
  right: 11%;
  bottom: -300px;
  background: rgba(226, 185, 59, 0.12);
}

.hero-inner {
  width: min(100%, 1240px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(310px, 0.7fr);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
}

.breadcrumb {
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: #8f9bad;
  font-size: 12px;
  font-weight: 750;
}

.breadcrumb a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb strong {
  color: #d0d5dd;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-400);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.eyebrow-dark {
  color: var(--green-700);
}

.hero-copy h1 {
  margin-top: 17px;
  font-size: clamp(56px, 7vw, 92px);
  font-weight: 950;
  line-height: 0.86;
  letter-spacing: -4px;
  text-transform: uppercase;
}

.hero-copy > p {
  max-width: 670px;
  margin-top: 27px;
  color: #cbd5e1;
  font-size: clamp(16px, 1.45vw, 19px);
  font-weight: 550;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 51px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  box-shadow: 0 14px 34px rgba(226, 185, 59, 0.24);
}

.button-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.standings-card {
  position: relative;
  min-height: 410px;
  padding: 36px 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 35px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.standings-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

.identity-label {
  position: absolute;
  top: 22px;
  left: 23px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--gold-400);
  background: rgba(3, 7, 18, 0.34);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.identity-logo {
  width: 146px;
  height: 146px;
  padding: 12px;
  border-radius: 50%;
  background: var(--white);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.34),
    0 0 0 5px rgba(226, 185, 59, 0.32);
}

.identity-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.standings-card > p {
  margin-top: 25px;
  color: var(--gold-400);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.standings-card h2 {
  margin-top: 5px;
  font-size: 29px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.8px;
  text-transform: uppercase;
}

.identity-season {
  margin-top: 9px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 1.5px;
}

.identity-line {
  width: 72px;
  height: 3px;
  margin-top: 21px;
  border-radius: 999px;
  background: var(--gold-400);
}

.standings-card small {
  margin-top: 14px;
  color: #9eabba;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
}

/* =========================================================
   STILLINGER
========================================================= */

.standings-section,
.standings-help-section {
  padding: 92px 20px 108px;
}

.standings-help-section {
  padding-top: 0;
}

.section-shell {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h2 {
  margin-top: 10px;
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -2px;
}

.section-heading p {
  max-width: 720px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
}

.standings-count {
  min-width: 118px;
  padding: 15px 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.standings-count strong {
  color: var(--green-700);
  font-size: 27px;
  font-weight: 950;
  line-height: 1;
}

.standings-count span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.standings-list {
  margin-top: 34px;
  display: grid;
  gap: 34px;
}

.standings-board {
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.09);
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
}

.standings-board-header {
  padding: 24px 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 93% 0%, rgba(22, 163, 74, 0.18), transparent 32%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.standings-board-header span {
  color: var(--gold-400);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.standings-board-header h3 {
  margin-top: 4px;
  font-size: 26px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.8px;
}

.standings-board-header p {
  max-width: 620px;
  margin-top: 6px;
  color: #aab4c3;
  font-size: 12px;
  font-weight: 650;
}

.standings-board-meta {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #d0d5dd;
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.6px;
}

.standings-table-scroll {
  overflow-x: auto;
}

.standings-grid {
  min-width: 850px;
  display: grid;
}

.standings-header,
.standings-row {
  display: grid;
  grid-template-columns:
    58px
    minmax(260px, 1fr)
    58px
    58px
    58px
    58px
    120px
    74px
    62px;
  align-items: center;
}

.standings-header {
  min-height: 54px;
  color: var(--text-soft);
  background: #f2f4f7;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.standings-header > div,
.standings-row > div {
  min-width: 0;
  padding: 13px 12px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.standings-header > div:last-child,
.standings-row > div:last-child {
  border-right: 0;
}

.standings-row {
  min-height: 66px;
  color: var(--text-soft);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 750;
}

.standings-row:last-child {
  border-bottom: 0;
}

.standings-row:hover {
  background: #f9fafb;
}

.standings-rank {
  color: var(--text);
  font-weight: 950;
}

.standings-team {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left !important;
}

.standings-team img {
  width: 42px;
  height: 42px;
  padding: 5px;
  flex: 0 0 42px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 50%;
  object-fit: contain;
  background: var(--white);
  box-shadow: 0 7px 15px rgba(16, 24, 40, 0.09);
}

.standings-team span {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standings-row.is-fynslund {
  color: var(--white);
  background:
    radial-gradient(circle at 95% 0%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, var(--green-500), #1fff00);
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

.standings-row.is-fynslund:hover {
  background:
    radial-gradient(circle at 95% 0%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, var(--green-600), #22ff08);
}

.standings-row.is-fynslund > div {
  border-right-color: rgba(255, 255, 255, 0.28);
}

.standings-row.is-fynslund .standings-rank,
.standings-row.is-fynslund .standings-team span,
.standings-row.is-fynslund div {
  color: var(--navy-950);
  font-weight: 950;
}

.standings-row.is-fynslund .standings-team img {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 9px 18px rgba(3, 7, 18, 0.18),
    0 0 0 3px rgba(255, 255, 255, 0.35);
}

.standings-diff-positive {
  color: var(--win);
  font-weight: 950;
}

.standings-diff-negative {
  color: var(--loss);
  font-weight: 950;
}

.standings-row.is-fynslund .standings-diff-positive,
.standings-row.is-fynslund .standings-diff-negative {
  color: var(--navy-950);
}

.standings-empty,
.standings-noscript {
  padding: 34px 24px;
  border: 1px dashed rgba(16, 24, 40, 0.2);
  border-radius: 20px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.standings-empty h3,
.standings-noscript h3 {
  color: var(--text);
  font-size: 20px;
  font-weight: 950;
}

.standings-empty p,
.standings-noscript p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.standings-explainer-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.standings-explainer-grid article {
  min-height: 104px;
  padding: 17px 14px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.standings-explainer-grid strong {
  color: var(--green-700);
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.standings-explainer-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding: 24px 20px;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--navy-950);
}

.footer-inner {
  width: min(100%, 1240px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.footer-brand img {
  width: 46px;
  height: 46px;
  padding: 5px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--white);
}

.footer-brand span {
  display: grid;
}

.footer-brand strong {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-brand small {
  color: #8f9bad;
  font-size: 10px;
  font-weight: 650;
}

.back-to-top {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.back-to-top:hover {
  color: var(--white);
  border-color: rgba(226, 185, 59, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr 320px;
    gap: 44px;
  }

  .standings-explainer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .header-inner {
    min-height: 76px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(3, 7, 18, 0.98);
    box-shadow: var(--shadow-lg);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 14px;
    text-align: center;
  }

  .standings-hero {
    padding-top: 68px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .breadcrumb,
  .hero-actions {
    justify-content: center;
  }

  .hero-copy > p {
    margin-inline: auto;
  }

  .standings-card {
    width: min(100%, 470px);
    min-height: 365px;
    margin-inline: auto;
  }

  .section-heading {
    align-items: flex-start;
  }

  .standings-board-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .standings-hero {
    padding-inline: 14px;
  }

  .standings-section,
  .standings-help-section {
    padding-inline: 14px;
  }

  .section-heading {
    flex-direction: column;
  }

  .standings-count {
    min-width: 0;
    width: 100%;
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 8px;
  }

  .standings-count span {
    margin-top: 0;
  }

  .standings-board-header {
    padding: 22px 18px;
  }

  .standings-explainer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .header-inner {
    width: min(calc(100% - 24px), var(--container));
  }

  .brand-text small {
    display: none;
  }

  .hero-copy h1 {
    font-size: 52px;
    letter-spacing: -2.8px;
  }

  .hero-copy > p {
    font-size: 14px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .standings-card {
    min-height: 330px;
    padding: 30px 18px;
  }

  .identity-logo {
    width: 126px;
    height: 126px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .standings-board-header h3 {
    font-size: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}