/* The Great Cloud — Scrollytelling & Visual Lore Showcase Styling (Track 3) */

:root {
  --scrolly-accent: #38bdf8;
  --scrolly-accent-glow: rgba(56, 189, 248, 0.3);
  --scrolly-gold: #f59e0b;
  --scrolly-gold-glow: rgba(245, 158, 11, 0.25);
  --scrolly-bg-dark: #070a14;
  --scrolly-card-bg: rgba(15, 23, 42, 0.75);
  --scrolly-card-border: rgba(255, 255, 255, 0.12);
  --scrolly-text-bright: #f8fafc;
  --scrolly-text-muted: #94a3b8;
}

/* Scroll Progress Bar */
#scrolly-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc, #f59e0b);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Scrollytelling Section Container */
.scrollytelling-section {
  position: relative;
  padding: 5rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.scrollytelling-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.scrollytelling-subtitle {
  font-size: 1.125rem;
  color: var(--scrolly-text-muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
  line-height: 1.6;
}

/* Biome Showcase Grid */
.biome-scrolly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.biome-scrolly-card {
  background: var(--scrolly-card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--scrolly-card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.biome-scrolly-card:hover {
  transform: translateY(-8px);
  border-color: var(--scrolly-accent);
  box-shadow: 0 12px 30px var(--scrolly-accent-glow);
}

.biome-card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #0f172a;
}

.biome-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.biome-scrolly-card:hover .biome-card-img-wrapper img {
  transform: scale(1.08);
}

.biome-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--scrolly-accent);
  color: var(--scrolly-accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.biome-card-content {
  padding: 1.5rem;
}

.biome-card-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--scrolly-text-bright);
  margin-bottom: 0.5rem;
}

.biome-card-desc {
  font-size: 0.95rem;
  color: var(--scrolly-text-muted);
  line-height: 1.5;
}

/* Faction Scrollytelling Interactive Explorer */
.faction-explorer-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--scrolly-card-border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(16px);
}

.faction-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.faction-tab-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--scrolly-card-border);
  color: var(--scrolly-text-muted);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.faction-tab-btn:hover, .faction-tab-btn.active {
  background: var(--scrolly-accent);
  color: #090d16;
  border-color: var(--scrolly-accent);
  box-shadow: 0 0 15px var(--scrolly-accent-glow);
}

.faction-detail-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .faction-detail-view {
    grid-template-columns: 1fr;
  }
}

.faction-detail-info h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2rem;
  color: var(--scrolly-text-bright);
  margin-bottom: 0.75rem;
}

.faction-detail-info p {
  color: var(--scrolly-text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.faction-motto {
  font-style: italic;
  color: var(--scrolly-gold);
  border-left: 3px solid var(--scrolly-gold);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

/* Concept Art Gallery Grid */
.concept-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.concept-gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--scrolly-card-border);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.concept-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.concept-gallery-item:hover {
  transform: scale(1.05);
  border-color: var(--scrolly-gold);
}
