/* Components Styling for TouchQuest */

/* HERO SECTION */
.hero-section {
  padding: 4.5rem 0 5.5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border: 1px solid rgba(45, 106, 79, 0.2);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  color: var(--color-forest);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  color: var(--color-primary);
  display: inline-block;
  position: relative;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 2.25rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

/* Concept Flow Diagram (Requirement #4) */
.concept-flow-card {
  background: var(--color-bg-alt);
  border: var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  width: 100%;
  max-width: 580px;
}

.concept-flow-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.concept-flow-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.flow-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.flow-step-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FFFFFF;
  border: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.flow-step-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-forest);
  white-space: nowrap;
}

.flow-arrow {
  color: var(--color-text-faint);
  font-size: 1rem;
  font-weight: 800;
}

.hero-tagline {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-primary);
}

/* Hero Media Viewfinder Card */
.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(45, 106, 79, 0.15);
  background: #FFFFFF;
}

.hero-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-visual-card:hover .hero-image-wrap img {
  transform: scale(1.03);
}

/* Camera Viewfinder Corners Overlay */
.viewfinder-reticle {
  position: absolute;
  inset: 16px;
  pointer-events: none;
  z-index: 2;
}

.reticle-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.reticle-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.reticle-tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.reticle-bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.reticle-br { bottom: 0; right: 0; border-left: none; border-top: none; }

.reticle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
}
.reticle-center::before, .reticle-center::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
}
.reticle-center::before { top: 7px; left: 0; right: 0; height: 2px; }
.reticle-center::after { left: 7px; top: 0; bottom: 0; width: 2px; }

.hero-badge-overlay {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(23, 43, 33, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.hero-badge-overlay h4 {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-badge-overlay p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

/* HOW IT WORKS SECTION (Requirement #5) */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: #FFFFFF;
  border: var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(45, 106, 79, 0.3);
}

.step-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-forest);
  margin-bottom: 0.6rem;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* THREE LEVELS SECTION (Requirement #6) */
.level-progression-bar {
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-forest);
  border: var(--border-light);
}

.progression-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.three-levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.level-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 2.25rem 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.level-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
}

.level-card.level-1::before { background: var(--level-1-accent); }
.level-card.level-2::before { background: var(--level-2-accent); }
.level-card.level-3::before { background: var(--level-3-accent); }

.level-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.level-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.level-1 .level-badge {
  background: var(--level-1-badge);
  color: var(--level-1-accent);
}
.level-2 .level-badge {
  background: var(--level-2-badge);
  color: var(--level-2-accent);
}
.level-3 .level-badge {
  background: var(--level-3-badge);
  color: var(--level-3-accent);
}

.level-name {
  font-size: 1.85rem;
  font-weight: 850;
  color: var(--color-forest);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.level-quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  min-height: 48px;
}

.level-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: var(--color-bg-alt);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-forest);
}

.spec-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.level-extension-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--level-3-accent);
  background: #FDEDEB;
  border: 1px dashed rgba(217, 72, 56, 0.4);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.level-card-footer {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: var(--border-light);
}

/* ANTI-SCREEN PHILOSOPHY (Requirement #35) */
.anti-screen-section {
  background: var(--color-forest);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 4.5rem 3.5rem;
  margin: 2rem auto;
  position: relative;
  overflow: hidden;
}

.anti-screen-section::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 145, 108, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.anti-screen-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.anti-screen-content h2 {
  font-size: 2.6rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.anti-screen-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.anti-screen-loop-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.anti-screen-loop-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-sage-light);
}

.loop-steps-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.loop-step-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.loop-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* OPEN AI SECTION (Requirement #30) */
.open-ai-section {
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  border: var(--border-light);
}

.open-ai-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.open-ai-feat-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: var(--border-light);
}

.open-ai-feat-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-forest);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.open-ai-feat-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* SMART VARIATION SHOWCASE (Requirement #37) */
.quest-variation-comparison {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: var(--border-light);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.comparison-col {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
}

.comparison-col.second-quest {
  background: var(--color-primary-soft);
  border: 1px solid rgba(45, 106, 79, 0.25);
}

.comparison-col h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comparison-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comparison-col li {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* BADGES GALLERY SECTION (Requirement #22) */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.badge-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: var(--border-light);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.badge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.badge-art-frame {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(23, 43, 33, 0.15);
  position: relative;
  border: 3px solid #E5A93C;
}

.badge-art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-card.locked .badge-art-frame {
  filter: grayscale(100%) opacity(0.45);
  border-color: #A0ABA5;
}

.badge-card.locked .lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  font-size: 2rem;
}

.badge-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-forest);
  margin-bottom: 0.4rem;
}

.badge-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.badge-status-pill {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.badge-card.unlocked .badge-status-pill {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.badge-card.locked .badge-status-pill {
  background: var(--color-bg-subtle);
  color: var(--color-text-faint);
}

/* PLAYER PROFILE SECTION (Requirement #31) */
.profile-overview-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: var(--border-light);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.profile-top-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  border: 3px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  box-shadow: 0 6px 18px rgba(45, 106, 79, 0.2);
}

.profile-title-col h2 {
  font-size: 2rem;
  font-weight: 850;
  color: var(--color-forest);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.profile-title-col .explorer-rank-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.xp-bar-container {
  margin-bottom: 2rem;
}

.xp-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.xp-progress-track {
  height: 12px;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.xp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-sage));
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.stat-box {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  border: var(--border-light);
}

.stat-box-value {
  font-size: 1.7rem;
  font-weight: 850;
  color: var(--color-forest);
}

.stat-box-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* Past Discoveries Gallery */
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.gallery-photo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FFFFFF;
  border: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.gallery-photo-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.gallery-photo-info {
  padding: 0.75rem;
}

.gallery-photo-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-forest);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-photo-level {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .three-levels-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .how-it-works-grid {
    grid-template-columns: 1fr 1fr;
  }
  .open-ai-features-grid {
    grid-template-columns: 1fr;
  }
  .badges-grid {
    grid-template-columns: 1fr 1fr;
  }
  .profile-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .how-it-works-grid {
    grid-template-columns: 1fr;
  }
  .anti-screen-grid {
    grid-template-columns: 1fr;
  }
  .anti-screen-section {
    padding: 3rem 1.75rem;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .badges-grid {
    grid-template-columns: 1fr;
  }
  .profile-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .profile-top-row {
    flex-direction: column;
    text-align: center;
  }
}
