@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=VT323&display=swap');

:root {
  --primary: #00FF00;
  --primary-glow: rgba(0, 255, 0, 0.4);
  --primary-dark: #00CC00;
  --surface: #F0F0F0;
  --surface-card: #FFFFFF;
  --border: #CCCCCC;
  --border-dark: #333333;
  --focus-ring: #00FF00;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #888888;
  --alert-bg: #FFF8E7;
  --alert-border: #E6A23C;

  --font-pixel: 'Press Start 2P', monospace;
  --font-mono: 'Space Mono', monospace;
  --font-display: 'VT323', monospace;

  /* Spacing Scale */
  --space-4: 4px;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;

  /* Pixel Shadows / Elevation */
  --elevation-1: 3px 3px 0px #CCCCCC;
  --elevation-2: 5px 5px 0px #333333;
  --elevation-3: 8px 8px 0px #000000;
  --elevation-primary: 5px 5px 0px #00FF00;
}

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

body {
  background-color: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    linear-gradient(rgba(204, 204, 204, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 204, 204, 0.3) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Scanline Effect */
body::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.03) 50%);
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.7;
}

/* 8-Bit Boot Splash Screen Overlay */
#splash-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #0A0A0A;
  color: var(--primary);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  padding: 20px;
  text-align: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  background-image: linear-gradient(rgba(0, 255, 0, 0.05) 1px, transparent 1px);
  background-size: 100% 3px;
}

#splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-host {
  font-size: 11px;
  color: #888888;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.splash-title {
  font-size: 22px;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
  margin-bottom: 12px;
  line-height: 1.4;
}

.splash-brand {
  font-size: 14px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.splash-wordmark-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  image-rendering: pixelated;
  vertical-align: middle;
}

.splash-bar-outer {
  width: 280px;
  max-width: 90%;
  height: 16px;
  border: 2px solid var(--primary);
  padding: 2px;
  background: #000;
  box-shadow: 0 0 10px var(--primary-glow);
}

.splash-bar-inner {
  height: 100%;
  background: var(--primary);
  width: 0%;
}

.splash-status {
  font-size: 9px;
  color: #888;
  margin-top: 10px;
}

/* Container */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: var(--space-24);
}

/* Header & Top Bar */
.top-bar {
  background: linear-gradient(90deg, #111413 0%, #151817 60%, #0A1E12 100%);
  color: #F0F0F0;
  padding: var(--space-8) var(--space-16);
  font-family: var(--font-pixel);
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #222524;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar .brand-badge {
  color: var(--primary);
  text-transform: uppercase;
}

.top-bar .status-tag {
  background-color: var(--primary);
  color: #000000;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: bold;
}

/* Nav Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-16) 0;
  border-bottom: 2px dashed var(--border);
  margin-bottom: var(--space-32);
  flex-wrap: wrap;
  gap: 16px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.logo-title {
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface-card);
  border: 1px solid var(--border-dark);
  padding: 2px 6px;
  color: var(--text-secondary);
}

/* Typography Hierarchy */
h1.styleguide-h1 {
  font-family: var(--font-pixel);
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: var(--space-16);
  text-transform: uppercase;
}

.title-main {
  font-size: 32px;
  display: block;
  letter-spacing: -1px;
}

.title-sub {
  font-size: 18px;
  color: var(--primary-dark);
  display: block;
  margin-top: 4px;
}

/* Bracketed Buttons [ BUTTON ] */
.pixel-btn {
  font-family: var(--font-pixel);
  font-size: 11px;
  padding: 12px 20px;
  background-color: var(--surface-card);
  color: var(--text-primary);
  border: 2px solid var(--border-dark);
  box-shadow: var(--elevation-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.1s ease;
  user-select: none;
  position: relative;
  text-align: center;
}

.pixel-btn:hover {
  background-color: var(--primary);
  color: #000000;
  box-shadow: var(--elevation-primary);
  transform: translate(-2px, -2px);
}

.pixel-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000000;
}

.pixel-btn.btn-primary {
  background-color: var(--primary);
  color: #000000;
  font-weight: bold;
}

.pixel-btn.btn-primary:hover {
  background-color: #00EE00;
  box-shadow: 0 0 15px var(--primary-glow), var(--elevation-2);
}

/* Retro Accordion FAQ */
.faq-accordion {
  border: 2px solid var(--border-dark);
  background: var(--surface-card);
  margin-bottom: 12px;
}

.faq-header {
  font-family: var(--font-pixel);
  font-size: 11px;
  padding: 14px 16px;
  background: #F8F8F8;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.15s ease;
}

.faq-header:hover {
  background: #F0FFF0;
}

.faq-body {
  padding: 16px;
  border-top: 1.5px dashed var(--border-dark);
  font-size: 14px;
  color: var(--text-secondary);
  display: none;
  line-height: 1.6;
}

.faq-accordion.open .faq-body {
  display: block;
}

/* Retro Tabs */
.tab-group {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-24);
  border-bottom: 2px solid var(--border-dark);
  padding-bottom: 4px;
  flex-wrap: wrap;
}

