/* ==========================================================================
   BACK TO THE FUTURE WEBSITE - STYLES
   ========================================================================== */

:root {
  --bg-color: #0b0c10;
  --panel-bg: #1f242d;
  --panel-border: #3a4150;
  
  --led-red: #ff2a2a;
  --led-red-glow: rgba(255, 42, 42, 0.85);

  --led-green: #00ff66;
  --led-green-glow: rgba(0, 255, 102, 0.85);

  --led-yellow: #ffbb00;
  --led-yellow-glow: rgba(255, 187, 0, 0.85);

  --bttf-orange: #ff6600;
  --bttf-yellow: #ffcc00;
  
  --font-digital: 'Orbitron', monospace;
  --font-heading: 'Righteous', 'Chakra Petch', sans-serif;
  --font-body: 'Chakra Petch', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 50% 20%, #1e2638 0%, #0b0c10 80%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 4px);
  color: #e0e6ed;
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-x: hidden;
  position: relative;
}

/* CRT Scanline Overlay */
.crt-overlay::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 99;
  pointer-events: none;
  opacity: 0.6;
}

/* Main Container */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   HEADER & TITLE
   ========================================================================== */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  width: 100%;
}

/* Title Gradient BTTF */
.bttf-title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bttf-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  transform: skewX(-12deg);
  text-transform: uppercase;
  line-height: 1;
}

.title-bottom {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  background: linear-gradient(180deg, #ffffff 0%, #ffe600 40%, #ff3300 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(4px 4px 0px #000) drop-shadow(0 0 20px rgba(255, 51, 0, 0.8));
  letter-spacing: 3px;
}

.subtitle {
  margin-top: 8px;
  font-size: 1.3rem;
  letter-spacing: 4px;
  color: #ffbb00;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 187, 0, 0.5);
}

/* ==========================================================================
   DASHBOARD & TIME CIRCUITS
   ========================================================================== */
.dashboard {
  width: 100%;
}

.time-circuits-container {
  background: linear-gradient(145deg, #181b22 0%, #252a36 100%);
  border: 4px solid #363d4e;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 
    0 15px 35px rgba(0,0,0,0.9),
    inset 0 1px 1px rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}

.circuit-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f1117;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #2a303d;
}

.circuit-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 3px;
  color: #8a96a8;
}

.screw {
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #888 30%, #444 80%);
  border-radius: 50%;
  box-shadow: inset 1px 1px 2px #000;
  position: relative;
}
.screw::after {
  content: "";
  position: absolute;
  top: 4px; left: 2px; width: 6px; height: 2px;
  background: #222;
}

/* Display Box Frames */
.time-display-box {
  background: #08090c;
  border: 3px solid #252a35;
  border-radius: 8px;
  padding: 15px 12px 10px 12px;
  position: relative;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.9);
}

.display-label-tape {
  position: absolute;
  top: -12px;
  left: 20px;
  background: #111;
  color: #f0f0f0;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 2px 10px;
  border: 1px solid #444;
  border-radius: 3px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
  font-family: var(--font-body);
}

.display-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
}

@media (max-width: 550px) {
  .display-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.disp-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #030405;
  padding: 8px 4px;
  border-radius: 6px;
  border: 1px solid #1a1d24;
}

.disp-sublabel {
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: #667085;
  margin-bottom: 4px;
  font-weight: 700;
}

.disp-val {
  font-family: var(--font-digital);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 2px;
}

/* Color specific LED styles */
.red-display .disp-val {
  color: var(--led-red);
  text-shadow: 
    0 0 5px var(--led-red),
    0 0 12px var(--led-red-glow),
    0 0 25px var(--led-red-glow);
}

.green-display .disp-val {
  color: var(--led-green);
  text-shadow: 
    0 0 5px var(--led-green),
    0 0 12px var(--led-green-glow),
    0 0 25px var(--led-green-glow);
}

.yellow-display .disp-val {
  color: var(--led-yellow);
  text-shadow: 
    0 0 5px var(--led-yellow),
    0 0 12px var(--led-yellow-glow),
    0 0 25px var(--led-yellow-glow);
}

/* ==========================================================================
   MISSION INFO CARD
   ========================================================================== */
.message-section {
  width: 100%;
}

.message-card {
  background: linear-gradient(145deg, #1c212b 0%, #282f3d 100%);
  border: 4px solid #3d4657;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.message-header {
  width: 100%;
  display: flex;
  align-items: center;
}

.dymo-tape {
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 3px;
  padding: 4px 12px;
  border-radius: 3px;
  border: 1px solid #444;
  box-shadow: 3px 3px 0px rgba(0,0,0,0.5);
  font-weight: bold;
}

.message-text {
  width: 100%;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 1.5;
  color: #ffffff;
  font-family: var(--font-heading);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  border-left: 4px solid var(--bttf-orange);
  padding-left: 15px;
}

.info-badges {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.badge {
  background: #11141a;
  border: 1px solid #333a48;
  border-radius: 6px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.badge-btn {
  color: #ffaa00;
  border: 1px solid #775500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.badge-btn:hover {
  background: #1e2533;
  border-color: #ffaa00;
  color: #ffc800;
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

.badge-icon {
  font-size: 1.2rem;
}

.badge-label {
  color: #8a96a8;
}

/* ==========================================================================
   DELOREAN GIF SECTION (WITHOUT ORANGE BORDER)
   ========================================================================== */
.gif-section {
  width: 100%;
}

.gif-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8);
  background: #000;
}

.bottom-gif {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 0.85rem;
  color: #5d6778;
  letter-spacing: 2px;
  padding: 10px 0;
}
