/* -------------------------------------------------------------
 * HEAVEN CRAWLER - Presskit Premium Stylesheet
 * ------------------------------------------------------------- */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Reset & Base Settings --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Color Systems & Themes --- */
:root {
  /* Default: Dark Theme */
  --bg-color: #0c0e12;
  --bg-gradient: radial-gradient(circle at top right, #1a162b, #0c0e12 60%);
  --surface-color: rgba(20, 24, 33, 0.7);
  --surface-hover: rgba(30, 36, 48, 0.9);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  --text-color: #f1f5f9;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  
  --primary-accent: #a855f7; /* Purple */
  --primary-gradient: linear-gradient(135deg, #a855f7, #6366f1);
  --primary-accent-rgb: 168, 85, 247;
  
  --accent-cyan: #06b6d4;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(12, 14, 18, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
  --bg-color: #f8fafc;
  --bg-gradient: radial-gradient(circle at top right, #f3e8ff, #f8fafc 60%);
  --surface-color: rgba(255, 255, 255, 0.7);
  --surface-hover: rgba(255, 255, 255, 0.95);
  --border-color: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.15);
  
  --text-color: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --primary-accent: #7c3aed;
  --primary-gradient: linear-gradient(135deg, #7c3aed, #4f46e5);
  --primary-accent-rgb: 124, 58, 237;
  
  --accent-cyan: #0891b2;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --glass-bg: rgba(248, 250, 252, 0.8);
  --glass-border: rgba(15, 23, 42, 0.05);
}

/* --- Base Layout --- */
.app-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  background: var(--bg-gradient);
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  text-shadow: 0 0 8px rgba(var(--primary-accent-rgb), 0.2);
}

/* --- Left Sidebar (Navigation) --- */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--glass-border);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 100;
}

.sidebar-header {
  margin-bottom: 2.5rem;
}

.studio-logo {
  max-width: 120px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.sidebar-title {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.sidebar-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link i {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: var(--text-color);
  background: rgba(var(--primary-accent-rgb), 0.05);
  transform: translateX(4px);
}

.nav-link.active {
  color: var(--text-inverse);
  background: var(--primary-gradient);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.nav-link.active i {
  transform: scale(1.1);
}

/* Sidebar Footer & Theme Toggle */
.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border-color);
  color: var(--text-muted);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.social-links a:hover {
  color: var(--text-inverse);
  background: var(--primary-gradient);
  transform: translateY(-2px);
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: var(--border-color);
  border-color: var(--border-hover);
}

/* --- Main Content Grid Layout --- */
.main-content {
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.sections-container {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

/* Header styling */
.presskit-header {
  margin-bottom: 2rem;
}

.game-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-color) 40%, rgba(var(--primary-accent-rgb), 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.game-tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Section Common Styling */
section {
  scroll-margin-top: 100px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary-gradient);
}

.section-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.section-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.desc-text {
  font-size: 1.05rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.desc-text:last-child {
  margin-bottom: 0;
}

/* --- Features List --- */
.features-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.features-ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
}

.feature-icon {
  color: var(--primary-accent);
  font-weight: bold;
  margin-top: 0.3rem;
}

/* --- History Timeline --- */
.history-timeline {
  position: relative;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-color);
}

.history-item {
  position: relative;
}

.history-marker {
  position: absolute;
  left: -2rem;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-accent);
  border: 3px solid var(--bg-color);
  box-shadow: 0 0 8px rgba(var(--primary-accent-rgb), 0.5);
  transition: transform 0.2s ease;
}

.history-item:hover .history-marker {
  transform: scale(1.3);
}

.history-date {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary-accent);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.history-desc {
  font-size: 0.95rem;
  color: var(--text-color);
}

/* --- Video Section --- */
.videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.video-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  padding: 1rem;
}

.video-title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: 8px;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Screenshot Gallery --- */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.screenshot-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-accent);
}

.screenshot-img-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.2);
}

.screenshot-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.screenshot-card:hover img {
  transform: scale(1.05);
}

.screenshot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.screenshot-card:hover .screenshot-overlay {
  opacity: 1;
}

.view-btn {
  color: #fff;
  background: rgba(var(--primary-accent-rgb), 0.9);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.screenshot-card:hover .view-btn {
  transform: translateY(0);
}

.screenshot-caption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Logo & Icon section --- */
.logo-assets-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.asset-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  min-height: 180px;
}

.asset-box img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.asset-box.icon-box img {
  width: 90px;
  height: 90px;
  border-radius: 16px;
}

.asset-download-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  background: rgba(var(--primary-accent-rgb), 0.05);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.asset-box:hover .asset-download-overlay {
  opacity: 1;
}

.dl-icon-btn {
  background: var(--primary-gradient);
  color: var(--text-inverse);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- Quotes & Articles --- */
.quotes-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quote-card {
  background: var(--surface-color);
  border-left: 4px solid var(--primary-accent);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
}

.quote-text {
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.quote-author {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quote-link {
  font-weight: 600;
}

/* --- Awards & Recognition --- */
.awards-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.award-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: 12px;
}

.award-icon {
  font-size: 1.5rem;
  color: #fbbf24; /* Amber trophy */
  background: rgba(251, 191, 36, 0.1);
  padding: 0.75rem;
  border-radius: 50%;
}

.award-title {
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
}

.award-event {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Right Factsheet Sidebar --- */
.factsheet-sidebar {
  position: sticky;
  top: 3.5rem;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.factsheet-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.factsheet-title {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.factsheet-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.factsheet-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.factsheet-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
}

.factsheet-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
}

/* ZIP Download Button */
.zip-download-card {
  text-align: center;
}

.btn-zip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--primary-gradient);
  color: var(--text-inverse);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(var(--primary-accent-rgb), 0.3);
  transition: all 0.2s ease;
}

.btn-zip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-accent-rgb), 0.5);
  color: var(--text-inverse);
}

/* Developer / Contact List */
.contact-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.contact-ul li {
  overflow-wrap: break-word;
}

/* --- Lightbox Modal --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 15, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem;
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: #fff;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  max-width: 600px;
}

.lightbox-toolbar {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.lightbox-btn {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.lightbox-btn:hover {
  background: var(--primary-gradient);
  transform: scale(1.1);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: #ef4444;
  transform: rotate(90deg);
}

/* Nav arrows on sides */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.2s ease;
  z-index: 1100;
}

.lightbox-nav:hover {
  background: var(--primary-gradient);
  border-color: transparent;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

/* --- Mobile Headers / Collapsed Nav --- */
.mobile-header {
  display: none;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 99;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.mobile-title {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mobile-menu-btn {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Responsive Breakpoints --- */

@media (max-width: 1024px) {
  .app-container {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    display: none; /* Hide sidebar in favor of mobile scrolling layout or hamburger menu */
  }
  
  .mobile-header {
    display: flex;
  }

  .main-content {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 2.5rem;
  }
  
  .factsheet-sidebar {
    position: static;
    grid-row: 1; /* Move factsheet to the top of the main container on mobile */
  }

  .logo-assets-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .game-title {
    font-size: 2.5rem;
  }
  
  .section-card {
    padding: 1.5rem;
  }
  
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
  
  .lightbox-nav {
    display: none; /* Rely on toolbar arrows on tiny mobile screens */
  }
}
