/*───────────────────────────────────────────────────────────────────────────*/
/* 1) Dark-Theme Overrides: MUST appear first so nothing “falls back” to white */
/*───────────────────────────────────────────────────────────────────────────*/

/* Body background / text */
body {
  background-color: #1a1a1a !important;
  color: #f5f5f5 !important;
}

/* Navbar (header) and Footer */
.navbar,
.site-header,
footer {
  background-color: #8b0000 !important; /* red */
  color: #ddd !important;
}

/* Navbar links and Site-Nav links */
.navbar a.nav-link,
.navbar-brand,
.site-nav a {
  color: gold !important; /* gold text on red */
}
.navbar a.nav-link:hover,
.site-nav a:hover,
.site-nav a.active {
  color: #fffacd !important; /* light gold on hover */
  text-decoration: none !important; /* remove underline */
}

/* Global <a> rules: red + no underline on hover */
a {
  color: gold !important; /* firebrick red */
  text-decoration: none !important;
  font-weight: bold;
  transition: color 0.2s ease;
}
a:hover,
a:focus {
  color: #ffd966; /* a slightly lighter/more‐yellow gold */
  text-decoration: underline; /* optional: underline on hover */
}

/* Section titles (e.g. “Latest News”) */
.section-title,
.page-title,
.history-wrapper summary {
  color: gold !important;
  border-bottom: 1px solid #bbb !important;
}

/* Main content & sidebar: same red as footer */
.main-content,
.sidebar {
  background-color: #8b0000 !important; /* match footer */
  color: #ddd !important;
  padding: 1rem !important;
  border-radius: 0.5rem !important;
}

/* Three top boxes side-by-side, no wrapping */
.top-boxes {
  display: flex;
  flex-wrap: nowrap; /* remove wrap so boxes stay in one row */
background-color: #8b0000;
  gap: 1rem;
  margin-top: 1rem;
}
.top-box {
      width: 32%;
      height: 200px;
      background-color: #333;
border: 2px solid var(--bold-gold);
      margin: 1%;
      display: inline-block;
      vertical-align: top;
      border-radius: 6px;
      overflow: hidden;
}
.top-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
}

/* Footer-panel (four-column area) */
.footer-panel {
  background-color: #2b2b2b !important; /* dark gray panel */
  padding: 1rem !important;
  margin-top: 2rem !important;
  border-radius: 0.5rem !important;
}
.footer-panel .col {
  padding: 0.5rem !important;
}

/*───────────────────────────────────────────────────────────────────────────*/
/* 2) ORIGINAL FRONTEND.CSS (100% Included, but with dark-theme color changes) */
/*───────────────────────────────────────────────────────────────────────────*/

/* 2a) Base HTML/body */
html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    /* Changed from #f9f9f9 to dark */
    background-color: #1a1a1a;
    color: #8b0000; /* was #800000 (maroon) */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 2b) Links */
a {
    color: #b22222;        /* was #a50000 */
    text-decoration: none; /* remove underline */
    font-weight: bold;
    transition: color 0.2s ease;
}
a:hover {
    color: #8b0000;       /* was #800000 */
    text-decoration: none; /* remove underline */
}

/* 2c) Site Header */
.site-header {
    background-color: #8b0000; /* was #800000 */
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-header img {
    height: 50px;
}

/* 2d) Site Nav Links */
.site-nav a {
    color: #ddd;             /* lighter gray on dark background */
    margin-left: 15px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}
.site-nav a:hover,
.site-nav a.active {
    color: gold;             /* gold on hover/active */
}

/* 2e) Site Content wrapper */
.site-content {
    padding: 20px;
    max-width: 1000px;
    margin: auto;
    width: 100%;
    flex-grow: 1;
}

.site-content h2 {
  color: gold;
}

/* 2f) Footer */
footer {
    background-color: #8b0000; /* was #800000 */
    color: #ccc;               /* was #ccc on light bg */
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
}

/* 2g) Generic Content Box */
.content-box {
    background-color: #2b2b2b;        /* was #fff */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* 2h) Chronology */
.chronology-container {
    margin-bottom: 30px;
}
.chronology-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background-color: #2b2b2b;         /* was #fff */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}
.chronology-table th,
.chronology-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #333;    /* was #eee */
}
.chronology-table thead {
    background-color: #b22222;        /* was #a50000 */
    color: #fff;
}
.chronology-table tbody tr:nth-child(even) {
    background-color: #2a2a2a;        /* was #f8f4eb */
}
.chronology-table tbody tr:hover {
    background-color: #242424;        /* was #f2eadd */
}
.chronology-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    color: #b22222;                    /* was #a50000 */
    margin-bottom: 0.5rem;
    margin-top: 0;
    border-bottom: 1px solid #bbb;     /* was #ccc */
    padding-bottom: 10px;
}

