/* ==========================================================================
   FACILITATOR DNA - MICROSITE STYLES

   Design Direction: Warmth & Approachability
   - Self-discovery tool that should feel inviting and human
   - Cool neutral foundation with purple accent
   - Borders-only depth strategy for clean, focused feel
   - Generous spacing for a guided experience
   ========================================================================== */

:root {
  /* ===========================================
     COLOR SYSTEM
     =========================================== */

  /* Foundation: Warm paper (consistent with other Workshopr pages) */
  --bg-page: #FAF7F2;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-muted: #F0EBE3;
  --color-border-grid: rgba(44, 36, 22, 0.12);

  /* Text hierarchy (4 levels) */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  /* Borders */
  --border: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.05);
  --border-strong: rgba(0, 0, 0, 0.12);

  /* Accent: Emerald (growth, discovery) */
  --accent: #34D399;
  --accent-hover: #10B981;
  --accent-dark: #10B981;
  --accent-light: #6EE7B7;
  --accent-very-light: #D1FAE5;
  --accent-bg: #ECFDF5;
  --accent-border: rgba(52, 211, 153, 0.3);

  /* DNA Profile Colors - single emerald */
  --energizer: #10B981;
  --energizer-bg: #D1FAE5;
  --architect: #10B981;
  --architect-bg: #D1FAE5;
  --connector: #10B981;
  --connector-bg: #D1FAE5;
  --explorer: #10B981;
  --explorer-bg: #D1FAE5;
  --sage: #10B981;
  --sage-bg: #D1FAE5;

  /* ===========================================
     TYPOGRAPHY
     =========================================== */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'SF Mono', SFMono-Regular, Consolas, monospace;

  /* Scale */
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 17px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 40px;

  /* ===========================================
     SPACING (4px grid)
     =========================================== */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* ===========================================
     BORDERS & SHADOWS
     =========================================== */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Single subtle shadow - only when needed */
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);

  /* ===========================================
     ANIMATION
     =========================================== */
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 150ms;
  --duration: 200ms;
}

/* ==========================================================================
   BASE
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

/* Page-wide grid background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(var(--color-border-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}

.btn .icon {
  width: 18px; height: 18px;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--border-strong);
}

#share-btn-top .icon {
  color: var(--accent);
}

#share-btn-top:hover .icon {
  color: #059669;
}

.btn-large {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-md);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  padding: 96px var(--space-6) var(--space-16);
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Grid paper pattern - consistent with other Workshopr pages */
  background-image:
    linear-gradient(var(--color-border-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-container {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.hero-badge .icon {
  width: 16px; height: 16px;
  color: var(--accent);
}

.hero-badge img.icon {
  filter: invert(58%) sepia(59%) saturate(477%) hue-rotate(107deg) brightness(95%) contrast(92%);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.875rem; /* 46px - display size from design system */
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.hero-title-accent {
  font-style: italic;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent-very-light);
  text-decoration-thickness: 8px;
  text-underline-offset: 4px;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.hero-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.section-eyebrow .icon {
  width: 16px; height: 16px;
  color: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.section-subtitle {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ==========================================================================
   PROFILES SECTION
   ========================================================================== */

.profiles-section {
  padding: var(--space-8) 0 var(--space-10);
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}

.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}

.profile-card:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.profile-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
}

.profile-icon .icon {
  width: 20px; height: 20px;
  color: var(--profile-color);
}

.profile-badge-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.profile-badge {
  width: 100%;
  max-width: 80px;
  height: auto;
  object-fit: contain;
  margin: 0 auto var(--space-2);
  display: block;
}

.profile-badge--large {
  width: 140px;
  height: 140px;
}

.profile-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.profile-tagline {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.4;
}

/* Profile variants - single emerald */
.profile-card[data-profile="energizer"] { --profile-bg: rgba(16, 185, 129, 0.1); --profile-border: rgba(16, 185, 129, 0.2); --profile-color: #10B981; }
.profile-card[data-profile="architect"] { --profile-bg: rgba(16, 185, 129, 0.1); --profile-border: rgba(16, 185, 129, 0.2); --profile-color: #10B981; }
.profile-card[data-profile="connector"] { --profile-bg: rgba(16, 185, 129, 0.1); --profile-border: rgba(16, 185, 129, 0.2); --profile-color: #10B981; }
.profile-card[data-profile="explorer"] { --profile-bg: rgba(16, 185, 129, 0.1); --profile-border: rgba(16, 185, 129, 0.2); --profile-color: #10B981; }
.profile-card[data-profile="sage"] { --profile-bg: rgba(16, 185, 129, 0.1); --profile-border: rgba(16, 185, 129, 0.2); --profile-color: #10B981; }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

.how-section {
  padding: var(--space-10) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.how-step {
  position: relative;
  padding: var(--space-6);
  text-align: center;
}

.how-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.how-icon .icon {
  width: 22px; height: 22px;
}

.how-number {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-faint);
}

.how-step h3 {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.how-step p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
  padding: var(--space-10) 0;
  background: var(--text-primary);
}

.cta-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  text-align: center;
}

.cta-section .section-eyebrow {
  color: var(--text-faint);
}

.cta-section .section-title {
  color: white;
}

.cta-section .section-subtitle {
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

/* ==========================================================================
   QUIZ
   ========================================================================== */

.quiz-hero {
  padding: 96px var(--space-6) var(--space-10);
  text-align: center;
}

.quiz-hero-container {
  max-width: 600px;
  margin: 0 auto;
}

.quiz-hero-title {
  font-family: var(--font-display);
  font-size: 2.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.quiz-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

.quiz-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-16);
}

.quiz-progress {
  margin-bottom: var(--space-6);
}

.quiz-progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.quiz-progress-bar {
  height: 4px;
  background: var(--bg-muted);
  border-radius: 2px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--duration) var(--ease);
}

.quiz-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
}

.quiz-question {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  line-height: 1.35;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.quiz-option {
  display: block;
  width: 100%;
  padding: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
}

.quiz-option:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.quiz-option.selected {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-6);
}

.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  cursor: pointer;
  padding: var(--space-2) 0;
}

.quiz-back:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   RESULTS
   ========================================================================== */

.results-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px var(--space-6) var(--space-16);
}

.results-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.results-icon {
  width: 224px;
  height: 224px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}

.results-icon .icon {
  width: 36px; height: 36px;
}

.results-badge-img {
  width: 224px;
  height: 224px;
  object-fit: contain;
}

.results-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.results-description {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* Radar Chart */
.radar-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
}

.radar-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-5);
}

.radar-chart {
  max-width: 280px;
  margin: 0 auto;
}

.skill-scores {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.skill-score {
  text-align: center;
}

.skill-score-value {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.skill-score-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Insights Grid */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.insight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.insight-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.insight-icon {
  font-size: 20px;
}

.insight-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.insight-skill {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.insight-score {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.insight-tip {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Profile Matches */
.matches-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
}

.matches-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-5);
}

.match-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.match-row:last-child {
  margin-bottom: 0;
}

.match-name {
  width: 100px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.match-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-muted);
  border-radius: 3px;
  overflow: hidden;
}

.match-fill {
  height: 100%;
  border-radius: 3px;
}

.match-percent {
  width: 36px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Best For Tags */
.best-for-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}

.best-for-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.best-for-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.best-for-tag {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: default;
  transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), filter var(--duration-fast) var(--ease);
}

.best-for-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(0.95);
}

/* Results Actions */
.results-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

/* ==========================================================================
   SHARE MODAL
   ========================================================================== */

.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease),
              visibility var(--duration-normal) var(--ease);
  padding: var(--space-4);
}

