/* CSS Design System for Project Catfish '99 */

/* ==========================================================================
   CSS Variables & Themes
   ========================================================================== */
:root {
  /* Default Theme (Mystic Teal - Miami Cruiser Vibe) */
  --bg-dark: #07090e;
  --bg-card: rgba(14, 20, 32, 0.75);
  --bg-card-hover: rgba(20, 28, 45, 0.85);
  --border-color: rgba(0, 230, 240, 0.15);
  --border-color-hover: rgba(0, 230, 240, 0.4);
  
  --primary-color: #00e6f0;
  --primary-glow: rgba(0, 230, 240, 0.25);
  --secondary-color: #ff3366;
  --secondary-glow: rgba(255, 51, 102, 0.3);
  
  --text-main: #f0f4f8;
  --text-muted: #8fa0b5;
  --text-dark: #07090e;
  
  /* Fonts */
  --font-text: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  
  /* Layout */
  --grid-gap: 24px;
  --border-radius: 12px;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Theme overrides */
body.theme-teal {
  --bg-dark: #06090f;
  --primary-color: #00bcd4;
  --primary-glow: rgba(0, 188, 212, 0.3);
  --secondary-color: #e91e63;
  --secondary-glow: rgba(233, 30, 99, 0.3);
  --border-color: rgba(0, 188, 212, 0.15);
}

body.theme-orange {
  --bg-dark: #0c0805;
  --primary-color: #ff7700;
  --primary-glow: rgba(255, 119, 0, 0.3);
  --secondary-color: #00d2ff;
  --secondary-glow: rgba(0, 210, 255, 0.3);
  --border-color: rgba(255, 119, 0, 0.15);
}

body.theme-red {
  --bg-dark: #0f0505;
  --primary-color: #ff2233;
  --primary-glow: rgba(255, 34, 51, 0.3);
  --secondary-color: #ffff00;
  --secondary-glow: rgba(255, 255, 0, 0.3);
  --border-color: rgba(255, 34, 51, 0.15);
}

body.theme-pewter {
  --bg-dark: #0e1115;
  --primary-color: #90a4ae;
  --primary-glow: rgba(144, 164, 174, 0.3);
  --secondary-color: #ffab40;
  --secondary-glow: rgba(255, 171, 64, 0.3);
  --border-color: rgba(144, 164, 174, 0.15);
  --text-main: #eceff1;
}

/* ==========================================================================
   Base Styles & Layout
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(var(--primary-color), 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 0%, rgba(var(--secondary-color), 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(var(--primary-color), 0.05) 0px, transparent 50%);
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 2;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
  border-left: 1px solid var(--border-color);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* ==========================================================================
   CRT Overlay & Glitch Effect
   ========================================================================== */
.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.18) 50%),
              linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 4px, 3px 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.crt-overlay.active {
  opacity: 1;
  animation: crt-flicker 0.15s infinite;
}

@keyframes crt-flicker {
  0% { opacity: 0.96; }
  50% { opacity: 1; }
  100% { opacity: 0.98; }
}

/* ==========================================================================
   Premium Cards (Glassmorphism)
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.card:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 8px 32px 0 var(--primary-glow);
}

.card-inner {
  padding: 30px;
  position: relative;
  z-index: 2;
}

/* Custom glow element behind cards */
.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover .card-glow {
  opacity: 0.3;
}

/* ==========================================================================
   Header and Dashboard Gauges
   ========================================================================== */
.retro-header {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 15px;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
}

.logo-txt-sub {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--secondary-color);
  letter-spacing: 4px;
}

.logo-txt {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-glow);
  letter-spacing: -1px;
}

/* Controls Panel */
.controls-panel {
  display: flex;
  gap: 12px;
}

.control-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  font-family: var(--font-mono);
  padding: 8px 14px;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
}

.control-btn.active {
  color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-glow);
}

.btn-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
  display: inline-block;
  transition: var(--transition-smooth);
}

.control-btn.active .btn-indicator {
  background: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-color);
}

