/* ============================================================
   BUCK ROGERS 2419 — COMPONENTS STYLESHEET
   Buttons, RPG Character Cards, HUD Badges, Modals, Timeline
   ============================================================ */

/* Primary CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--color-primary-orange) 0%, var(--color-amber) 100%);
  color: #000;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 2px;
  padding: 1rem 2.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(200, 90, 0, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.btn-cta:hover::before {
  left: 100%;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px var(--color-amber);
  color: #000;
}

/* Secondary Button Outline */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 14, 26, 0.6);
  color: var(--color-cyan);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--color-cyan);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--color-cyan);
  color: #000;
  box-shadow: 0 0 20px var(--color-cyan-glow);
  transform: translateY(-2px);
}

/* Badge Component */
.badge-public-domain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10B981;
  color: #34D399;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 700;
}

.badge-hud {
  display: inline-block;
  background: rgba(0, 168, 204, 0.15);
  border: 1px solid var(--color-cyan);
  color: var(--color-cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 1px;
}

/* RPG Stat Bar */
.stat-bar-container {
  margin-bottom: 0.8rem;
}

.stat-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #A0AEC0;
  margin-bottom: 4px;
}

.stat-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0, 168, 204, 0.3);
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-cyan) 0%, var(--color-amber) 100%);
  border-radius: 4px;
  transition: width 1s ease-out;
}

/* Timeline Component */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary-orange), var(--color-cyan), var(--color-gold));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 2rem 2.5rem 2rem;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 18px;
  height: 18px;
  background: var(--color-amber);
  border: 3px solid #000;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-amber);
  z-index: 2;
}

.timeline-item.left .timeline-dot {
  right: -9px;
}

.timeline-item.right .timeline-dot {
  left: -9px;
}

.timeline-content {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 1.5rem;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

.timeline-content:hover {
  border-color: var(--color-gold);
}

.timeline-date {
  font-family: var(--font-mono);
  color: var(--color-gold);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Lightbox Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  background: var(--color-bg-night);
  border: 1px solid var(--color-amber);
  border-radius: 8px;
  padding: 2rem;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 50px rgba(212, 130, 10, 0.3);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid var(--color-cyan);
  color: var(--color-cyan);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: var(--color-cyan);
  color: #000;
}

@media (max-width: 768px) {
  .timeline-container::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
  }
  .timeline-item.left, .timeline-item.right {
    left: 0;
    text-align: left;
  }
  .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot {
    left: 11px;
  }
}
