/* roadmap.css
   Goon Lab Roadmap - Premium Design Studio Experience
   GTA V Online hacking mini-game inspired
   Fully isolated from main site - no conflicts
*/

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body.roadmap-page {
  background: #0a0a0a;
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   LOADING SCREEN
   ============================================================================ */

.loading-screen {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: loading-fade-out 500ms ease-out 2.5s forwards;
}

@keyframes loading-fade-out {
  from {
    opacity: 1;
    pointer-events: auto;
  }
  to {
    opacity: 0;
    pointer-events: none;
  }
}

.loading-container {
  width: 100%;
  max-width: 500px;
  padding: 40px;
  text-align: center;
}

.loading-header {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 32px;
  animation: loading-header-glow 1.5s ease-in-out infinite;
}

@keyframes loading-header-glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.2);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
  }
}

.loading-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.loading-status {
  font-size: 12px;
  letter-spacing: 1px;
  color: #e0e0e0;
  text-transform: uppercase;
  font-weight: 600;
  min-height: 20px;
}

.loading-progress {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 0, 110, 0.2);
  overflow: hidden;
  position: relative;
}

.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff006e, #ff1493);
  width: 0%;
  animation: loading-progress 2.3s ease-in-out forwards;
  box-shadow: 0 0 8px rgba(255, 0, 110, 0.6);
}

@keyframes loading-progress {
  0% { width: 0%; }
  50% { width: 60%; }
  100% { width: 100%; }
}

.loading-scanlines {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.1) 2px,
      rgba(0, 0, 0, 0.1) 4px
    );
  pointer-events: none;
}

.loading-text {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #ff006e;
  text-transform: uppercase;
  font-weight: 700;
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
  min-height: 20px;
  animation: loading-glitch 400ms steps(4, end) infinite;
}

@keyframes loading-glitch {
  0%, 100% {
    text-shadow:
      2px 0 #ff006e,
      -2px 0 #00ffff,
      0 0 8px rgba(255, 0, 110, 0.4);
  }
  20% {
    text-shadow:
      -2px 0 #ff006e,
      2px 0 #00ffff,
      0 0 8px rgba(255, 0, 110, 0.4);
  }
  40% {
    text-shadow:
      0 0 #ff006e,
      0 0 #00ffff,
      0 0 8px rgba(255, 0, 110, 0.4);
  }
}

/* ============================================================================
   BACKGROUND ANIMATION
   ============================================================================ */

.roadmap-bg {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 1;
  overflow: hidden;
}

#bgCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ============================================================================
   WINDOW PANEL
   ============================================================================ */

.roadmap-window {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  animation: window-appear 400ms ease-out 2.5s both;
}

@keyframes window-appear {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.roadmap-window {
  left: 5%;
  right: 5%;
  top: 5%;
  bottom: 5%;
  max-width: 900px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  margin: auto;
  background: #0f0f0f;
  border: 1px solid rgba(255, 0, 110, 0.15);
  border-radius: 8px;
  box-shadow:
    0 0 40px rgba(255, 0, 110, 0.1),
    0 0 80px rgba(255, 0, 110, 0.05),
    inset 0 0 20px rgba(255, 0, 110, 0.05);
  display: flex;
  flex-direction: column;
}

/* ============================================================================
   WINDOW HEADER (MAC STYLE)
   ============================================================================ */

.window-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 0, 110, 0.1);
  background: rgba(255, 0, 110, 0.02);
  border-radius: 8px 8px 0 0;
  min-height: 52px;
}

.window-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 200ms ease;
}

.dot-red {
  background: #ff5f57;
}

.dot-yellow {
  background: #febc2e;
}

.dot-green {
  background: #28c940;
}

.window-dot:hover {
  transform: scale(1.15);
  box-shadow: 0 0 8px currentColor;
}

.window-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #e0e0e0;
  text-transform: uppercase;
}

.window-back {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 150ms ease;
  border: 1px solid transparent;
}

.window-back:hover {
  color: #ff006e;
  border: 1px solid rgba(255, 0, 110, 0.3);
  border-radius: 3px;
}

/* ============================================================================
   WINDOW CONTENT
   ============================================================================ */