.tab-btn {
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 8px 16px;
  background-color: var(--surface-card);
  border: 2px solid var(--border-dark);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  background-color: #E8E8E8;
}

.tab-btn.active {
  background-color: var(--primary);
  color: #000000;
  font-weight: bold;
  box-shadow: 2px 2px 0px #000000;
}

/* Boxed Elevation Cards */
.pixel-card {
  background-color: var(--surface-card);
  border: 2px solid var(--border-dark);
  box-shadow: var(--elevation-2);
  margin-bottom: var(--space-24);
  position: relative;
}

.pixel-card-header {
  background-color: #E6E6E6;
  border-bottom: 2px solid var(--border-dark);
  padding: 8px 16px;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
}

.pixel-card-body {
  padding: var(--space-24);
}

/* Retro Inputs */
.pixel-input, .pixel-textarea {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 12px 14px;
  background-color: #FFFFFF;
  border: 2px solid var(--border-dark);
  color: var(--text-primary);
  outline: none;
  box-shadow: inset 2px 2px 0px rgba(0,0,0,0.1);
  transition: border-color 0.15s ease;
}

.pixel-input:focus, .pixel-textarea:focus {
  border-color: var(--border-dark);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.pixel-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Chips / Badges */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.pixel-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
  background-color: var(--surface-card);
  border: 2px solid var(--border-dark);
  border-radius: 20px;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  transition: all 0.10s ease;
}

.pixel-chip:hover {
  background-color: #E8E8E8;
  transform: translateY(-1px);
}

.pixel-chip.selected {
  background-color: var(--primary);
  color: #000000;
  font-weight: bold;
  border-color: #000000;
  box-shadow: 2px 2px 0px #000000;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-32);
  align-items: center;
  padding: var(--space-32) 0;
  border-bottom: 2px dashed var(--border);
  margin-bottom: var(--space-48);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: var(--space-24);
  line-height: 1.5;
}

.hero-meta {
  display: flex;
  gap: var(--space-16);
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--text-primary);
  margin-bottom: var(--space-32);
  flex-wrap: wrap;
}

.hero-meta-item {
  background-color: var(--surface-card);
  border: 2px solid var(--border-dark);
  padding: 6px 12px;
  box-shadow: 2px 2px 0px var(--border-dark);
}

.hero-banner-img {
  width: 100%;
  border: 3px solid var(--border-dark);
  box-shadow: var(--elevation-2);
  background: #E0E0E0;
  image-rendering: pixelated;
}

/* Builder Cards Grid */
.builder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-16);
}

.builder-card {
  background: #FFFFFF;
  border: 2px solid var(--border-dark);
  box-shadow: var(--elevation-1);
  padding: var(--space-16);
  transition: transform 0.15s ease;
}

.builder-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--elevation-2);
}

/* Expectations Grid Layout */
.expectations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
}

/* ---------------------------------------------------- */
/* RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)           */
/* ---------------------------------------------------- */

