/* ============================================================
   ACMFCN — AC Milan Fans Club Nigeria
   Design tokens: Rossoneri red/black, gold (scudetto) accent,
   cream paper. Signature motif: the "star strip" — the row of
   gold stars Milan wear above the crest for each title won —
   reused as a structural divider throughout the site.
   ============================================================ */

:root {
  --red: #AC1E28;
  --red-deep: #7A1119;
  --black: #0D0D0D;
  --charcoal: #171414;
  --cream: #F5F1E8;
  --gold: #C9A227;
  --gold-bright: #E4C13A;
  --grey: #8A8580;

  --font-display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-body: "Work Sans", "Inter", system-ui, sans-serif;

  --radius: 2px;
  --container: 1180px;
}

@font-face {
  font-family: "Bebas Neue";
  src: local("Bebas Neue");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--black);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.4em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 0.6em;
}

/* ---------- Star strip signature ---------- */
.star-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0;
}
.star-strip svg { width: 16px; height: 16px; fill: var(--gold); flex-shrink: 0; }
.star-strip .strip-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
}
.star-strip.center { justify-content: center; }
.star-strip.center .strip-line { max-width: 60px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--cream); }
.btn-primary:hover { background: var(--red-deep); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-outline { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn-outline:hover { background: var(--cream); color: var(--black); }
.btn-outline-dark { background: transparent; border-color: var(--black); color: var(--black); }
.btn-outline-dark:hover { background: var(--black); color: var(--cream); }
.btn-whatsapp { background: #25D366; color: #06210F; }
.btn-whatsapp:hover { background: #1ebd5a; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 3px solid var(--red);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand-text { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.05em; }
.brand-text span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-size: 1rem;
}
.nav-links a {
  color: var(--cream);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); border-color: var(--gold); }

.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-cta .btn { padding: 10px 18px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 3px solid var(--red);
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; border-bottom: 1px solid #262222; }
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--cream);
  overflow: hidden;
  padding: 90px 0 70px;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; right: -10%;
  width: 65%; height: 100%;
  background: linear-gradient(120deg, var(--red) 45%, transparent 46%);
  opacity: 0.9;
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; }
.hero p.lede { font-size: 1.2rem; color: #E7E2D6; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16/8;
  background: var(--black);
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(.65,.05,.36,1);
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-caption {
  position: absolute;
  left: 32px; bottom: 28px;
  color: var(--cream);
  max-width: 60%;
}
.carousel-caption .eyebrow { margin-bottom: 0.2em; }
.carousel-nav {
  position: absolute;
  bottom: 18px; right: 24px;
  display: flex; gap: 8px;
  z-index: 3;
}
.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(245,241,232,0.4);
  border: none;
  cursor: pointer;
}
.carousel-dot.active { background: var(--gold); }
.carousel-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(13,13,13,0.55);
  color: var(--cream);
  border: 1px solid var(--gold);
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }
.carousel-arrow:hover { background: var(--red); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-dark { background: var(--black); color: var(--cream); }
.section-charcoal { background: var(--charcoal); color: var(--cream); }
.section-head { max-width: 640px; margin: 0 0 40px; }

.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid #E4DFD2;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img { aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 22px; }
.card-body .eyebrow { font-size: 0.75rem; }
.card-body h3 { margin-bottom: 0.3em; }
.card-body p { color: #4A4640; font-size: 0.96rem; }
.card-body .meta { font-size: 0.82rem; color: var(--grey); margin-bottom: 8px; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-strip .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold);
}
.stat-strip .label { font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: #cfc9ba; }
@media (max-width: 700px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

.channel-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.channel-card {
  background: rgba(245,241,232,0.04);
  border: 1px solid rgba(201,162,39,0.3);
  padding: 20px;
  border-radius: var(--radius);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.channel-card .icon { font-size: 1.5rem; color: var(--gold); }
.channel-card h4 { margin: 0 0 4px; font-size: 1rem; }
.channel-card p { margin: 0; font-size: 0.9rem; color: #cfc9ba; }
.channel-card a.link { color: var(--gold); font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-grid figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: var(--cream);
  font-size: 0.85rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 85vh; max-width: 90vw; border: 3px solid var(--gold); }
.lightbox-close {
  position: absolute; top: 22px; right: 30px;
  color: var(--cream); font-size: 2rem; background: none; border: none; cursor: pointer;
}

/* ---------- Forms ---------- */
.form-panel {
  background: #fff;
  border: 1px solid #E4DFD2;
  padding: 32px;
  border-radius: var(--radius);
}
label {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  margin: 18px 0 6px;
}
label:first-child { margin-top: 0; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D6D0C0;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #FBFAF6;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--grey); margin-top: 10px; }
.form-status { margin-top: 14px; font-size: 0.92rem; font-weight: 600; }
.form-status.ok { color: #2E7D32; }
.form-status.err { color: var(--red); }

/* ---------- Donate ---------- */
.donate-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.donate-amount {
  padding: 18px;
  text-align: center;
  border: 2px solid #D6D0C0;
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  cursor: pointer;
}
.donate-amount.selected, .donate-amount:hover { border-color: var(--red); background: #FBEFEE; }
@media (max-width: 700px) { .donate-options { grid-template-columns: repeat(2, 1fr); } }

.bank-details {
  background: var(--black);
  color: var(--cream);
  padding: 26px 30px;
  border-radius: var(--radius);
  margin-top: 20px;
}
.bank-details .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(245,241,232,0.2); font-size: 0.95rem; }
.bank-details .row:last-child { border-bottom: none; }
.bank-details .row span:first-child { color: #cfc9ba; }
.bank-details .row span:last-child { font-weight: 700; letter-spacing: 0.03em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: #cfc9ba;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--cream); font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(245,241,232,0.15);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Blog ---------- */
.blog-post-content img { border-radius: var(--radius); margin: 24px 0; }
.blog-post-content h2, .blog-post-content h3 { text-transform: none; font-family: var(--font-body); font-weight: 700; }
.blog-post-content p { color: #2A2723; font-size: 1.05rem; }
.blog-post-content { max-width: 760px; margin: 0 auto; }
.post-hero-meta { max-width: 760px; margin: 0 auto 30px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.tag {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
  margin-right: 6px;
}

/* Admin */
.admin-shell { background: #EFEBDF; min-height: 100vh; }
.admin-topbar { background: var(--black); color: var(--cream); padding: 16px 0; }
.admin-layout { display: grid; grid-template-columns: 260px 1fr; gap: 0; align-items: start; }
.admin-sidebar { background: var(--charcoal); color: var(--cream); min-height: calc(100vh - 68px); padding: 24px 0; }
.admin-sidebar a { display: block; padding: 12px 24px; color: #cfc9ba; }
.admin-sidebar a.active, .admin-sidebar a:hover { color: var(--gold); background: rgba(201,162,39,0.08); }
.admin-main { padding: 32px; }
.admin-card { background: #fff; border: 1px solid #E4DFD2; border-radius: var(--radius); padding: 26px; margin-bottom: 24px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #E4DFD2; font-size: 0.92rem; }
.table th { font-family: var(--font-display); letter-spacing: 0.04em; color: var(--grey); font-weight: 400; }
.table-actions a, .table-actions button { margin-right: 10px; font-size: 0.85rem; cursor: pointer; background: none; border: none; color: var(--red); font-weight: 600; padding: 0; }
.editor-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.editor-toolbar button { padding: 6px 12px; font-size: 0.85rem; border: 1px solid #D6D0C0; background: #FBFAF6; border-radius: var(--radius); cursor: pointer; }
.editor-toolbar button:hover { background: #EFEBDF; }
#post-content-html { min-height: 260px; font-family: monospace; font-size: 0.9rem; }
.split-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .split-editor { grid-template-columns: 1fr; } .admin-layout { grid-template-columns: 1fr; } .admin-sidebar { display: flex; overflow-x: auto; min-height: auto; } .admin-sidebar a { white-space: nowrap; } }
.preview-pane { border: 1px solid #E4DFD2; padding: 20px; background: #fff; border-radius: var(--radius); }
.login-box { max-width: 400px; margin: 90px auto; }
.badge-status { font-size: 0.75rem; padding: 3px 9px; border-radius: 10px; font-weight: 600; }
.badge-published { background: #E1F3E1; color: #2E7D32; }
.badge-draft { background: #F1E7C8; color: #8A6A00; }
