/* ============================================
   MONDAY NIGHT WARS - MAIN STYLESHEET
   1997 Wrestling Hub | style.css
   Used by ALL pages on the site
   ============================================ */

/* --- FONTS & RESET --- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Share+Tech+Mono&family=Teko:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- ROOT VARIABLES --- */
:root {
  /* WWF Colors */
  --wwf-red: #CC0000;
  --wwf-dark-red: #880000;
  --wwf-gold: #D4A017;
  --wwf-white: #F0E8D8;

  /* WCW Colors */
  --wcw-black: #0a0a0a;
  --wcw-nwo-white: #E8E8E8;
  --wcw-gold: #B8962E;
  --wcw-blue: #003366;

  /* Shared */
  --bg-dark: #0d0d0d;
  --bg-panel: #141414;
  --bg-mid: #1a1a1a;
  --border-dim: #2a2a2a;
  --text-body: #c8c0b0;
  --text-dim: #888;
  --font-heading: 'Oswald', 'Impact', sans-serif;
  --font-mono: 'Share Tech Mono', 'Courier New', monospace;
  --font-body: 'Teko', Arial, sans-serif;
}

/* --- BASE --- */
body {
  background-color: var(--bg-dark);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--wwf-gold);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: #fff;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
}

p {
  margin-bottom: 0.8em;
}

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

/* ============================================
   SITE HEADER / MASTHEAD
   ============================================ */
.site-header {
  background: #000;
  border-bottom: 3px solid #222;
  padding: 10px 0 0 0;
  text-align: center;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 2.2em;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--wwf-white);
  text-shadow: 0 0 12px rgba(204,0,0,0.5), 2px 2px 0 #000;
  padding: 10px 20px 4px;
}

.site-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75em;
  color: var(--text-dim);
  letter-spacing: 4px;
  padding-bottom: 10px;
}

/* ============================================
   TOP NAVIGATION BAR
   ============================================ */