/* Gauges Dashboard Panel */
.dashboard-cluster {
  background: rgba(5, 7, 12, 0.9);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.dash-card {
  background: rgba(10, 14, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  min-height: 160px;
}

.dash-card-header {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-color);
  text-shadow: 0 0 5px var(--primary-glow);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  margin-bottom: 12px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  justify-content: center;
}

.spec-row, .metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.spec-row .lbl, .metric-row .lbl {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.spec-row .val, .metric-row .val {
  font-family: var(--font-mono);
  font-weight: bold;
  color: var(--text-main);
  text-align: right;
}

.cyan-text { color: var(--primary-color); }
.green-text { color: #00e676; }
.yellow-text { color: #ffd600; }
.orange-text { color: #ff6d00; }
.red-text { color: #ff1744; }

.pulsing-status {
  text-shadow: 0 0 8px rgba(0, 230, 118, 0.5);
  animation: pulse-green 2s infinite alternate;
}
.pulsing-status.red-glow {
  text-shadow: 0 0 8px rgba(255, 23, 68, 0.6) !important;
}
.pulsing-status.yellow-glow {
  text-shadow: 0 0 8px rgba(255, 214, 0, 0.6) !important;
}

@keyframes pulse-green {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

/* Progress bar in dashboard */
.progress-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 65%;
}

.progress-bar-fill {
  height: 8px;
  background: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-glow);
  border-radius: 4px;
  transition: width 0.5s ease-in-out;
}

.progress-bar-percent {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* Theme selector bar styling */
.theme-selector-bar {
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.selector-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.theme-buttons {
  display: flex;
  gap: 8px;
}

.theme-select-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.theme-select-btn:hover {
  border-color: var(--primary-color);
  color: var(--text-main);
}

.theme-select-btn.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-glow);
}

.color-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Hero & Narrative Section
   ========================================================================== */
.hero-narrative {
  margin-bottom: 30px;
}

.narrative-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}

.narrative-text h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.badge {
  display: inline-block;
  background: var(--primary-glow);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.lead-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 15px;
  border-left: 3px solid var(--secondary-color);
  padding-left: 15px;
}

.narrative-text p {
  color: var(--text-muted);
  margin-bottom: 15px;
}

/* Camaro Vector SVG Display */
.hero-image-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
}

.hero-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  box-shadow: 0 0 15px var(--primary-glow);
  transition: var(--transition-smooth);
}

.hero-img-wrapper:hover {
  box-shadow: 0 0 25px var(--primary-glow);
}

.hero-real-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hero-img-wrapper:hover .hero-real-img {
  transform: scale(1.05);
}

.image-overlay-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.4));
  pointer-events: none;
}

.neon-tagline {
  margin-top: 15px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  align-items: center;
}

.pulse-text {
  color: var(--primary-color);
  animation: neon-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
  from { text-shadow: 0 0 2px var(--primary-glow), 0 0 8px var(--primary-glow); }
  to { text-shadow: 0 0 5px var(--primary-glow), 0 0 15px var(--primary-glow); }
}

.divider {
  opacity: 0.3;
}

.award-tag {
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 0 0 6px rgba(255, 214, 0, 0.4);
}

.font-bold {
  font-weight: bold;
}

/* ==========================================================================
   Spec Perspective Table
   ========================================================================== */
.specs-section {
  margin-bottom: 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.section-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.perspective-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.text-gray {
  color: var(--text-muted);
}

.toggle-switch-container {
  display: flex;
  align-items: center;
  background: #04060a;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  position: relative;
  padding: 2px;
}

.toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: bold;
  padding: 6px 16px;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition-smooth);
}

.toggle-btn.active {
  color: var(--text-dark);
}

body.theme-pewter .toggle-btn.active {
  color: #fff;
}

.toggle-slider-bg {
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 18px;
  pointer-events: none;
  z-index: 1;
}

.toggle-slider-knob {
  width: 50%;
  height: 100%;
  background: var(--primary-color);
  border-radius: 16px;
  box-shadow: 0 0 10px var(--primary-glow);
  position: absolute;
  left: 0;
  transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.toggle-slider-knob.right {
  left: 50%;
}

/* Specs Table */
.specs-table-container {
  width: 100%;
  overflow-x: auto;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.specs-table th {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--secondary-color);
  border-bottom: 2px solid var(--border-color);
  padding: 12px 15px;
}

.specs-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.spec-component {
  font-family: var(--font-mono);
  font-weight: bold;
  color: var(--text-main);
}

.spec-value {
  color: var(--primary-color);
  font-weight: 500;
}

.spec-verdict {
  color: var(--text-muted);
}

.hate-text {
  color: var(--secondary-color) !important;
}

.love-text {
  color: #00e676 !important;
}

/* ==========================================================================
   Logs Feed / Grid
   ========================================================================== */
.logs-section {
  margin-bottom: 40px;
}

.logs-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 768px) {
  .logs-header-container {
    flex-direction: row;
  }
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 6px 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-tab:hover {
  border-color: var(--primary-color);
  color: var(--text-main);
}

.filter-tab.active {
  background: var(--primary-glow);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Grid Layout */
.logs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--grid-gap);
}

.log-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.log-card-header {
  position: relative;
  height: 140px;
  background-color: #0b0f17;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.log-vector-art {
  width: 100%;
  height: 100%;
  opacity: 0.75;
  transition: var(--transition-smooth);
}