/* 2i) Win-Loss Table */
.win-loss-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background-color: #2b2b2b;        /* was #fff */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    overflow: hidden;
}
.win-loss-table th,
.win-loss-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #333;   /* was #eee */
}
.win-loss-table thead {
    background-color: #b22222;       /* was #a50000 */
    color: #fff;
}
.win-loss-table tbody tr:nth-child(even) {
    background-color: #2a2a2a;       /* was #f8f4eb */
}
.win-loss-table tbody tr:hover {
    background-color: #242424;       /* was #f2eadd */
}
.win-loss-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #b22222;                  /* was #a50000 */
    border-bottom: 2px solid #bbb;   /* was #ccc */
    padding-bottom: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 2j) Tab Buttons (filtering/sorting) */
.tab-button {
    background-color: #444;          /* was #eee */
    border: 1px solid #333;          /* was #ccc */
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #ddd;                     /* was #333 */
    transition: all 0.2s ease;
}
.tab-button:hover,
.tab-button.active {
    background-color: #b22222;       /* was #a50000 */
    color: white;
    border-color: #b22222;
}

.filter-bar {
    text-align: center;
    margin-bottom: 1.5rem;
}
.filter-bar input,
.filter-bar select,
.filter-bar button {
    font-size: 1rem;
    padding: 5px 10px;
    margin: 0 5px;
}

/* 2k) Page Title */
.page-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: gold;                     /* was default black */
}

/* 2l) Tabs (link list) */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 1rem;
    width: 100%;
}
.tab-links li a {
    padding: 10px 16px;
    background-color: #b22222;       /* was #a50000 */
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}
.tab-links li.active a,
.tab-links li a:hover {
    background-color: #8b0000;       /* was #800000 */
    text-decoration: none;
}
.tab-content .tab {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}
.tab-content .tab.active {
    display: block;
}
.tab-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
}

/* 2m) Headshot Grid */
.headshot-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.headshot-grid img {
    width: 150px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.2s;
    border: 1px solid #333;          /* border on dark bg */
    background-color: #2b2b2b;
}
.headshot-grid a:hover img {
    transform: scale(1.05);
}

/* 2n) Promo List Layout */
.promo-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.promo-entry {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background-color: #2b2b2b;   /* was #fff */
    border: 1px solid #333;      /* was #ddd */
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}
.promo-image img {
    height: 100px;
    width: auto;
    border-radius: 4px;
    object-fit: contain;
}
.promo-info {
    flex: 1;
}
.promo-info h2 {
    margin: 0 0 6px 0;
    font-size: 1.4rem;
    color: #b22222;               /* was #a50000 */
}
.promo-info h2 a {
    text-decoration: none;
    color: #b22222;               /* was #a50000 */
}
.promo-info h2 a:hover {
    text-decoration: none;
    color: #8b0000;               /* was #800000 */
}
.promo-info div {
    line-height: 1.5;
    margin-bottom: 2px;
}

/* 2o) Title Image */
.title-img {
    width: 200px;
    height: auto;
    border-radius: 4px;
    border: none; /* remove white border */
}

/* 2p) Champion Block */
.champion-block {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
    border: 1px solid #333;        /* was #ccc */
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
    background-color: #2b2b2b;      /* was default white */
}
.champion-info {
    text-align: left;
    min-width: 200px;
    color: #ddd;                    /* ensure text is light */
}

/* 2q) History Wrapper / Table */
.history-wrapper {
    margin-top: 10px;
    margin-bottom: 20px;
}
.history-wrapper summary {
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 5px;
    color: gold;                    /* bold gold */
}
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.history-table th, .history-table td {
    border: 1px solid #333;       /* was #ccc */
    padding: 8px;
    color: #ddd;                   /* ensure light text */
}
.history-table th {
    background-color: #b22222;    /* was #f0f0f0 */
    color: #fff;
}

/* 2r) Roster Search */
.roster-search {
    display: block;
    margin: 0 auto 20px auto;
    padding: 8px 12px;
    max-width: 300px;
    width: 90%;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #333;        /* was #ccc */
    background-color: #2b2b2b;     /* dark background */
    color: #ddd;                   /* light text */
}

