/* ============================================================
   THE RED & WHITE WIZARDS — Shared Stylesheet
   Sheffield United FC Unofficial Fan Site
   Green'Un Edition — inspired by The Sheffield Star's
   legendary Saturday night football newspaper
   ============================================================ */

:root {
  --su-red:       #C8001E;
  --su-dark-red:  #8C0015;
  --su-black:     #1A1A1A;
  --su-white:     #FFFFFF;
  --su-cream:     #f9f5f0;
  --su-muted:     #5C5856;
  --su-border:    #D4DBC8;
  --su-win:       #0E6B35;
  --su-win-bg:    #E6F4EC;
  --su-draw:      #7A5200;
  --su-draw-bg:   #FFF5DC;
  --su-loss:      #8C0015;
  --su-loss-bg:   #FDECEA;
  --su-tint-bg:   #E5EAD9;
  --stripe:       62px;
  --pin:          2px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--su-black);
  background: var(--su-cream);
}
img { max-width: 100%; display: block; }
a { color: var(--su-red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }

/* ---- Scarf strips ---- */
.scarf-strip {
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    var(--su-red)   0, var(--su-red)   var(--stripe),
    var(--su-black) var(--stripe), var(--su-black) calc(var(--stripe) + var(--pin)),
    var(--su-white) calc(var(--stripe) + var(--pin)), var(--su-white) calc(var(--stripe)*2 + var(--pin)),
    var(--su-black) calc(var(--stripe)*2 + var(--pin)), var(--su-black) calc(var(--stripe)*2 + var(--pin)*2)
  );
}
.scarf-strip-thin {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--su-red)   0, var(--su-red)   var(--stripe),
    var(--su-black) var(--stripe), var(--su-black) calc(var(--stripe) + var(--pin)),
    var(--su-white) calc(var(--stripe) + var(--pin)), var(--su-white) calc(var(--stripe)*2 + var(--pin)),
    var(--su-black) calc(var(--stripe)*2 + var(--pin)), var(--su-black) calc(var(--stripe)*2 + var(--pin)*2)
  );
}

/* ---- Header ---- */
.site-header {
  background: var(--su-black);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 56px;
  gap: 1rem;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--su-white);
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo .red { color: var(--su-red); }
.site-nav {
  display: flex;
  gap: .2rem;
  list-style: none;
  flex-wrap: wrap;
}
.site-nav a {
  color: #B0A8A0;
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .65rem;
  border-radius: 4px;
  transition: color .15s, background .15s;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--su-white); background: rgba(200,0,30,.25); text-decoration: none; }
.site-nav a.active { color: var(--su-red); }

/* ---- Hero ---- */
.hero {
  background: var(--su-red);
  position: relative;
  overflow: hidden;
}
.hero-lines {
  position: absolute;
  inset: 0;
  opacity: .08;
  background: repeating-linear-gradient(90deg, #fff 0, #fff 60px, transparent 60px, transparent 62px);
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 2rem;
  position: relative;
}
.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  color: var(--su-white);
  font-style: italic;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  margin-bottom: .4rem;
}
.hero-sub {
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  max-width: 560px;
  line-height: 1.6;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--su-white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 2px;
  margin-bottom: .65rem;
}

/* ---- Page containers ---- */
.page-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.page-container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}

/* ---- Section headings ---- */
.section-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--su-red);
  margin-bottom: .35rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--su-black);
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--su-red);
}