.log-card:hover .log-vector-art {
  transform: scale(1.05);
  opacity: 0.9;
}

.log-category-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bg-dark);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  z-index: 3;
}

.log-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.log-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--secondary-color);
  margin-bottom: 6px;
}

.log-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.log-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  flex-grow: 1;
}

.log-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.log-difficulty {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

.read-thread-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
}

.log-card:hover .read-thread-link {
  text-shadow: 0 0 5px var(--primary-glow);
}

/* ==========================================================================
   Guestbook Section
   ========================================================================== */
.guestbook-section {
  margin-bottom: 40px;
}

.guestbook-header {
  margin-bottom: 20px;
}

.guestbook-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.guestbook-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .guestbook-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.form-group input, 
.form-group textarea {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-glow);
  background: rgba(0, 0, 0, 0.4);
}

/* Avatar Radio Selector */
.avatar-select {
  display: flex;
  gap: 10px;
}

.avatar-option {
  cursor: pointer;
}

.avatar-option input {
  display: none;
}

.avatar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
}

.avatar-option input:checked + .avatar-icon {
  border-color: var(--primary-color);
  background: var(--primary-glow);
  transform: scale(1.1);
  box-shadow: 0 0 8px var(--primary-glow);
}

.submit-btn {
  background: var(--primary-color);
  color: var(--text-dark);
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px 0 var(--primary-glow);
}

body.theme-pewter .submit-btn {
  color: #fff;
}

.submit-btn:hover {
  background: #fff;
  color: var(--bg-dark);
  box-shadow: 0 4px 14px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Signatures list */
.signatures-list-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.signatures-list-container label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.signatures-list {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  max-height: 295px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.gb-entry {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: entry-fade 0.4s ease-out;
}

@keyframes entry-fade {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.gb-entry:last-child {
  border-bottom: none;
}

.gb-avatar {
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.04);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.gb-content {
  display: flex;
  flex-direction: column;
}

.gb-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.gb-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--primary-color);
}

.gb-date {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.gb-msg {
  font-size: 0.8rem;
  color: var(--text-main);
}

/* ==========================================================================
   Project Details Modal Overlay
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 4, 7, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content {
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  z-index: 2;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
  transform: rotate(90deg);
}

.modal-header {
  padding: 30px 30px 15px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.modal-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--secondary-color);
}

.modal-category-badge {
  background: var(--primary-glow);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-main);
}

.modal-body-scroll {
  padding: 20px 30px 30px 30px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Modal tech stats bar */
.modal-tech-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  padding: 12px;
}

.spec-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tile-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.tile-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: bold;
}

.modal-image-container {
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: #0b0f17;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.modal-image-container svg {
  width: 100%;
  max-height: 280px;
}

.modal-text-content {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.modal-text-content p {
  margin-bottom: 15px;
}

.modal-tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 8px;
}

/* ==========================================================================
   Footer Elements (Hits, Webring, Badges)
   ========================================================================== */
.retro-footer {
  margin-top: 40px;
  border-top: 2px solid var(--border-color);
  padding-top: 30px;
  padding-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: center;
}

/* Webring Panel */
.webring-panel {
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  padding: 15px;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
}

.webring-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--secondary-color);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.webring-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.webring-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.webring-link:hover {
  text-shadow: 0 0 5px var(--primary-glow);
  color: #fff;
}

.webring-current {
  color: var(--text-muted);
}

/* Hit Counter Odometer style */
.hit-counter-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.counter-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.counter-display {
  display: flex;
  background: #000;
  border: 2px solid #222;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.1);
}

.counter-digit {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: bold;
  color: #00ff66;
  text-shadow: 0 0 4px rgba(0, 255, 102, 0.5);
  width: 20px;
  text-align: center;
  border-right: 1px solid #1a1a1a;
  padding: 2px 4px;
  background: linear-gradient(to bottom, #111 0%, #000 50%, #111 100%);
}

.counter-digit:last-child {
  border-right: none;
}

/* Under Construction */
.construction-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 34, 51, 0.15);
  background: rgba(255, 34, 51, 0.02);
  border-radius: 6px;
  padding: 12px 15px;
}

.construction-icon {
  font-size: 1.4rem;
  animation: construction-pulse 1s infinite alternate;
}

@keyframes construction-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

.construction-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.blinking-cursor {
  font-weight: bold;
  animation: blink-cursor 0.8s infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 15px;
}

.copyright p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Checklist Section Styles
   ========================================================================== */
.checklist-section {
  margin-bottom: 30px;
}