/* 2s) Character Images */
.headshot {
    position: relative;
    display: inline-block;
}
.character-img {
    width: 150px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    background-color: #2b2b2b;     /* ensure dark behind */
    border: 1px solid #333;
}
.character-img:hover {
    transform: scale(1.05);
}
.champion-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px !important;
    height: 25px !important;
    z-index: 10;
    pointer-events: none;
    object-fit: contain;
    filter: brightness(1.5) invert(1) grayscale(1);
}

/* 2t) Gender Tabs */
.gender-tabs ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 10px 0 20px;
}
.gender-tab {
    padding: 6px 12px;
    background: #444;             /* was #e3e3e3 */
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    color: #ddd;                   /* was #333 */
}
.gender-tab.active {
    background: #2b2b2b;           /* was #333 */
    color: #fff;
}
.gender-tabs li a {
    display: inline-block;
    padding: 6px 10px;
    background: #444;             /* was #e3e3e3 */
    color: #ddd;                   /* was #333 */
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
    font-weight: bold;
}
.gender-tabs li.active a {
    background: #2b2b2b;           /* was #333 */
    color: #fff;
}

/* 2u) Fade In */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 2v) Rankings Table */
.rankings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}
.rankings-table th, .rankings-table td {
    padding: 10px;
    border-bottom: 1px solid #333; /* was #ccc */
    text-align: left;
    color: #ddd;                   /* ensure light text */
}
.rankings-table th {
    background-color: #444;        /* was #eee */
    color: #fff;
}

/* 2w) Movement Indicators */
.movement-up {
    color: #00ff00;                /* unchanged */
    font-weight: bold;
}
.movement-down {
    color: #ff0000;                /* unchanged */
    font-weight: bold;
}
.movement-same {
    color: #aaa;                   /* unchanged */
    font-weight: bold;
}

/* 2x) Updated Date */
.updated-date {
    margin: 0.5em 0 1em;
    font-style: italic;
    color: #aaa;                   /* was #666 */
}

/* 2y) Legend Box / Manual Notes */
.legend-box {
    margin-top: 2em;
    font-size: 0.9em;
    color: #ddd;                   /* was #444 */
}
.legend-box h4 {
    margin-bottom: 0.5em;
}
.legend-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1em;
}
.manual-notes {
    padding-left: 0;
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #ddd;                   /* was #444 */
}

/* 2z) Event Header / Meta */
.event-header {
    text-align: center;
    margin-bottom: 2rem;
}
.event-header img {
    display: block;
    margin: 0 auto 1rem;
    max-width: 100%;
    height: auto;
    border: 2px solid #111;        /* was #000000 */
}
.event-meta {
    font-size: 1rem;
    color: #ddd;                   /* was #555 */
    margin-bottom: 2rem;
    line-height: 1.4;
}

/* 2aa) Match Segment */
.match-segment {
    margin-bottom: 2rem;
}
.match-segment h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: #b22222;                /* was #800000 */
}
.match-segment .content {
    margin-left: 1rem;
    text-align: left;
    color: #ddd;                   /* ensure light text */
}

/* 2ab) Credits Box */
.credits-box {
    border-top: 1px solid #333;    /* was #ccc */
    padding-top: 1rem;
    font-size: 0.85rem;
    color: #ddd;                   /* ensure light text */
    line-height: 1.4;
    text-align: left;
}
.credits-box h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: gold;                   /* bold gold */
}
.credits-box ul {
    padding-left: 1.2rem;
    margin: 0;
}
.credits-box li {
    margin-bottom: 0.3rem;
}

/* 2ac) Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    background-color: #2b2b2b;    /* was #fff */
    border: 1px solid #333;       /* was #ddd */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.profile-photo {
    flex: 0 0 180px;
    margin-right: 30px;
}
.profile-photo img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #333;
}
.profile-info {
    flex: 1;
}
.profile-info h1 {
    margin: 0 0 8px 0;
    font-size: 2rem;
    color: #b22222;               /* was #a50000 */
}
.profile-info .basic-stats {
    font-size: 1rem;
    color: #ddd;                  /* was #555 */
    margin-bottom: 12px;
}
.profile-info .basic-stats span {
    display: inline-block;
    margin-right: 20px;
}
.profile-info .bio-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #ddd;                   /* was #444 */
}