/* ---- Cards / widgets ---- */
.card {
  background: var(--su-white);
  border: 1px solid var(--su-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.card-header {
  background: var(--su-black);
  padding: .6rem 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--su-white);
}
.card-header.red { background: var(--su-red); }
.card-body { padding: 1rem 1.1rem; }
.card-body p { font-size: .9rem; color: #2C2A28; line-height: 1.7; margin-bottom: .75rem; }
.card-body p:last-child { margin-bottom: 0; }

/* ---- Info / alert boxes ---- */
.info-box {
  background: var(--su-white);
  border: 1px solid var(--su-border);
  border-left: 4px solid var(--su-red);
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: .9rem;
  color: #2C2A28;
  line-height: 1.7;
}

/* ---- Sidebar widgets ---- */
.widget {
  background: var(--su-white);
  border: 1px solid var(--su-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.widget-header {
  background: var(--su-red);
  padding: .5rem .9rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--su-white);
}
.widget-header.dark { background: var(--su-black); }
.widget-body { padding: .85rem .9rem; }

/* Quick stats list */
.stat-list { list-style: none; font-size: .85rem; }
.stat-list li {
  padding: .35rem 0;
  border-bottom: 1px solid var(--su-border);
  display: flex;
  justify-content: space-between;
  gap: .5rem;
}
.stat-list li:last-child { border-bottom: none; }
.stat-list .lbl { color: var(--su-muted); }
.stat-list .val { font-weight: 600; color: var(--su-black); text-align: right; }

/* Archive month tiles */
.archive-year { margin-bottom: 1.1rem; }
.archive-year-lbl {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--su-black);
  border-bottom: 1px solid var(--su-border);
  padding-bottom: .25rem;
  margin-bottom: .4rem;
}
.month-pills { display: flex; flex-wrap: wrap; gap: .25rem; }
.month-pills a {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--su-muted);
  background: var(--su-tint-bg);
  border: 1px solid var(--su-border);
  border-radius: 2px;
  padding: .15rem .38rem;
  transition: all .15s;
  text-transform: uppercase;
}
.month-pills a:hover {
  background: var(--su-red);
  color: var(--su-white);
  border-color: var(--su-red);
  text-decoration: none;
}

/* ---- Year blocks and month grids (archive page) ---- */
.year-block {
  margin-bottom: 2.5rem;
}

.year-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--su-black);
  margin-bottom: 1rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--su-red);
}

.year-heading small {
  font-size: .7rem;
  font-weight: 600;
  color: var(--su-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
}

.month-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--su-black);
  color: var(--su-white);
  padding: .9rem .6rem;
  border-radius: 6px;
  text-align: center;
  transition: all .2s ease;
  cursor: pointer;
  text-decoration: none;
}

.month-tile:hover {
  background: var(--su-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  text-decoration: none;
}

.month-tile .mt-name {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  display: block;
  margin-bottom: .2rem;
}

.month-tile .mt-note {
  font-size: .72rem;
  opacity: .7;
  display: block;
}

.month-tile.empty {
  display: none;
}

@media (max-width: 600px) {
  .month-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .5rem;
  }
}

/* ---- Match results table ---- */
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .83rem;
}
.results-table thead th {
  background: var(--su-black);
  color: rgba(255,255,255,.75);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .5rem .65rem;
  text-align: left;
  white-space: nowrap;
}
.results-table tbody tr { border-bottom: 1px solid var(--su-border); }
.results-table tbody tr:last-child { border-bottom: none; }
.results-table tbody tr:hover { background: var(--su-cream); }
.results-table td { padding: .45rem .65rem; vertical-align: middle; color: #2C2A28; }
.results-table .date-col { white-space: nowrap; color: var(--su-muted); font-size: .78rem; }
.results-table .opponent { font-weight: 600; }
.results-table .venue-badge {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 2px;
}
.venue-H { background: #1A1A1A; color: #fff; }
.venue-A { background: var(--su-border); color: var(--su-black); }
.result-badge {
  display: inline-block;
  padding: .15rem .45rem;
  border-radius: 2px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
}
.res-W { background: var(--su-win-bg); color: var(--su-win); }
.res-D { background: var(--su-draw-bg); color: var(--su-draw); }
.res-L { background: var(--su-loss-bg); color: var(--su-loss); }
.results-table .month-row td {
  background: var(--su-tint-bg);
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  color: var(--su-black);
  padding: .4rem .65rem;
}
.scorers-col { color: var(--su-muted); font-size: .78rem; }
.att-col { white-space: nowrap; text-align: right; color: var(--su-muted); font-size: .78rem; }

/* Season tabs */
.season-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: 1.5rem;
}
.season-tab {
  font-size: .8rem;
  font-weight: 700;
  padding: .4rem .85rem;
  border-radius: 3px;
  border: 1px solid var(--su-border);
  background: var(--su-white);
  color: var(--su-muted);
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .02em;
}
.season-tab:hover { background: var(--su-tint-bg); color: var(--su-black); text-decoration: none; }
.season-tab.active {
  background: var(--su-red);
  color: var(--su-white);
  border-color: var(--su-red);
}
.season-block { display: none; }
.season-block.visible { display: block; }

/* Season summary bar */
.season-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  background: var(--su-tint-bg);
  border: 1px solid var(--su-border);
  border-radius: 4px;
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: .83rem;
}
.season-summary .sm-item { display: flex; align-items: center; gap: .4rem; }
.season-summary .sm-label { color: var(--su-muted); }
.season-summary .sm-val { font-weight: 700; color: var(--su-black); }

