/* ==========================================================================
   Liga predstavitev (A / B) — temna cona, nadaljuje hero
   ========================================================================== */
.league-intro {
  background: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 36px 0 6px;
}
.league-intro__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.league-intro__fade-bottom {
  display: none;
}
.league-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.league-intro__grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.league-intro__card {
  border-radius: 10px;
  padding: 32px 32px 120px;
  color: white;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
}
.league-intro__card--a { background: linear-gradient(135deg, var(--pitch-green) 0%, var(--pitch-green-dark) 100%); }
.league-intro__card--b { background: var(--ink); }
.league-intro__card--v { background: linear-gradient(135deg, #4A4438 0%, #2E2A22 100%); }

.league-intro__card--photo {
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.2s ease;
}
.league-intro__card--photo::before {
  content: none;
}
.league-intro__card--photo:hover { transform: translateY(-3px); }
.league-intro__card--photo.league-intro__card--a { background-image: url('../img/card-a.webp'); }
.league-intro__card--photo.league-intro__card--b { background-image: url('../img/card-b.webp'); }
.league-intro__card--photo.league-intro__card--v { background-image: url('../img/card-v.webp'); }
.league-intro__card--photo > * { position: relative; z-index: 1; }
.league-intro__card--photo .league-intro__title { font-size: 26px; }

.league-intro__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.16);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.league-intro__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
  line-height: 1;
}
.league-intro__card p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.82);
  margin: 0 0 14px;
  line-height: 1.5;
  max-width: 380px;
}
.league-intro__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
}
.league-intro__link:hover { text-decoration: underline; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero--photo {
  background: url('../img/hero-bg.webp') center 78%/cover no-repeat;
  display: flex;
  align-items: center;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.30);
}
.hero__inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 20px;
  position: relative;
  z-index: 1;
}
.hero__text { max-width: 560px; }

.hero__crests {
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.hero__crests img {
  height: 52px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.55));
}

/* ==========================================================================
   Občine / grbi (splošen razred, uporabljen tudi v hero)
   ========================================================================== */
.crest-fan {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}
.crest-fan img {
  height: 86px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.18));
}

.hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 12px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.2;
  max-width: 640px;
  margin: 0 0 14px;
}
.hero__title-highlight {
  background: linear-gradient(135deg, #F2C868 0%, var(--gold) 55%, #D9A832 100%);
  color: var(--ink);
  padding: 3px 14px;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
.hero__lead {
  font-size: 16px;
  color: #C9C7BE;
  max-width: 520px;
  margin: 0 0 28px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn--primary { background: #39B54A; color: #1A1A1A; }
.btn--primary:hover { background: #2E9A3D; }
.btn--ghost { border-color: rgba(255,255,255,0.35); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #d9a832; }

/* ==========================================================================
   Section shell
   ========================================================================== */
.section { margin-bottom: 48px; }
.section__head { margin-bottom: 18px; }
.section__head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin: 0;
}

/* ==========================================================================
   Events
   ========================================================================== */
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.event-card {
  display: flex;
  gap: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.event-card:hover, .event-card:focus-visible {
  border-color: var(--pitch-green);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  outline: none;
}
.event-card__date {
  flex-shrink: 0;
  width: 54px;
  text-align: center;
  border-right: 2px solid var(--paper-dim);
  padding-right: 14px;
}
.event-card__day {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--pitch-green-dark);
  line-height: 1;
}
.event-card__month {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-top: 2px;
}
.event-card__body h3 {
  font-size: 15px;
  margin: 0 0 6px;
  line-height: 1.3;
}
.event-card__body p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Event modal
   ========================================================================== */
.event-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.event-modal[hidden] { display: none; }
.event-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,20,18,0.65);
}
.event-modal__panel {
  position: relative;
  background: white;
  border-radius: 10px;
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  z-index: 1;
}
.event-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: white;
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
}
.event-modal__image {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}
.event-modal__image[hidden] { display: none; }
.event-modal__body { padding: 24px 26px 28px; }
.event-modal__date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pitch-green-dark);
  margin-bottom: 6px;
}
.event-modal__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 12px;
}
.event-modal__body p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 12px;
  white-space: pre-line;
}
.event-modal__body p:last-child { margin-bottom: 0; }
.event-modal__body ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
}
.event-modal__body strong { color: var(--ink); }

/* ==========================================================================
   News
   ========================================================================== */
.news-list {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.news-item {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s ease;
}
.news-item:hover, .news-item:focus-visible { background: var(--paper-dim); outline: none; }
.news-item:last-child { border-bottom: none; }
.news-item__date {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}
.news-item h3 {
  font-size: 16px;
  margin: 6px 0 6px;
}
.news-item p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Prazno stanje (ni dogodkov / ni novic)
   ========================================================================== */
.empty-note {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-dim);
  font-size: 14px;
  background: var(--paper-dim);
  border-radius: 8px;
  border: 1px dashed var(--line);
}