.topnav {
  background: #111;
  border-bottom: 2px solid var(--border-dim);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.topnav a {
  display: inline-block;
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 0.85em;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  border-right: 1px solid var(--border-dim);
  transition: background 0.15s, color 0.15s;
}

.topnav a:hover,
.topnav a.active {
  background: var(--bg-mid);
  color: var(--wwf-white);
  text-decoration: none;
}

.topnav a.wwf-link:hover,
.topnav a.wwf-link.active {
  color: var(--wwf-red);
  border-bottom: 2px solid var(--wwf-red);
}

.topnav a.wcw-link:hover,
.topnav a.wcw-link.active {
  color: var(--wcw-gold);
  border-bottom: 2px solid var(--wcw-gold);
}

/* ============================================
   TICKER / HEADLINE MARQUEE
   ============================================ */
.ticker-wrap {
  background: #000;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  padding: 5px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-label {
  display: inline-block;
  background: var(--wwf-red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.72em;
  letter-spacing: 2px;
  padding: 2px 10px;
  margin-right: 12px;
  text-transform: uppercase;
}

.ticker-text {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78em;
  color: #aaa;
  animation: scroll-ticker 40s linear infinite;
}

@keyframes scroll-ticker {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ============================================
   MAIN CONTENT WRAPPER
   ============================================ */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 14px;
}

/* ============================================
   SPLIT LAYOUT (Homepage WWF vs WCW)
   ============================================ */
.brand-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
  border: 1px solid var(--border-dim);
  margin-bottom: 24px;
}

/* WWF side */
.brand-wwf {
  background: linear-gradient(160deg, #1a0000 0%, #0d0d0d 100%);
  border-right: 2px solid #330000;
  padding: 24px 20px;
}

.brand-wwf .brand-header {
  font-family: var(--font-heading);
  font-size: 2em;
  color: var(--wwf-red);
  text-shadow: 1px 1px 0 #000, 0 0 16px rgba(200,0,0,0.4);
  letter-spacing: 4px;
  border-bottom: 2px solid var(--wwf-dark-red);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.brand-wwf a { color: #ff6666; }
.brand-wwf a:hover { color: #fff; }

/* WCW side */
.brand-wcw {
  background: linear-gradient(160deg, #0a0a14 0%, #0d0d0d 100%);
  border-left: 2px solid #1a1a33;
  padding: 24px 20px;
}

.brand-wcw .brand-header {
  font-family: var(--font-heading);
  font-size: 2em;
  color: var(--wcw-gold);
  text-shadow: 1px 1px 0 #000, 0 0 16px rgba(184,150,46,0.4);
  letter-spacing: 4px;
  border-bottom: 2px solid #5a4a10;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.brand-wcw a { color: var(--wcw-gold); }
.brand-wcw a:hover { color: #fff; }

/* ============================================
   CONTENT PANELS / BOXES
   ============================================ */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-dim);
  margin-bottom: 18px;
  padding: 0;
}

.panel-header {
  background: #1c1c1c;
  border-bottom: 1px solid var(--border-dim);
  padding: 7px 14px;
  font-family: var(--font-heading);
  font-size: 0.85em;
  letter-spacing: 3px;
  color: #aaa;
  text-transform: uppercase;
}

.panel-header.wwf-accent {
  border-left: 4px solid var(--wwf-red);
  color: var(--wwf-white);
}

.panel-header.wcw-accent {
  border-left: 4px solid var(--wcw-gold);
  color: var(--wcw-nwo-white);
}

.panel-body {
  padding: 12px 14px;
}

/* ============================================
   SHOW RESULTS
   ============================================ */
.show-result-item {
  border-bottom: 1px solid #1e1e1e;
  padding: 8px 0;
  font-size: 0.95em;
}

.show-result-item:last-child {
  border-bottom: none;
}

.match-result {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.match-label {
  background: #222;
  color: #888;
  font-family: var(--font-mono);
  font-size: 0.7em;
  padding: 2px 7px;
  white-space: nowrap;
  border: 1px solid #333;
  margin-top: 2px;
}

.match-label.title-match {
  background: #2a1f00;
  color: var(--wwf-gold);
  border-color: #5a4010;
}

.winner {
  color: #fff;
  font-weight: 600;
}

.result-detail {
  color: var(--text-dim);
  font-size: 0.85em;
  font-family: var(--font-mono);
}

.rating-pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.72em;
  font-weight: bold;
  letter-spacing: 1px;
}

.rating-high  { background: #003300; color: #00cc44; border: 1px solid #005500; }
.rating-mid   { background: #1a1a00; color: #ccaa00; border: 1px solid #444400; }
.rating-low   { background: #1a0000; color: #cc4444; border: 1px solid #550000; }

/* ============================================
   ROSTER TABLE
   ============================================ */
.roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}

.roster-table th {
  background: #1c1c1c;
  font-family: var(--font-heading);
  letter-spacing: 2px;
  font-size: 0.8em;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 2px solid #333;
  color: #aaa;
}

.roster-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #1c1c1c;
  vertical-align: middle;
}

.roster-table tr:hover td {
  background: #181818;
}

.roster-table a {
  font-weight: 600;
}

.align-face  { color: #5599ff; }
.align-heel  { color: #ff5555; }
.align-tweener { color: #ccaa00; }

/* ============================================
   WRESTLER PROFILE
   ============================================ */
.profile-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}

.profile-photo-box {
  background: #111;
  border: 2px solid #2a2a2a;
  padding: 10px;
  text-align: center;
}

.profile-photo-box img {
  width: 100%;
  border: 1px solid #333;
}

.profile-photo-placeholder {
  width: 100%;
  height: 200px;
  background: #1a1a1a;
  border: 1px dashed #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  font-family: var(--font-mono);
  font-size: 0.75em;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 2.4em;
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 4px;
}

.profile-name.wwf-name { color: var(--wwf-red); text-shadow: 1px 1px 0 #000; }
.profile-name.wcw-name { color: var(--wcw-gold); text-shadow: 1px 1px 0 #000; }

.profile-subtitle {
  font-family: var(--font-mono);
  font-size: 0.78em;
  color: #666;
  letter-spacing: 2px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.stat-box {
  background: #111;
  border: 1px solid #2a2a2a;
  padding: 8px 10px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65em;
  color: #555;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.05em;
  color: var(--wwf-white);
  letter-spacing: 1px;
}

.profile-section-title {
  font-family: var(--font-heading);
  font-size: 0.85em;
  letter-spacing: 3px;
  color: #666;
  text-transform: uppercase;
  border-bottom: 1px solid #1e1e1e;
  padding-bottom: 4px;
  margin: 14px 0 8px;
}

/* ============================================
   CHAMPIONSHIPS PAGE
   ============================================ */
.title-card {
  background: var(--bg-panel);
  border: 1px solid #2a2a2a;
  padding: 14px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.title-name {
  font-family: var(--font-heading);
  font-size: 1.3em;
  letter-spacing: 2px;
  color: var(--wwf-gold);
  margin-bottom: 4px;
}

.title-champion {
  font-size: 1em;
  color: var(--wwf-white);
}

.title-since {
  font-family: var(--font-mono);
  font-size: 0.72em;
  color: #555;
  margin-top: 4px;
}

/* ============================================
   RATINGS TRACKER
   ============================================ */
.ratings-bar-wrap {
  margin-bottom: 12px;
}

.ratings-label-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75em;
  color: #666;
  margin-bottom: 4px;
}

.ratings-bar {
  height: 20px;
  background: #111;
  border: 1px solid #2a2a2a;
  position: relative;
  overflow: hidden;
}

.ratings-bar-wwf {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--wwf-red);
  opacity: 0.85;
}

.ratings-bar-wcw {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  background: var(--wcw-gold);
  opacity: 0.85;
}

/* ============================================
   PAGE FOOTER
   ============================================ */
.site-footer {
  margin-top: 40px;
  background: #000;
  border-top: 2px solid #1a1a1a;
  padding: 16px 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72em;
  color: #333;
  letter-spacing: 2px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.wwf-color  { color: var(--wwf-red); }
.wcw-color  { color: var(--wcw-gold); }
.gold-color { color: var(--wwf-gold); }
.dim-text   { color: var(--text-dim); }
.mono       { font-family: var(--font-mono); }
.uppercase  { text-transform: uppercase; letter-spacing: 2px; }
.mb-1       { margin-bottom: 8px; }
.mb-2       { margin-bottom: 16px; }
.mt-1       { margin-top: 8px; }
.mt-2       { margin-top: 16px; }
.divider    { border: none; border-top: 1px solid #1e1e1e; margin: 14px 0; }

/* Responsive: stack split on small screens */
@media (max-width: 720px) {
  .brand-split { grid-template-columns: 1fr; }
  .brand-wwf   { border-right: none; border-bottom: 2px solid #330000; }
  .brand-wcw   { border-left: none; }
  .profile-grid { grid-template-columns: 1fr; }
}