/* ---- Squad table ---- */
.squad-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .87rem;
}
.squad-table thead th {
  background: var(--su-black);
  color: rgba(255,255,255,.75);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .5rem .75rem;
  text-align: left;
}
.squad-table tbody tr { border-bottom: 1px solid var(--su-border); }
.squad-table tbody tr:last-child { border-bottom: none; }
.squad-table tbody tr:hover { background: var(--su-cream); }
.squad-table td { padding: .45rem .75rem; color: #2C2A28; vertical-align: middle; }
.squad-table .num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: var(--su-red);
  width: 44px;
  text-align: center;
}
.squad-table .name { font-weight: 600; }
.squad-table .dob { font-size: .78rem; color: var(--su-muted); white-space: nowrap; }
.squad-table .born { font-size: .78rem; color: var(--su-muted); }
.squad-table .prev { font-size: .8rem; color: #444; }

/* ---- Rules / info page ---- */
.rules-list {
  list-style: none;
  margin: 0;
}
.rules-list li {
  padding: .75rem 1rem .75rem 1.5rem;
  border-bottom: 1px solid var(--su-border);
  font-size: .92rem;
  line-height: 1.7;
  color: #2C2A28;
  position: relative;
}
.rules-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--su-red);
}
.rules-list li:last-child { border-bottom: none; }

/* ---- Footer ---- */
/* ---- Solid red footer bar ---- */
.footer-red-bar {
  height: 10px;
  background: var(--su-red);
}

footer { background: var(--su-black); color: rgba(255,255,255,.5); font-size: .8rem; margin-top: 3rem; }
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo { font-family: var(--font-display); font-weight: 900; font-size: .9rem; color: var(--su-white); }
.footer-logo span { color: var(--su-red); }
.footer-inner a { color: rgba(255,255,255,.55); }
.footer-inner a:hover { color: var(--su-white); }


/* ============================================================
   GREEN'UN — ARCHIVE MATCH REPORT STYLES
   ============================================================ */

/* ---- Month navigation bar ---- */
.month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--su-border);
}
.month-nav-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--su-muted);
  padding: .3rem .6rem;
  border-radius: 3px;
  transition: all .15s;
}
.month-nav-link:hover {
  color: var(--su-red);
  background: rgba(200,0,30,.06);
  text-decoration: none;
}
.month-nav-link.center {
  font-variant: small-caps;
  letter-spacing: .06em;
}

/* ---- Archive content wrapper ---- */
.archive-content { max-width: 780px; }

/* ---- Match report cards ---- */
.match-report {
  background: var(--su-white);
  border: 1px solid var(--su-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.match-header {
  background: var(--su-white);
  border-bottom: 1px solid var(--su-border);
  padding: 1rem 1.25rem;
  text-align: center;
}

.match-date-strip {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--su-muted);
  margin-bottom: .35rem;
}

.match-teams {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--su-black);
  margin-bottom: .25rem;
  line-height: 1.3;
}

.match-score {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--su-red);
  letter-spacing: .04em;
  margin-bottom: .2rem;
}

.match-meta {
  font-size: .8rem;
  color: var(--su-muted);
}
.match-meta strong { color: #444; }

/* ---- Lineup box ---- */
.lineup-box {
  background: #EBF0E0;
  border-bottom: 1px solid var(--su-border);
  padding: .85rem 1.25rem;
  font-size: .85rem;
  color: #2C2A28;
  line-height: 1.65;
}
.lineup-title {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--su-muted);
  margin-bottom: .3rem;
}
.lineup-box p { margin-bottom: .3rem; }
.lineup-box p:last-child { margin-bottom: 0; }
.lineup-box em { font-style: italic; color: var(--su-muted); }

/* ---- Match body text ---- */
.match-body { padding: 1rem 1.25rem; }
.match-body p {
  font-size: .92rem;
  color: #2C2A28;
  line-height: 1.75;
  margin-bottom: .75rem;
}
.match-body p:last-child { margin-bottom: 0; }

/* ---- News entries ---- */
.news-entry {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--su-border);
}
.news-entry:last-child { border-bottom: none; }
.news-date {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--su-red);
  margin-bottom: .4rem;
}
.news-entry p {
  font-size: .92rem;
  color: #2C2A28;
  line-height: 1.75;
  margin-bottom: .5rem;
}
.news-entry p:last-child { margin-bottom: 0; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .match-teams { font-size: 1.05rem; }
  .match-score { font-size: 1.5rem; }
  .month-nav { flex-wrap: wrap; gap: .4rem; justify-content: center; }
  .lineup-box { font-size: .8rem; }
}