/* ==========================================================================
   Naj strelci
   ========================================================================== */
.section__head--live {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.section__subtext {
  font-size: 12.5px;
  color: var(--text-dim);
  margin: -6px 0 14px;
}
.scorers-list__goals small {
  font-size: 9px;
  font-weight: 700;
  opacity: 0.75;
  margin-left: 1px;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--red-card);
  background: rgba(192,57,43,0.1);
  padding: 4px 10px;
  border-radius: 100px;
}
.live-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-card);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}
.scorers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.scorers-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}
.scorers-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  color: var(--pitch-green-dark);
}
.scorers-list { list-style: none; margin: 0; padding: 0; }
.scorers-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--paper-dim);
  font-size: 14px;
}
.scorers-list__item:last-child { border-bottom: none; }
.scorers-list__name { font-weight: 600; }
.scorers-list__team { color: var(--text-dim); font-size: 12.5px; flex: 1; }
.scorers-list__goals {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  background: rgba(232,184,75,0.22);
  border-radius: 4px;
  padding: 2px 8px;
  min-width: 24px;
  text-align: center;
}

/* ==========================================================================
   Sezona v številkah
   ========================================================================== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-tile {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
}
.stat-tile__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--pitch-green-dark);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-tile__label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

/* ==========================================================================
   Trenutno kaznovani igralci
   ========================================================================== */
.suspensions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.suspension-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: white;
  border: 1px solid rgba(192,57,43,0.25);
  border-left: 3px solid var(--red-card);
  border-radius: 8px;
  padding: 12px 16px;
}
.suspension-item__who { display: flex; flex-direction: column; flex-shrink: 0; }
.suspension-item__name { font-weight: 600; font-size: 14px; }
.suspension-item__team { font-size: 12px; color: var(--text-dim); }
.suspension-item__matches {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}
.suspension-item__match { font-size: 12px; color: var(--red-card); font-weight: 600; white-space: nowrap; }

@media (max-width: 480px) {
  .suspension-item { flex-direction: column; align-items: flex-start; }
  .suspension-item__matches { align-items: flex-start; text-align: left; }
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  background: url('../img/cta-bg.webp') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: 0 20px 0;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}
.page { padding-top: 12px; padding-bottom: 32px; }
.cta__inner {
  padding: 44px 32px;
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}
.cta__inner h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 10px;
}
.cta__inner p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin: 0 auto 22px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .event-grid { grid-template-columns: 1fr; }
  .scorers-grid { grid-template-columns: 1fr; }
  .league-intro__grid { grid-template-columns: 1fr; }
  .crest-fan img { height: 64px; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero__title { font-size: 27px; }
  .hero__title-highlight { padding: 2px 10px; }
  .hero__lead { font-size: 13px; }
  .hero__eyebrow { font-size: 11px; }
  .hero__inner { padding: 28px 16px 40px; }
  .hero--photo { background-position: center 82%; }
  .hero__crests img { height: 36px; }
  .hero__crests { gap: 10px; margin-bottom: 16px; }
  .btn { font-size: 11.5px; padding: 10px 18px; }

  .section__head h2 { font-size: 19px; }
  .section__subtext { font-size: 10.5px; }
  .live-badge { font-size: 10px; padding: 3px 8px; }

  .league-intro__title { font-size: 32px; }
  .league-intro__card--photo .league-intro__title { font-size: 22px; }
  .league-intro__card--photo { min-height: 150px; }
  .league-intro__card { padding: 20px 20px 40px; }
  .league-intro__card p { font-size: 11.5px; }
  .league-intro__link { font-size: 11px; }

  .event-card { padding: 14px; gap: 10px; }
  .event-card__day { font-size: 21px; }
  .event-card__month { font-size: 9px; }
  .event-card__body h3 { font-size: 13px; }
  .event-card__body p { font-size: 11px; }

  .news-item { padding: 14px 16px; }
  .news-item__date { font-size: 10px; }
  .news-item h3 { font-size: 13px; }
  .news-item p { font-size: 11.5px; }

  .scorers-card { padding: 14px 16px; }
  .scorers-card__title { font-size: 12px; }
  .scorers-list__item { padding: 7px 0; font-size: 11.5px; }
  .scorers-list__team { font-size: 10px; }
  .scorers-list__goals { font-size: 12px; }

  .stat-tile { padding: 14px 10px; }
  .stat-tile__value { font-size: 26px; }
  .stat-tile__label { font-size: 9.5px; }

  .cta { margin-left: 12px; margin-right: 12px; }
  .cta__inner { padding: 26px 18px; }
  .cta__inner h2 { font-size: 21px; }
  .cta__inner p { font-size: 12px; }

  .event-modal__body h3 { font-size: 16px; }
  .event-modal__body p, .event-modal__body ul { font-size: 12px; }
}