/* 2ad) Quick Facts */
.quick-facts {
    display: flex;
    flex-wrap: wrap;
    background-color: #2b2b2b;    /* was #fff */
    border: 1px solid #333;       /* was #ddd */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.quick-facts .fact {
    flex: 1 1 250px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.quick-facts .fact .label {
    font-weight: bold;
    margin-right: 8px;
    color: #ddd;                   /* was #333 */
    white-space: nowrap;
}
.quick-facts .fact .value {
    color: #ddd;                   /* was #555 */
    line-height: 1.4;
}
.quick-facts .fact .value.audio-player {
    display: flex;
    align-items: center;
}
.quick-facts .fact .value.audio-player audio {
    margin-left: 8px;
    width: 200px;
}

/* 2ae) Tabs inside content */
.tabs {
    background-color: #2b2b2b;    /* was #fff */
    border: 1px solid #333;       /* was #ddd */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    display: block;
}
.tabs .tab-buttons {
    display: flex;
    background-color: #2b2b2b;    /* was #f1f5f9 */
    border-bottom: 1px solid #333; /* was #ddd */
}
.tabs .tab-buttons button {
    flex: 1;
    padding: 12px;
    background: #2b2b2b;          /* was #f1f5f9 */
    border: none;
    border-right: 1px solid #444; /* was #d9e2eb */
    font-size: 1rem;
    color: #ddd;                   /* was #555 */
    cursor: pointer;
    transition: background-color 0.2s;
}
.tabs .tab-buttons button:last-child {
    border-right: none;
}
.tabs .tab-buttons button:hover {
    background-color: #444;        /* was #e2e8f0 */
}
.tabs .tab-buttons button.active {
    background-color: #b22222;    /* was #a50000 */
    color: #fff;
    border-bottom: 3px solid #b22222;
    font-weight: bold;
}
.tabs .tab-content {
    display: none;
    width: 100%;
    clear: both;
    border: 1px solid #333;       /* was #ddd */
    border-top: none;
    padding: 20px;
    background-color: #2b2b2b;    /* was #fff */
    box-sizing: border-box;
}
.tabs .tab-content.active {
    display: block;
}
.tabs table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.tabs table th {
    background-color: #b22222;    /* was #a50000 */
    color: #fff;
    padding: 8px 12px;
    border: 1px solid #444;       /* was #eee */
    text-align: left;
    font-size: 1rem;
}
.tabs table td {
    padding: 8px 12px;
    border: 1px solid #444;       /* was #eee */
    font-size: 1rem;
    color: #ddd;                   /* was #444 */
}
.tabs table tbody tr:nth-child(even) {
    background-color: #2a2a2a;    /* was #f9f9f9 */
}

/* 2af) In-Ring Table */
.in-ring-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.in-ring-table th {
    width: 30%;
    background-color: #b22222;    /* was #a50000 */
    color: #fff;
    padding: 8px 12px;
    border: 1px solid #444;       /* was #eee */
    font-size: 1rem;
    text-align: left;
}
.in-ring-table td {
    width: 70%;
    padding: 8px 12px;
    border: 1px solid #444;       /* was #eee */
    font-size: 1rem;
    color: #ddd;                   /* was #444 */
}
.in-ring-table tbody tr:nth-child(even) {
    background-color: #2a2a2a;    /* was #f9f9f9 */
}

.latest-event-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.latest-event-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}
.latest-event-overlay {
  position: absolute;
bottom: 8px;
right: 8px;
  background-color: rgba(0,0,0,0.8);
  color: gold;
  font-weight: bold;
  padding: 4px 8px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.content-box h2 {
  color: gold;
}

.content-box h3 {
  color: gold;
}

.content-box a {
  color: gold;
  text-decoration: none;
}

.content-box a:hover,
.content-box a:focus {
  color: #ffd966;
  text-decoration: underline;
}

.event-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 2rem;
}
.event-card {
  background-color: #2b2b2b;
  border: 2px solid var(--bold-gold);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  width: 200px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}
.event-card img {
  width: 100%;
  height: auto;
}
.event-card-name {
  padding: 10px;
  font-weight: bold;
  color: gold;
}
.booking-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.booking-card {
  position: relative;
  width: 240px;
  border: 2px solid var(--bold-gold);
  border-radius: 8px;
  overflow: hidden;
  background-color: #2b2b2b;
}
.booking-card img {
  width: 100%;
  height: auto;
}
.booking-card .air-date-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.75);
  color: gold;
  font-weight: bold;
  padding: 4px 6px;
  font-size: 0.85rem;
  border-radius: 4px;
}
#searchBar {
  margin-bottom: 1rem;
  padding: 8px 12px;
  width: 300px;
  max-width: 90%;
  font-size: 1rem;
  border: 1px solid #555;
  background-color: #1f1f1f;
  color: #f5f5f5;
  border-radius: 4px;
}

.badge {
    background: #9b1c1c;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 5px;
}
.topic-row {
    background: #fff;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 5px;
    box-shadow: 0 0 3px #ccc;
}