.share-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.share-modal {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 440px;
  width: 100%;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform var(--duration-normal) var(--ease);
}

.share-modal-overlay.active .share-modal {
  transform: translateY(0) scale(1);
}

.share-modal-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: background var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease);
}

.share-modal-close:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.share-modal-header {
  padding: var(--space-6) var(--space-6) var(--space-4);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.share-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.share-modal-icon .icon {
  width: 28px; height: 28px;
}

.share-modal-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.share-modal-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.share-modal-content {
  padding: var(--space-5) var(--space-6) var(--space-6);
}

.share-modal-preview {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: 36px;
  margin-bottom: var(--space-5);
}

.share-modal-preview p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 0;
}

.share-modal-actions {
  margin-bottom: var(--space-5);
}

.share-copy-btn {
  width: 100%;
  justify-content: center;
}

.share-copy-btn.copied {
  background: #10B981;
}

.share-modal-social {
  text-align: center;
}

.share-social-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.share-social-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

.share-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--duration-fast) var(--ease),
              border-color var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease),
              transform var(--duration-fast) var(--ease);
}

.share-social-btn:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-2px);
}

.share-social-btn .icon {
  width: 20px; height: 20px;
}

/* ==========================================================================
   PROFILE PAGE
   ========================================================================== */

.profile-hero {
  padding: 96px var(--space-6) var(--space-12);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.profile-hero-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin: 0 auto var(--space-6);
  display: block;
  border-radius: var(--radius-lg);
}

.profile-hero-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  border: 1px solid var(--border);
}

.profile-hero-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.profile-hero-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-6);
}

.profile-content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-6) var(--space-16);
}

.profile-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
}

.profile-section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.profile-section-title .icon {
  width: 22px; height: 22px;
}

.profile-list {
  list-style: disc;
  padding-left: var(--space-5);
}

.profile-list li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.5;
}

.profile-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-list li:first-child {
  padding-top: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--text-primary);
  color: white;
  padding: var(--space-12) var(--space-6) var(--space-8);
}

.footer-container {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-12);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: white;
  text-decoration: none;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-4);
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.footer-social a {
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease);
}

.footer-social a:hover {
  color: white;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: white;
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  padding: var(--space-1) 0;
  transition: color var(--duration-fast) var(--ease);
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1080px;
  margin: var(--space-10) auto 0;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-faint);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  /* Keep 5 in a row but smaller */
  .profiles-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-2);
  }

  .profile-card {
    padding: var(--space-3);
  }

  .profile-badge {
    max-width: 60px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px var(--space-5) var(--space-12);
  }

  /* Still keep 5 in a row */
  .profiles-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-2);
  }

  .profile-card {
    padding: var(--space-2);
  }

  .profile-badge {
    max-width: 50px;
  }

  .profile-name {
    font-size: var(--text-xs);
  }

  .profile-tagline {
    display: none;
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
  }

  .hero-stat-divider {
    display: none;
  }

  /* On very small screens, stack to 3+2 or scroll */
  .profiles-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-1);
    overflow-x: auto;
    padding-bottom: var(--space-2);
  }

  .profile-card {
    min-width: 70px;
  }

  .quiz-card {
    padding: var(--space-6);
  }

  .results-actions {
    flex-direction: column;
  }

  .skill-scores {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}
