/* ==========================================================================
   退職リスク診断 - Component Styles
   Extracted from inline <style> for better caching and performance
   ========================================================================== */

/* ---- Animated Background Orbs (Start Screen) ---- */
.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  will-change: transform;
}

.bg-orb--1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #818cf8 0%, transparent 70%);
  top: -80px;
  left: -60px;
  animation: orbFloat1 8s ease-in-out infinite alternate;
}

.bg-orb--2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  bottom: -40px;
  right: -40px;
  animation: orbFloat2 10s ease-in-out infinite alternate;
}

.bg-orb--3 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: 40%;
  right: 10%;
  animation: orbFloat3 12s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 60px) scale(1.1); }
}

@keyframes orbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -40px) scale(1.15); }
}

@keyframes orbFloat3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 30px) scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orb {
    animation: none !important;
  }
}

/* ---- Feature Tags (Start Screen) ---- */
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 9999px;
  font-size: clamp(12px, 3.2vw, 14px);
  font-weight: 600;
  color: var(--accent-secondary);
  letter-spacing: 0.02em;
}

/* ---- Version Footer ---- */
.version-footer {
  margin-top: 24px;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.5;
  letter-spacing: 0.04em;
}

/* ---- Dimension Progress Indicator ---- */
.dimension-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 480px;
  margin-bottom: 4px;
}

.dimension-label {
  font-size: clamp(12px, 3.2vw, 14px);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ---- Step Indicator Dots ---- */
.step-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  padding: 14px 0 6px;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-dot.active {
  background: var(--accent-secondary);
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.5);
  transform: scale(1.3);
}

.step-dot.completed {
  background: var(--accent-primary);
  opacity: 0.7;
}

/* ---- Spacious Question Card Override ---- */
.question-card-spacious {
  padding: clamp(24px, 6vw, 36px) clamp(20px, 5vw, 32px) clamp(28px, 7vw, 40px);
}

/* (result-summary-headline and result-divider removed in v4.0) */

/* ---- Collapsible Sections (References + Result Panels) ---- */
.collapsible-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: clamp(16px, 4.5vw, 21px);
  font-weight: 700;
  min-height: 48px;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.collapsible-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.collapsible-toggle-icon svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[aria-expanded="true"] .collapsible-toggle-icon svg,
[aria-expanded="true"] > .collapsible-toggle .collapsible-toggle-icon svg {
  transform: rotate(180deg);
}

.collapsible-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              margin-top 0.3s ease;
  margin-top: 0;
}

[aria-expanded="true"] .collapsible-body,
[aria-expanded="true"] > .collapsible-body {
  max-height: 5000px;
  opacity: 1;
  margin-top: 16px;
}

/* Legacy references toggle (backwards compat) */
.references-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: clamp(16px, 4.5vw, 21px);
  font-weight: 700;
  min-height: 48px;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.references-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.references-toggle-icon svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.references-card[aria-expanded="true"] .references-toggle-icon svg {
  transform: rotate(180deg);
}

.references-collapsible {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              margin-top 0.3s ease;
  margin-top: 0;
}

.references-card[aria-expanded="true"] .references-collapsible {
  max-height: 2000px;
  opacity: 1;
  margin-top: 16px;
}

/* ---- Home Button ---- */
.btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: none;
  color: var(--text-muted);
  font-size: clamp(14px, 3.8vw, 16px);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  font-family: inherit;
}

.btn-home:active {
  color: var(--text-secondary);
}

/* ---- Dimension Deep-Dive Educational Content ---- */
.dim-deep-dive {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dim-deep-dive-toggle {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-secondary);
  padding: 6px 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.dim-deep-dive-toggle:active {
  opacity: 0.7;
}

.dim-deep-dive-body {
  margin-top: 10px;
}

.dim-dd-section {
  margin-bottom: 12px;
}

.dim-dd-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.dim-dd-section p {
  font-size: clamp(12px, 3.2vw, 14px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.dim-dd-actions {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dim-dd-actions li {
  font-size: clamp(12px, 3.2vw, 13px);
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 4px 0 4px 18px;
  position: relative;
}

.dim-dd-actions li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0.5;
}

/* ---- Streak Badge ---- */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(234,179,8,0.15));
  font-size: 12px;
  font-weight: 700;
  color: #f97316;
}

.streak-badge-fire {
  font-size: 14px;
}

.streak-info {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* (Animation delays now consolidated in style.css) */