.checklist-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.checklist-search {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.8rem;
  width: 180px;
  transition: var(--transition-smooth);
}

.checklist-search:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-glow);
}

.checklist-filters {
  display: flex;
  gap: 4px;
}

.chk-filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 5px 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chk-filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--text-main);
}

.chk-filter-btn.active {
  background: var(--primary-glow);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.checklist-stats-bar {
  display: flex;
  gap: 25px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
}

.chk-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chk-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.chk-stat-val {
  font-weight: bold;
  font-size: 0.85rem;
}

.checklist-table-container {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.checklist-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.checklist-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--secondary-color);
  border-bottom: 2px solid var(--border-color);
  padding: 10px 15px;
  background: rgba(5, 7, 12, 0.8);
  position: sticky;
  top: 0;
  z-index: 10;
}

.checklist-table td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
}

.checklist-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.checklist-table tr:last-child td {
  border-bottom: none;
}

.chk-item-name {
  font-weight: 500;
  color: var(--text-main);
}

.chk-item-date {
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.status-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.status-badge.done {
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.2);
  background: rgba(0, 230, 118, 0.04);
}

.status-badge.good {
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.2);
  background: rgba(0, 230, 118, 0.04);
  box-shadow: 0 0 6px rgba(0, 230, 118, 0.15);
}

.status-badge.future {
  color: #ff9100;
  border: 1px solid rgba(255, 145, 0, 0.2);
  background: rgba(255, 145, 0, 0.04);
}

.status-badge.planned {
  color: #ff9100;
  border: 1px solid rgba(255, 145, 0, 0.2);
  background: rgba(255, 145, 0, 0.04);
}

.status-badge.overdue {
  color: #ff1744;
  border: 1px solid rgba(255, 23, 68, 0.3);
  background: rgba(255, 23, 68, 0.08);
  box-shadow: 0 0 8px rgba(255, 23, 68, 0.2);
  text-shadow: 0 0 2px rgba(255, 23, 68, 0.5);
}

.status-badge.duesoon {
  color: #ffd600;
  border: 1px solid rgba(255, 214, 0, 0.3);
  background: rgba(255, 214, 0, 0.08);
  box-shadow: 0 0 8px rgba(255, 214, 0, 0.2);
  text-shadow: 0 0 2px rgba(255, 214, 0, 0.5);
}

.clickable-odometer {
  cursor: pointer;
  text-shadow: 0 0 5px var(--neon-cyan);
  transition: all 0.2s ease;
  border-bottom: 1px dashed rgba(0, 245, 255, 0.3);
  padding-bottom: 1px;
}

.clickable-odometer:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
}

.set-mileage-btn {
  display: inline-block;
  background: transparent;
  border: 1px dashed rgba(0, 245, 255, 0.4);
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.set-mileage-btn:hover {
  background: rgba(0, 245, 255, 0.1);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.2);
}

.alert-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 23, 68, 0.1);
  border: 1px solid rgba(255, 23, 68, 0.4);
  padding: 6px 12px;
  border-radius: 4px;
  color: #ff5252;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.alert-icon {
  font-size: 0.9rem;
}

@keyframes blink-red-border {
  0%, 100% { border-color: rgba(255, 23, 68, 0.4); box-shadow: 0 0 10px rgba(255, 23, 68, 0.15); }
  50% { border-color: rgba(255, 23, 68, 0.9); box-shadow: 0 0 15px rgba(255, 23, 68, 0.4); }
}

.blinking-border {
  animation: blink-red-border 1.5s infinite;
}

.warning-banner-row {
  margin-top: 10px !important;
}

/* Card & Modal Image styles with absolute positioning & fallback containment */
.log-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.modal-main-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Tribute & Log Gallery Styles */
.tribute-box {
  border-left: 3px solid #0055b3;
  background: rgba(0, 85, 179, 0.12);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 6px 6px 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #e0f2fe;
}

.tribute-box p {
  margin: 0;
  font-style: italic;
}

.log-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.log-gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.log-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.log-gallery-item:hover img {
  transform: scale(1.04);
}

.log-gallery-caption {
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(10, 15, 25, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-grow: 1;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 900px) {
  .narrative-grid {
    grid-template-columns: 1fr;
  }
  .hero-image-display {
    max-width: 450px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .logo-txt {
    font-size: 1.6rem;
  }
  .logo-txt-sub {
    font-size: 0.7rem;
    letter-spacing: 2px;
  }
  .control-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
  }
  .gauge svg {
    width: 110px;
    height: 110px;
  }
  .gauge-val {
    font-size: 1.1rem;
  }
  .digital-display {
    min-height: 120px;
  }
  .card-inner {
    padding: 15px;
  }
}