@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: var(--space-12, 12px);
  }

  .top-bar {
    font-size: 8px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
  }

  .top-bar .brand-badge {
    font-size: 8px;
  }

  .top-bar .status-tag {
    font-size: 8px;
    padding: 3px 8px;
    background-color: #00FF55;
    color: #000000;
    border-radius: 6px;
    box-shadow: 2px 2px 0px #000000;
  }

  .navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .logo-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .logo-tag {
    font-family: var(--font-pixel);
    font-size: 9px;
    border: 1.5px solid #000000;
    border-radius: 8px;
    padding: 4px 10px;
    background: #FFFFFF;
    color: #333333;
    font-weight: bold;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .nav-actions .pixel-btn {
    width: 100%;
    text-align: center;
    font-size: 10px;
    padding: 12px 10px;
    box-shadow: 3px 3px 0px #000000;
  }

  .nav-actions .pixel-btn.btn-primary {
    background-color: #00FF55;
    color: #000000;
    box-shadow: 3px 3px 0px #000000;
  }

  .splash-title {
    font-size: 16px;
  }

  .splash-wordmark-img {
    height: 22px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-section .styleguide-h1 img {
    margin: 0 auto 8px auto !important;
  }

  .hero-section .title-sub {
    text-align: center;
  }

  .hero-subtitle {
    text-align: center;
    font-size: 15px;
  }

  .hero-meta {
    gap: 8px;
    justify-content: center;
  }

  .hero-cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta-buttons .pixel-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .hero-meta-item {
    font-size: 10px;
    width: 100%;
  }

  .pixel-card-body {
    padding: var(--space-16);
  }

  /* Expectations formatting for mobile/tablet */
  .expectations-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  /* Mobile Bulletin Board Header Layout */
  .notice-board-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .notice-board-header .view-all-link {
    width: 100%;
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  .top-bar {
    font-size: 7.5px;
    padding: 6px 8px;
  }

  .top-bar-left-text {
    font-size: 7.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .title-main {
    font-size: 20px;
  }

  .builder-grid {
    grid-template-columns: 1fr;
  }

  /* Hide +- icons on mobile for cleaner FAQ readability */
  .faq-toggle-icon {
    display: none !important;
  }

  .faq-header {
    padding: 12px;
    font-size: 10px;
    line-height: 1.4;
  }

  .faq-body {
    padding: 12px;
    font-size: 13px;
  }
}

/* Retro Footer Banner Matching Reference Design */
footer.retro-footer-banner {
  background: linear-gradient(90deg, #111413 0%, #151817 60%, #0A1E12 100%);
  border: 1.5px solid #222524;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: var(--space-48);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

footer.retro-footer-banner::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 140px;
  background-image: radial-gradient(#00FF55 0.75px, transparent 0.75px);
  background-size: 8px 8px;
  opacity: 0.15;
  pointer-events: none;
}

.retro-footer-heart {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.retro-footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-family: var(--font-pixel);
}

.retro-footer-line1 {
  font-size: 11px;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.retro-footer-line1 .highlight-arc {
  color: #00FF55;
  font-weight: bold;
}

.retro-footer-line2 {
  font-size: 9.5px;
  color: #777777;
  letter-spacing: 0.5px;
}

@media (max-width: 480px) {
  footer.retro-footer-banner {
    padding: 16px;
    gap: 12px;
    flex-direction: column;
    justify-content: center;
  }
  .retro-footer-line1 {
    font-size: 9px;
  }
  .retro-footer-line2 {
    font-size: 8px;
  }
}

/* Windows 95 Text Editor Window Component */
.win95-window {
  background: #C0C0C0;
  border: 3px solid #000000;
  box-shadow: var(--elevation-3);
  margin-top: var(--space-48);
  font-family: var(--font-mono);
}

.win95-title-bar {
  background: linear-gradient(90deg, #000080 0%, #1084D0 100%);
  color: #FFFFFF;
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.win95-title-controls {
  display: flex;
  gap: 4px;
}

.win95-btn {
  background: #C0C0C0;
  border: 1px solid #FFFFFF;
  border-right-color: #000000;
  border-bottom-color: #000000;
  width: 16px;
  height: 16px;
  font-size: 9px;
  line-height: 14px;
  text-align: center;
  color: #000000;
  font-weight: bold;
  user-select: none;
}

.win95-menu-bar {
  background: #C0C0C0;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #000000;
  border-bottom: 1px solid #808080;
  display: flex;
  gap: 16px;
}

.win95-menu-item u {
  text-decoration: underline;
}

.win95-editor-body {
  background: #FFFFFF;
  border: 2px inset #808080;
  margin: 6px;
  padding: 20px;
  color: #000000;
  font-size: 13px;
  line-height: 1.6;
}

.win95-email-link {
  color: #0000FF;
  font-weight: bold;
  text-decoration: underline;
  background: #E8F0FE;
  padding: 2px 6px;
  border: 1px solid #0000FF;
}

.win95-email-link:hover {
  background: #0000FF;
  color: #FFFFFF;
}

.win95-status-bar {
  background: #C0C0C0;
  padding: 4px 10px;
  font-size: 11px;
  color: #444444;
  border-top: 1px solid #808080;
  display: flex;
  justify-content: space-between;
}