.window-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Subtle scanlines inside window only */
.window-content::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 0, 110, 0.02) 2px,
      rgba(255, 0, 110, 0.02) 4px
    );
  z-index: 10;
}

/* ============================================================================
   SECTION STYLING
   ============================================================================ */

.roadmap-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: section-appear 400ms ease-out forwards;
}

.roadmap-section:nth-of-type(1) { animation-delay: 2.7s; }
.roadmap-section:nth-of-type(2) { animation-delay: 2.85s; }
.roadmap-section:nth-of-type(3) { animation-delay: 3s; }
.roadmap-section:nth-of-type(4) { animation-delay: 3.15s; }

@keyframes section-appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #b0b0b0;
  margin: 0 0 8px 0;
}

.section-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============================================================================
   ROADMAP ITEMS
   ============================================================================ */

.roadmap-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 0, 110, 0.08);
  border-radius: 4px;
  cursor: pointer;
  transition: all 200ms ease;
}

.roadmap-item:hover {
  background: rgba(255, 0, 110, 0.08);
  border-color: rgba(255, 0, 110, 0.2);
  transform: translateX(4px);
}

.item-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 200ms ease;
}

.item-pill.shipped {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.item-pill.progress {
  background: rgba(255, 0, 110, 0.2);
  color: #ff006e;
  border: 1px solid rgba(255, 0, 110, 0.4);
  animation: pill-pulse 1.5s ease-in-out infinite;
}

.item-pill.queued {
  background: rgba(139, 92, 246, 0.2);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.item-pill.locked {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.25);
}

@keyframes pill-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 110, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 0, 110, 0.1);
  }
}

.item-name {
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e0;
  text-transform: capitalize;
  flex: 1;
}

.item-subtext {
  font-size: 11px;
  color: #9ca3af;
  font-style: italic;
  padding-left: 34px;
}

.item-details {
  font-size: 12px;
  color: #7080a0;
  padding-left: 34px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 200ms ease;
}

.roadmap-item.expanded .item-details {
  max-height: 150px;
  margin-top: 4px;
}

/* ============================================================================
   WINDOW FOOTER
   ============================================================================ */

.window-footer {
  border-top: 1px solid rgba(255, 0, 110, 0.1);
  padding: 16px 0 0 0;
  text-align: center;
}

.window-footer p {
  font-size: 11px;
  color: #7080a0;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  margin: 0;
}

/* ============================================================================
   SCROLLBAR STYLING
   ============================================================================ */

.window-content::-webkit-scrollbar {
  width: 8px;
}

.window-content::-webkit-scrollbar-track {
  background: transparent;
}

.window-content::-webkit-scrollbar-thumb {
  background: rgba(255, 0, 110, 0.3);
  border-radius: 4px;
}

.window-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 0, 110, 0.5);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
  .roadmap-window {
    left: 16px;
    right: 16px;
    top: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
    height: calc(100% - 32px);
  }

  .window-content {
    padding: 20px;
    gap: 24px;
  }

  .window-title {
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .section-title {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .item-name {
    font-size: 12px;
  }

  .item-subtext {
    font-size: 10px;
  }

  .item-details {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .loading-container {
    padding: 20px;
  }

  .loading-header {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .roadmap-window {
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border-radius: 6px;
  }

  .window-header {
    gap: 8px;
    padding: 10px 12px;
    min-height: 44px;
  }

  .window-controls {
    gap: 6px;
  }

  .window-dot {
    width: 10px;
    height: 10px;
  }

  .window-title {
    font-size: 11px;
  }

  .window-back {
    font-size: 11px;
  }

  .window-content {
    padding: 16px;
    gap: 20px;
  }

  .roadmap-section {
    gap: 8px;
  }

  .section-title {
    font-size: 9px;
    letter-spacing: 0.5px;
  }

  .section-items {
    gap: 6px;
  }

  .roadmap-item {
    padding: 10px;
    gap: 3px;
  }

  .roadmap-item:hover {
    transform: translateX(2px);
  }

  .item-pill {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .item-name {
    font-size: 11px;
  }

  .item-subtext,
  .item-details {
    font-size: 10px;
    padding-left: 28px;
  }

  .window-footer p {
    font-size: 9px;
  }
}
