/* ==========================================================================
   SLevelStudio Main Launcher & HUD Styles
   ========================================================================== */




.hud-container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   HUD Header & Navigation Bar
   -------------------------------------------------------------------------- */
.hud-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  margin-bottom: 2.5rem;
}

.hud-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.hud-logo {
  width: 38px;
  height: 38px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 4px;
  object-fit: contain;
}

.hud-brand-text {
  display: flex;
  flex-direction: column;
}

.hud-studio-title {
  font-family: var(--font-game);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-transform: uppercase;
}

.hud-studio-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

/* Nav Menu Tabs */
.hud-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: var(--hud-radius);
}

.hud-nav-btn {
  font-family: var(--font-game);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 3px;
  transition: all var(--transition-fast);
}

.hud-nav-btn:hover {
  color: #ffffff;
  background: var(--bg-surface-hover);
}

.hud-nav-btn.active {
  color: #ffffff;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Header Utilities (SFX, Title Jump) */
.hud-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hud-util-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--hud-radius);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.hud-util-btn:hover {
  color: #ffffff;
  border-color: var(--border-strong);
  background: var(--bg-surface-hover);
}

/* --------------------------------------------------------------------------
   Section Layouts
   -------------------------------------------------------------------------- */
.hud-section {
  margin-bottom: 4rem;
  scroll-margin-top: 6rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.section-heading {
  font-family: var(--font-game);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.section-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Game Catalog Cards
   -------------------------------------------------------------------------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.game-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--hud-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.12);
}

.game-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.game-slot-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.game-category-tag {
  color: var(--accent-gold);
  font-weight: 700;
}

.game-status-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 3px;
  display: flex;
  align-items: center;
}

.game-status-badge.released {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.game-status-badge.released .status-dot {
  background-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.game-status-badge.development {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.game-status-badge.development .status-dot {
  background-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.dev-btn {
  background: linear-gradient(180deg, #2b2518 0%, #1c1810 100%);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fef08a;
}

.dev-btn:hover {
  background: linear-gradient(180deg, #3d321d 0%, #292114 100%);
  border-color: var(--accent-gold);
  color: #ffffff;
}

/* Media / Screenshot */
.game-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

.game-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.game-card:hover .game-screenshot {
  transform: scale(1.03);
}

.game-overlay-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.game-card:hover .game-overlay-scanline {
  opacity: 0.15;
}

.game-platform-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  background: rgba(10, 12, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

/* Game Info */
.game-details {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-meta-row {
  margin-bottom: 0.5rem;
}

.game-title {
  font-family: var(--font-game);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.game-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
}

.game-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding: 2px 7px;
  border-radius: 3px;
}

.game-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.game-launch-btn {
  flex-grow: 1;
  padding: 10px 16px;
}

.launch-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-align: right;
  max-width: 110px;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   About / Developer Profile Section
   -------------------------------------------------------------------------- */
.profile-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--hud-radius);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-identity {
  margin-bottom: 0.5rem;
}

.profile-developer-name {
  font-family: var(--font-game);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.profile-role-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.profile-specs {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.spec-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  border-radius: var(--hud-radius);
}

.spec-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.profile-location-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.spec-credits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.spec-credits-list strong {
  color: #ffffff;
}

.privacy-box {
  border-left: 3px solid var(--accent-emerald);
}

.privacy-note {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.spec-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(36, 44, 61, 0.5);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--hud-radius);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
}

.contact-intro {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.contact-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--hud-radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-email-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.contact-email-text {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.copy-btn {
  font-family: var(--font-game);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--hud-radius);
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  border-color: var(--accent-gold);
  color: #ffffff;
}

.mail-btn {
  font-family: var(--font-game);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(180deg, #2b3548 0%, #171f2d 100%);
  border: 1px solid var(--accent-gold);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--hud-radius);
  transition: all var(--transition-fast);
}

.mail-btn:hover {
  box-shadow: 0 0 12px var(--accent-gold-glow);
}

.copy-feedback-msg {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.copy-feedback-msg.visible {
  opacity: 1;
}

/* Featured Game Card Emphasis */
.game-card.featured {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.game-card.featured .game-title {
  color: #ffffff;
}

.featured-btn {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  border-color: #34d399;
  color: #ffffff;
  font-weight: 700;
}

.featured-btn:hover {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* Legal Modal Overlay */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.legal-modal-overlay.hidden {
  display: none;
}

.legal-modal-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--hud-radius);
  max-width: 620px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.legal-modal-heading {
  font-family: var(--font-game);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.legal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.legal-close-btn:hover {
  color: #ffffff;
  background: var(--bg-surface-hover);
}

.legal-modal-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-main);
}

.legal-modal-body h4 {
  font-family: var(--font-game);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.legal-modal-body p {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.legal-modal-body ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.legal-modal-body code {
  font-family: var(--font-mono);
  background: var(--bg-surface);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   HUD Footer
   -------------------------------------------------------------------------- */
.hud-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-studio-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link-btn {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: color var(--transition-fast);
}

.footer-link-btn:hover {
  color: var(--accent-gold);
}

.footer-hotkeys {
  display: flex;
  align-items: center;
  gap: 12px;
}
