/* =========================================
   1. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
* {
  box-sizing: border-box;
}

/* Force Roboto Mono on EVERYTHING */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
ul,
ol,
li,
blockquote,
table,
th,
td,
pre,
code,
input,
button,
textarea,
select {
  font-family: 'Roboto Mono', 'Courier New', monospace !important;
}

body {
  background-color: #050505;
  /* Deep Black Background */
  color: #c0c0c0;
  /* Retro Grey Text */
  margin: 0;
  padding: 20px;
  width: 100vw;
  overflow-x: hidden;
}

/* =========================================
   2. LAYOUT CONTAINER
   ========================================= */
.layout-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: #111;
  /* Dark Grey Panel */
  border: 1px solid #444;
  /* Subtle Border */
  padding: 20px;
  margin-bottom: 50px;
  /* Breathing room at bottom */
}

/* =========================================
   3. LINKS & NAVIGATION
   ========================================= */
a {
  color: #00ff00;
  /* Hacker Green */
  text-decoration: none;
}

a:hover {
  background-color: #00ff00;
  color: #000;
}

/* Active Page in Nav */
.active-link {
  color: #fff;
  text-decoration: underline;
}

/* =========================================
   4. TABLES (Desktop Default)
   ========================================= */
table {
  width: 100%;
  background-color: #1a1a1a;
  border: 1px solid #444;
  border-collapse: collapse;
  color: #ddd;
  margin-bottom: 20px;
}

th,
td {
  border: 1px solid #444;
  padding: 8px;
  vertical-align: top;
}

/* Header Row Style */
.table-header {
  background-color: #333;
  color: #fff;
  text-align: left;
}

.table-header th {
  border-bottom: 2px solid #555;
}

/* =========================================
   5. FORMS & IMAGES
   ========================================= */
input {
  background-color: #000;
  color: #00ff00;
  border: 2px solid #00ff00;
  padding: 8px;
  width: 100%;
}

img {
  border: 1px solid #555;
  opacity: 0.9;
  max-width: 100%;
  height: auto;
}

img:hover {
  opacity: 1.0;
}

/* =========================================
   6. UTILITY CLASSES
   ========================================= */
.text-green {
  color: #00ff00;
  font-weight: bold;
}

.text-dim {
  color: #777;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* =========================================
   7. REVIEW LAYOUT (Desktop & Global)
   ========================================= */

/* Container: Standard Block (Allows wrapping) */
.review-layout {
  display: block;
  /* Removes Flexbox */
  width: 100%;
  /* Clearfix: Ensures container expands if sidebar is taller than text */
  overflow: auto;
}

/* Left Sidebar: Floated Left */
.review-sidebar {
  float: left;
  /* Key to wrapping */
  width: 280px;
  margin-right: 40px;
  /* Space between sidebar and text */
  margin-bottom: 20px;
  /* Space below sidebar before text wraps under */

  background-color: #0e0e0e;
  border: 1px solid #333;
  padding: 15px;
  text-align: center;

  /* STATIC: Stays at the top, does not follow scroll */
  position: static;
}

/* Right Content: Flows around the float */
.review-content {
  display: block;
  /* No width or flex properties needed. 
     Text will naturally wrap around the floated sidebar. */
}

/* Image Control */
.review-cover {
  width: 100%;
  height: auto;
  border: 2px solid #333;
  margin-bottom: 15px;
  display: block;
}

/* Links & Text */
.sidebar-section {
  margin-bottom: 20px;
  border-bottom: 1px solid #222;
  padding-bottom: 15px;
}

.sidebar-label {
  font-size: 0.75rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 5px;
}

.sidebar-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00ff00;
}

.store-link {
  display: block;
  color: #aaa;
  text-decoration: none;
  padding: 5px 0;
  border-bottom: 1px dashed #333;
  font-size: 0.9rem;
  text-align: left;
}

.store-link:hover {
  color: #fff;
  background-color: #222;
}

.review-content h1,
.review-content h2,
.review-content h3 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700;
  /* Bold */
  letter-spacing: -0.5px;
  /* Slight tightening for headlines */
  margin-top: 1.5em;
}

.review-content,
.review-content p,
.review-content li {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 400;
  text-align: justify;
  line-height: 1.7;
  font-size: 1.05rem;
  color: #d4d4d4ff;
}

.review-content strong,
.review-content b {
  font-weight: 700;
  color: #d4d4d4ff;
}

/* =========================================
   ABOUT ME TABS (Folder Style)
   ========================================= */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  /* Space between tabs */

  /* The "Rail" Line */
  border-bottom: 1px solid #444;
  padding-left: 10px;
  position: relative;
  z-index: 1;
}

.tab-btn {
  background-color: #0e0e0e;
  border: 1px solid #444;
  border-radius: 8px 8px 0 0;
  color: #888;
  padding: 10px 20px;
  text-decoration: none;
  font-family: 'Roboto Mono', monospace;

  /* THE FIX: Pull the tab down 1px to overlap the rail */
  margin-bottom: -1px;
}

