/* ============================================
   Sidequest Page — Shared Styles
   Used by all project sub-pages under /sidequests/
   ============================================ */

/* Back navigation */
.sq-back {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px 14px;
  border-radius: 20px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.sq-back:hover {
  color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.7);
}

.sq-back-arrow {
  font-size: 1.1rem;
  line-height: 1;
}

/* Page layout */
.sq-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 4rem;
}

.sq-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Hero section */
.sq-hero {
  padding: 6rem 0 3rem;
  text-align: center;
}

.sq-hero-logo {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.sq-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.sq-hero h1 .sq-reg {
  font-size: 0.5em;
  vertical-align: super;
  color: var(--text-secondary);
}

.sq-tagline {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 400;
}

.sq-meta {
  font-size: 0.95rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.sq-meta span {
  margin: 0 0.3rem;
}

/* Content sections */
.sq-section {
  padding: 3rem 0;
}

.sq-section + .sq-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sq-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.sq-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.sq-section p:last-child {
  margin-bottom: 0;
}

/* Story / narrative block */
.sq-story {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.sq-story p {
  margin-bottom: 1.5rem;
}

/* Closing block */
.sq-closing {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Image gallery */
.sq-gallery {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.sq-gallery--2col {
  grid-template-columns: repeat(2, 1fr);
}

.sq-gallery--3col {
  grid-template-columns: repeat(3, 1fr);
}

.sq-gallery--full {
  grid-template-columns: 1fr;
}

.sq-gallery img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

/* Screen showcase (for app mockups like Radart) */
.sq-screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.sq-screen {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.sq-screen:hover {
  transform: translateY(-4px);
}

.sq-screen img {
  width: 100%;
  display: block;
}

.sq-screen-label {
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 0.05em;
}

/* Link out */
.sq-linkout {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}

.sq-linkout:hover {
  border-color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .sq-hero {
    padding: 4rem 0 2rem;
  }

  .sq-hero h1 {
    font-size: 2.2rem;
  }

  .sq-tagline {
    font-size: 1.1rem;
  }

  .sq-section h2 {
    font-size: 1.4rem;
  }

  .sq-gallery--2col,
  .sq-gallery--3col {
    grid-template-columns: 1fr;
  }

  .sq-screens {
    grid-template-columns: 1fr;
  }

  .sq-container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 480px) {
  .sq-hero h1 {
    font-size: 1.8rem;
  }

  .sq-hero-logo {
    max-height: 50px;
  }
}
