/* ================================================
   CHARACTER EXPLORER — styles for /characters page
   ================================================ */

/* HERO */
.explorer-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 40px 90px;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--cream);
}
.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #F5C87A, transparent 70%);
  top: -150px; right: -100px;
}
.hero-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #C4713A, transparent 70%);
  bottom: -100px; left: 10%;
  opacity: 0.15;
}
.hero-blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #1A535C, transparent 70%);
  top: 20%; left: 40%;
  opacity: 0.1;
}
.explorer-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.explorer-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
}
.explorer-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--charcoal);
  margin-bottom: 28px;
}
.explorer-headline em {
  font-style: italic;
  color: var(--amber);
}
.explorer-sub {
  font-size: 19px;
  color: var(--warm-gray);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.explorer-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal);
  color: var(--cream);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 36px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: #6EE7B7;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.explorer-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: var(--amber);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(196, 113, 58, 0.3);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  background: #b5632f;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(196, 113, 58, 0.4);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  border: 2px solid rgba(196, 113, 58, 0.3);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-secondary:hover {
  background: var(--cream-dark);
  border-color: var(--amber);
}
.btn-large {
  padding: 18px 44px;
  font-size: 17px;
}

/* CHAR SELECTOR */
.char-selector-section {
  background: var(--cream-dark);
  padding: 32px 40px;
  border-bottom: 1px solid rgba(196, 113, 58, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}
.char-selector-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.char-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.char-tabs::-webkit-scrollbar { display: none; }
.char-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--cream);
  border: 2px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--warm-gray);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.char-tab:hover {
  border-color: var(--amber-light);
  color: var(--charcoal);
}
.char-tab.active {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}
.tab-orb {
  width: 20px; height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tab-name {
  white-space: nowrap;
}

/* CHARACTER DETAIL PANELS */
.char-detail-section {
  background: var(--cream);
}
.char-panel {
  display: none;
  padding: 80px 40px;
  animation: fadeIn 0.35s ease;
}
.char-panel.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.char-panel-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}

/* Portrait */
.char-portrait {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto 32px;
}
.portrait-orb {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--orb-grad);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.portrait-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: var(--orb-grad);
  opacity: 0.3;
  filter: blur(30px);
  z-index: -1;
}
.portrait-icon {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 64px; height: 64px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Quick facts */
.char-quick-facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--cream-dark);
  border-radius: 16px;
  border: 1px solid rgba(196, 113, 58, 0.1);
}
.quick-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qf-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}
.qf-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
}

/* Panel content */
.char-panel-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.char-panel-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  color: var(--charcoal);
  line-height: 1.05;
  margin-bottom: 16px;
}
.char-panel-tagline {
  font-size: 18px;
  color: var(--warm-gray);
  line-height: 1.7;
  margin-bottom: 40px;
  font-style: italic;
}
.char-panel-blocks {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.char-block {
  padding: 24px;
  background: var(--cream-dark);
  border-radius: 16px;
  border: 1px solid rgba(196, 113, 58, 0.1);
}
.char-block-science {
  background: var(--teal);
  border-color: transparent;
}
.char-block-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.char-block-science .char-block-label {
  color: var(--amber-light);
}
.char-block-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--charcoal);
}
.char-block-science .char-block-body {
  color: var(--cream);
}
.science-body::before {
  content: '🔬 ';
}

/* ALL CHARACTERS GRID */
.char-grid-section {
  padding: 80px 40px;
  background: var(--cream-dark);
}
.char-grid-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 32px;
}
.char-all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.char-all-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--cream);
  border-radius: 16px;
  border: 1px solid rgba(196, 113, 58, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.char-all-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(196, 113, 58, 0.12);
  border-color: var(--amber-light);
}
.char-all-orb {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}
.char-all-info {
  flex: 1;
  min-width: 0;
}
.char-all-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 2px;
}
.char-all-role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 4px;
}
.char-all-desc {
  font-size: 13px;
  color: var(--warm-gray);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.char-all-arrow {
  color: var(--amber);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.char-all-card:hover .char-all-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* CLOSING CTA */
.explorer-closing {
  padding: 100px 40px;
  background: var(--cream);
  text-align: center;
}
.explorer-closing-inner {
  max-width: 640px;
  margin: 0 auto;
}
.explorer-closing-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--charcoal);
  margin: 24px 0 20px;
}
.explorer-closing-sub {
  font-size: 17px;
  color: var(--warm-gray);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 900px) {
  .char-panel-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .char-portrait {
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
  }
  .portrait-icon {
    width: 52px; height: 52px;
    font-size: 26px;
    bottom: -6px;
    right: -6px;
  }
}
@media (max-width: 768px) {
  .explorer-hero { padding: 60px 20px 60px; min-height: auto; }
  .explorer-headline { font-size: 40px; }
  .explorer-sub { font-size: 16px; }
  .char-selector-section { padding: 20px; }
  .char-tab { padding: 10px 16px; font-size: 13px; }
  .char-panel { padding: 60px 20px; }
  .char-panel-name { font-size: 36px; }
  .char-panel-tagline { font-size: 16px; }
  .char-grid-section { padding: 60px 20px; }
  .explorer-closing { padding: 60px 20px; }
  .explorer-cta-row { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; justify-content: center; }
}
@media (max-width: 480px) {
  .char-all-desc { white-space: normal; }
  .char-all-grid { grid-template-columns: 1fr; }
}