@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Montserrat:wght@700;800;900&display=swap');

:root {
  --green: #08743f;
  --deep: #032d1c;
  --ink: #11281d;
  --yellow: #f5c82e;
  --mist: #f3f7f4;
  --line: #dce8e0;
  --muted: #617368;
  --shadow: 0 20px 50px rgba(3, 45, 28, .12);
  --shadow-sm: 0 4px 12px rgba(3, 45, 28, .06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.55 'DM Sans', Arial, sans-serif;
  background: #ffffff;
}

.shell {
  width: min(1140px, calc(100% - 40px));
  margin: auto;
}

h1, h2, h3 {
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1.15;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================
   LIVE TICKER BAR
   ========================================================== */
.live-ticker-bar {
  background: var(--deep);
  color: #fff;
  height: 38px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  font-size: 12px;
  position: relative;
  z-index: 30;
}

.ticker-label {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 4px 0 10px rgba(0,0,0,0.2);
  z-index: 2;
}

.live-dot-pulse {
  color: #dc2626;
  font-size: 12px;
  animation: pulse 1.2s infinite;
}

.ticker-track-wrap {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  display: flex;
  align-items: center;
}

.ticker-track-wrap::-webkit-scrollbar {
  display: none;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 15px;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 12px;
  transition: background 0.2s;
}

.ticker-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ticker-status {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
}

.ticker-status.live {
  color: #f87171;
  animation: pulse 1.2s infinite;
}

.ticker-team {
  font-weight: 700;
}

.ticker-score {
  color: var(--yellow);
  font-family: Montserrat;
  font-weight: 800;
}

/* ==========================================================
   HEADER & NAVIGATION
   ========================================================== */
.header {
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(13px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: block;
}

.logo-left {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  position: relative;
  color: #53655a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: color 0.2s;
}

.nav-links a:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.2s ease-in-out;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--green);
}

.nav-links a:hover:after, .nav-links a.active:after {
  transform: scaleX(1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-right {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.admin-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 99px;
  text-decoration: none;
  transition: all 0.2s;
}

.admin-badge-btn:hover {
  background: var(--ink);
  color: #fff;
}

.menu-button {
  display: none;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 26px;
  cursor: pointer;
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero {
  min-height: 560px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(90deg, rgba(2, 35, 21, .97), rgba(2, 64, 35, .86) 46%, rgba(2, 32, 18, .18)),
              url('https://linafoot.cd/wp-content/uploads/2025/05/IMG-20250521-WA0181-780x470.jpg') center/cover;
}

.hero:after {
  content: '';
  position: absolute;
  inset: auto -5% -48% auto;
  z-index: -1;
  width: 680px;
  height: 680px;
  border: 1px solid #ffffff38;
  border-radius: 50%;
  box-shadow: 0 0 0 54px #ffffff0c, 0 0 0 110px #ffffff08;
}

.hero-content {
  padding: 85px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow.green {
  color: var(--green);
}

.live-dot {
  margin: 0 5px;
  color: #7ff4a7;
  font-size: 10px;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -.04em;
  color: #fff;
  text-shadow: 0 3px 16px rgba(0, 26, 13, 0.6);
}

.hero h1 em {
  color: var(--yellow);
  font-style: normal;
}

.hero-copy {
  max-width: 540px;
  margin: 20px 0 28px;
  color: #e0f0e5;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border: 0;
  border-radius: 6px;
  color: #182219;
  background: var(--yellow);
  box-shadow: 0 9px 20px rgba(0, 30, 16, 0.2);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 30, 16, 0.25);
}

.button.dark {
  color: #fff;
  background: var(--ink);
  box-shadow: none;
}

.button.dark:hover {
  background: #1e3a2b;
}

.text-button {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 2px;
  font-size: 14px;
}

.hero-score {
  position: absolute;
  right: 6%;
  bottom: 30px;
  text-align: right;
}

.hero-score span {
  display: block;
  color: #c6e6d0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-score b {
  font: 800 20px/1 Montserrat;
  color: #fff;
}

/* ==========================================================
   SEASON STRIP & METRICS
   ========================================================== */
.season-strip {
  background: var(--yellow);
}

.season-strip > div {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 38px;
}

.season-strip > div > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.season-strip b {
  font: 800 24px Montserrat;
  color: var(--ink);
}

.season-strip span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.season-strip p {
  margin-left: auto;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

/* ==========================================================
   SECTIONS & GRIDS
   ========================================================== */
.section {
  padding: 70px 0;
}

.tint {
  background: var(--mist);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.03em;
}

.section-head > a, .news-card a, .club-card a {
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.spotlight {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(105deg, #fff, #f6fbf7);
  box-shadow: var(--shadow);
}

.spotlight:after {
  content: '';
  position: absolute;
  top: -65px;
  right: -55px;
  width: 215px;
  height: 215px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: .18;
  pointer-events: none;
}

.match-meta, .stadium {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.teams {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 14px 0;
  font: 700 18px Montserrat;
}

.crest, .club-crest {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--crest);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  color: #fff;
  font: 800 11px Montserrat;
  flex-shrink: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.result, .mini-table > a > div, .mini-table > div {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}

.result-interactive:hover, .mini-table > a:hover > div {
  background: #eef7f1;
  border-radius: 8px;
}

.result span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}

.result span:last-child {
  justify-content: flex-end;
  text-align: right;
}

.result b {
  font: 800 16px Montserrat;
  color: var(--ink);
}

.result i {
  color: #a4b2a9;
  font-style: normal;
}

.mini-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--crest);
}

.mini-table > a > div, .mini-table > div {
  grid-template-columns: 24px 1fr auto;
}

.mini-table span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}

.mini-table b, .mini-table em {
  color: var(--green);
  font-style: normal;
  font-weight: 800;
}

/* ==========================================================
   CARDS & GRIDS
   ========================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  overflow: hidden;
  padding-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.news-card > *:not(.news-image) {
  margin-left: 20px;
  margin-right: 20px;
}

.news-image {
  height: 190px;
  background-size: cover;
  background-position: center;
}

.news-meta {
  margin-top: 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.news-card h3 {
  margin-top: 6px;
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.3;
}

.news-card p:not(.news-meta) {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-hero {
  padding: 60px 0;
  color: #fff;
  background: linear-gradient(90deg, #04311fec, #0b6b3ad9),
              url('https://images.unsplash.com/photo-1537228783107-df09e892bdbb?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: 38px;
  color: #fff;
}

.page-hero > div > p:last-child {
  margin: 0;
  color: #d0ead8;
  font-size: 16px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tabs button {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.tabs button:hover {
  background: #f1f5f9;
}

.tabs button.selected {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.match-list, .table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.match-row {
  display: grid;
  grid-template-columns: 160px 1fr 200px;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}

.match-row:hover {
  background: #fafcfb;
}

.match-row:last-child {
  border: 0;
}

.match-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  color: #805f00;
  background: #fff4c6;
  font-size: 11px;
  font-weight: 800;
  display: inline-block;
}

.badge.finished {
  color: var(--green);
  background: #dff4e6;
}

.badge.live {
  color: #dc2626;
  background: #fee2e2;
  animation: pulse 1.2s infinite;
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-weight: 700;
}

.match-teams b {
  color: var(--green);
  font-family: Montserrat;
  font-size: 17px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

th {
  padding: 14px 18px;
  color: var(--muted);
  background: var(--mist);
  font-size: 12px;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.03em;
}

td {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.rank {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--green);
  background: var(--mist);
  font-size: 12px;
  font-weight: 800;
}

.tiny-crest {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--crest);
  flex-shrink: 0;
}

.form-pill {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}

.form-pill.win { background: #16a34a; }
.form-pill.draw { background: #94a3b8; }
.form-pill.loss { background: #dc2626; }

.club-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.club-card {
  display: grid;
  grid-template-columns: 75px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.club-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.club-crest {
  width: 65px;
  height: 65px;
  font-size: 15px;
}

.club-card h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.club-card p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-grid, .honours-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-grid h2, .honours-layout h2 {
  margin: 5px 0 15px;
  font-size: 32px;
}

.contact-item {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item span {
  color: var(--muted);
  font-size: 14px;
}

.contact-form {
  padding: 28px;
  border-radius: 14px;
  background: var(--mist);
}

.contact-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
}

.contact-form input, .contact-form textarea, .contact-form select {
  padding: 11px 14px;
  border: 1px solid #cdd9d1;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  background: #fff;
}

.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: 2px solid var(--green);
  border-color: var(--green);
}

.success {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 6px;
  color: #075a2f;
  background: #dff4e6;
}

.source-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-left: 4px solid var(--yellow);
  background: var(--mist);
  border-radius: 4px;
  font-size: 14px;
}

.footer {
  padding: 45px 0;
  color: #b7c6bc;
  background: #081a12;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.footer-note {
  text-align: right;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ==========================================================
   RESPONSIVE (TABLETTES & MOBILES)
   ========================================================== */
@media (max-width: 860px) {
  .nav-links {
    gap: 14px;
  }
  .nav-links a {
    font-size: 12px;
  }
  .grid-2 {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .header {
    height: 65px;
  }
  .menu-button {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 65px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 14px 25px rgba(18, 59, 32, 0.15);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a:after {
    display: none;
  }
  .hero-content {
    padding: 60px 0;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .hero-score {
    display: none;
  }
  .season-strip > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px 0;
  }
  .season-strip p {
    display: none;
  }
  .grid-2, .contact-grid, .honours-layout, .club-grid, .news-grid {
    grid-template-columns: 1fr !important;
  }
  .spotlight, .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .match-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .match-teams {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .club-card {
    grid-template-columns: 60px 1fr;
  }
  .club-card a {
    grid-column: 2;
  }
  .logo-left, .logo-right {
    height: 40px;
  }
}

/* ==========================================================
   ARTICLE CONTENT (WYSIWYG QUILL STYLES)
   ========================================================== */
.article-content p {
  margin: 0 0 1.25em 0;
  line-height: 1.8;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 1.8em 0 0.8em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.3;
}

.article-content h2 {
  font-size: 1.6em;
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
}

.article-content h3 {
  font-size: 1.35em;
}

.article-content blockquote {
  margin: 1.5em 0;
  padding: 16px 24px;
  background: var(--mist);
  border-left: 4px solid var(--green);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--deep);
  font-size: 1.05em;
}

.article-content ul,
.article-content ol {
  margin: 1.2em 0 1.5em 1.5em;
  padding: 0;
}

.article-content li {
  margin-bottom: 0.6em;
  line-height: 1.7;
}

.article-content a {
  color: var(--green);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
}

.article-content a:hover {
  color: var(--deep);
}