.tab-btn:hover {
  background-color: #1a1a1a;
  color: #fff;
  z-index: 5;
  /* Brings hover state above the line */
}

/* THE ACTIVE TAB (Open Folder) */
.tab-btn.active {
  background-color: #111;
  /* Matches content box */
  color: #00ff00;
  /* Hacker Green */
  border: 1px solid #444;
  /* Standard border */

  /* "Erases" the bottom line by drawing a black line over the grey rail */
  border-bottom: 1px solid #111;

  font-weight: bold;
  z-index: 10;
  /* Must be higher than the rail to cover it */
}

/* The Box Content */
.about-content-box {
  background-color: #111;
  border: 1px solid #444;

  /* Remove top border so the rail acts as the top */
  border-top: none;

  padding: 20px;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   9. LIVE STREAM BANNER
   ========================================= */
@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
}

.live-banner {
  /* Dark background with a faint red tint */
  background: rgba(233, 25, 22, 0.05);
  /* Retro thin red border */
  border: 1px solid #e91916;
  color: #e91916;
  padding: 15px;
  text-align: center;
  margin-bottom: 30px;
  font-family: 'Roboto Mono', monospace;
}

.live-dot {
  display: inline-block;
  color: #e91916;
  margin-right: 8px;
  animation: pulse 2s infinite;
}

.live-link {
  display: inline-block;
  margin-top: 10px;
  background: #e91916;
  color: #000;
  /* Black text on red box */
  padding: 4px 12px;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  border: 1px solid #e91916;
}

.live-link:hover {
  background: #fff;
  color: #e91916;
  border-color: #fff;
}

/* =========================================
   8. MOBILE RESPONSIVENESS
   ========================================= */
@media screen and (max-width: 800px) {

  body {
    padding: 10px;
  }

  /* --- GENERAL TABLE CARD LOGIC --- */
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  /* Card Container Styling */
  tr {
    border: 1px solid #444;
    margin-bottom: 20px;
    /* Removed background-color to respect your preference */
    display: flex;
    flex-direction: column;
    padding: 10px;
  }

  /* Card Cell Styling */
  td {
    border: none;
    border-bottom: 1px solid #333;
    padding: 15px;
    width: 100%;
    overflow-wrap: break-word;
  }

  td:last-child {
    border-bottom: none;
  }

  /* --- HEADER & NAV ADJUSTMENTS --- */
  h1 {
    font-size: 24px;
    margin-top: 0;
  }

  .nav-links a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px dashed #333;
    font-size: 18px;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .tab-nav {
    flex-direction: column;
    border-bottom: none;
    padding-left: 0;
  }

  .tab-btn {
    width: 100%;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 5px;
    /* Reset the negative margin on mobile */
  }

  .tab-btn.active {
    border-bottom: 1px solid #00ff00;
  }

  .about-content-box {
    border-top: 1px solid #444;
    /* Restore border on mobile */
  }

  /* =========================================
     MOBILE: SPECIFIC TABLE OVERRIDES
     ========================================= */

  /* --- A. SCHEDULE TABLE (Left Aligned + Labels) --- */
  .schedule-table tr {
    align-items: flex-start;
    /* Left align content */
  }

  .schedule-table td {
    text-align: left;
    padding: 10px;
  }

  /* Schedule Labels */
  .schedule-table td:nth-of-type(1)::before {
    content: "Day: ";
    color: #888;
    font-size: 0.8em;
    display: block;
    margin-bottom: 2px;
  }

  .schedule-table td:nth-of-type(2)::before {
    content: "Time: ";
    color: #888;
    font-size: 0.8em;
    display: block;
    margin-bottom: 2px;
  }

  .schedule-table td:nth-of-type(3)::before {
    content: "Mission: ";
    color: #888;
    font-size: 0.8em;
    display: block;
    margin-bottom: 2px;
  }


  /* --- B. GAME ROWS (Centered + Labels) --- */
  /* Applies to Homepage "Latest" and Archive Page */
  .game-row tr {
    align-items: center;
    /* Keep games centered (looks better for covers) */
  }

  .game-row td {
    text-align: center;
  }

  /* Game Row Labels */
  .game-row td:nth-of-type(3)::before {
    content: "Review: ";
    color: #888;
    font-size: 0.8em;
    display: block;
    margin-bottom: 5px;
  }

  .game-row td:nth-of-type(4)::before {
    content: "VODs: ";
    color: #888;
    font-size: 0.8em;
    display: block;
    margin-bottom: 5px;
  }

  .review-layout {
    display: flex;
    /* Switch back to Flex for easy stacking */
    flex-direction: column;
  }

  .review-sidebar {
    float: none;
    /* Disable float on mobile */
    width: 100%;
    margin-right: 0;
    margin-bottom: 30px;
  }

}