/**
 * Sachin Tonte - Life Journey Page Styles (Sachintontejourney.php)
 * High-End Cyber Design: Space Grotesk + Cyber Palette
 */

/* Force Immediate Visibility (Never hidden by scroll-reveal) */
.journey-hero-section,
.journey-section,
.journey-container,
.journey-layout-grid,
.journey-content-flow,
.chapter-card,
.journey-sidebar {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Reading Progress Bar for Journey */
.journey-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-pink) 0%, var(--color-cyan) 50%, var(--color-mint) 100%);
  width: 0%;
  z-index: 10001;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
  transition: width 0.1s ease;
}

/* Hero Section */
.journey-hero-section {
  padding: 8.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.journey-hero-wrap {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.journey-verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--color-mint);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.journey-verified-chip .chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-mint);
  box-shadow: 0 0 8px var(--color-mint);
}

.journey-main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.journey-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto 2rem;
}

.journey-meta-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  max-width: fit-content;
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.journey-meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.journey-meta-item strong {
  color: var(--text-main);
}

/* Verification Gate Modal / Card */
.verification-gate-section {
  padding: 6rem 0;
  min-height: calc(100vh - 350px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.verification-card {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(124, 92, 255, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.verification-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-pink), var(--color-cyan));
}

.gate-shield-icon {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: rgba(124, 92, 255, 0.15);
  border: 1.5px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 25px var(--color-primary-glow);
}

.gate-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.6rem;
}

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

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.gate-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  display: block;
}

.gate-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
}

.gate-input:focus {
  outline: none;
  border-color: var(--color-cyan);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.25);
}

.gate-input-otp {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  letter-spacing: 0.35em;
  text-align: center;
  font-weight: 700;
}

.gate-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  justify-content: center;
  margin-top: 0.5rem;
}

.gate-alert {
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
}

.gate-alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.gate-alert-success {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--color-mint);
}

.gate-alert-dev {
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--color-cyan);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.gate-trust-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Two Column Layout for Journey Content & Navigation */
.journey-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
  padding: 2.5rem 0 8rem;
}

/* Sticky Navigation Sidebar */
.journey-sidebar {
  position: sticky;
  top: 6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.journey-sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.journey-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.journey-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  line-height: 1.3;
}

.journey-nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.journey-nav-link.active {
  color: var(--color-cyan);
  background: rgba(34, 211, 238, 0.1);
  border-left: 3px solid var(--color-cyan);
  font-weight: 700;
}

.nav-link-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  min-width: 22px;
}

.journey-nav-link.active .nav-link-num {
  color: var(--color-cyan);
}

/* Chapter Section Cards */
.journey-content-flow {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.chapter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  position: relative;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  scroll-margin-top: 6.5rem;
}

.chapter-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.chapter-card.accent-pink { border-top: 4px solid var(--color-pink); }
.chapter-card.accent-cyan { border-top: 4px solid var(--color-cyan); }
.chapter-card.accent-amber { border-top: 4px solid var(--color-amber); }
.chapter-card.accent-mint { border-top: 4px solid var(--color-mint); }
.chapter-card.accent-violet { border-top: 4px solid var(--color-primary); }

.chapter-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.chapter-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.chapter-header-text {
  flex: 1;
}

.chapter-badge-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.badge-pink-pill { background: rgba(255, 79, 216, 0.15); color: var(--color-pink-light); border: 1px solid rgba(255, 79, 216, 0.35); }
.badge-cyan-pill { background: rgba(34, 211, 238, 0.15); color: var(--color-cyan); border: 1px solid rgba(34, 211, 238, 0.35); }
.badge-amber-pill { background: rgba(255, 176, 32, 0.15); color: var(--color-amber-light); border: 1px solid rgba(255, 176, 32, 0.35); }
.badge-mint-pill { background: rgba(52, 211, 153, 0.15); color: var(--color-mint); border: 1px solid rgba(52, 211, 153, 0.35); }
.badge-violet-pill { background: rgba(124, 92, 255, 0.15); color: var(--color-primary-light); border: 1px solid rgba(124, 92, 255, 0.35); }

.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.chapter-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Chapter Body Text & Flow */
.chapter-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.chapter-body p {
  margin-bottom: 1.4rem;
}

.chapter-body p:last-child {
  margin-bottom: 0;
}

.chapter-body strong {
  color: var(--text-main);
  font-weight: 600;
}

.lead-paragraph {
  font-size: 1.15rem;
  color: var(--text-main);
  line-height: 1.8;
  font-weight: 500;
}

.journey-emphasis {
  font-size: 1.15rem;
  font-family: var(--font-display);
  color: var(--color-cyan);
  font-weight: 700;
  margin-top: 1.5rem;
}

.journey-signoff {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-pink-light);
  font-weight: 700;
  margin-top: 1.5rem;
}

/* Lead Quotes */
.chapter-lead-quote {
  margin: 1.75rem 0;
  padding: 1.35rem 1.75rem;
  background: var(--bg-surface-elevated);
  border-left: 4px solid var(--color-cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.6;
}

.chapter-card.accent-pink .chapter-lead-quote { border-left-color: var(--color-pink); }
.chapter-card.accent-amber .chapter-lead-quote { border-left-color: var(--color-amber); }
.chapter-card.accent-mint .chapter-lead-quote { border-left-color: var(--color-mint); }
.chapter-card.accent-violet .chapter-lead-quote { border-left-color: var(--color-primary); }

/* Highlight Box (When no solution is working, check with Sachin) */
.journey-highlight-box {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12) 0%, rgba(34, 211, 238, 0.08) 100%);
  border: 1.5px solid var(--color-cyan);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin: 2.25rem 0;
  text-align: center;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.15);
}

.highlight-lead {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.highlight-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #FFFFFF;
  margin: 0.5rem 0 1rem;
  line-height: 1.25;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

.highlight-sub {
  font-size: 0.95rem;
  color: var(--color-cyan);
  margin: 0;
  font-weight: 500;
}

.journey-subheading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-main);
  margin: 2.25rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* Bullet & Check Lists */
.journey-bullet-list,
.journey-check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.journey-bullet-list li,
.journey-check-list li {
  position: relative;
  padding-left: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.journey-bullet-list li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
}

.journey-check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  color: var(--color-mint);
  font-size: 1.1rem;
}

/* Principles Grid */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.principle-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.principle-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-pink);
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-pink);
  margin-bottom: 0.5rem;
}

.principle-card h5 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.principle-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* Offerings List */
.offerings-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.75rem 0;
}

.offering-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.offering-item strong {
  font-size: 1.05rem;
  color: var(--color-primary-light);
}

.offering-item span {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Versions Timeline */
.journey-versions-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
  position: relative;
  padding-left: 1.75rem;
}

.journey-versions-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-pink) 0%, var(--color-cyan) 50%, var(--color-mint) 100%);
}

.version-step {
  position: relative;
}

.version-step::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-canvas);
  border: 2.5px solid var(--color-cyan);
}

.version-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.35rem;
}

.version-step p {
  font-size: 0.98rem;
  color: var(--text-main);
  margin: 0;
}

/* Key Takeaway Footer in Card */
.chapter-takeaway {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-faint);
}

.takeaway-tag {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--color-mint);
  background: rgba(52, 211, 153, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

/* Signature Card */
.journey-signature-card {
  margin-top: 2rem;
  padding: 1.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.sig-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.sig-title {
  font-size: 0.9rem;
  color: var(--color-cyan);
  margin-bottom: 0.15rem;
}

.sig-loc {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin: 0;
}

/* Bottom Journey Navigation & Actions */
.journey-bottom-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 4rem;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

/* Light Mode Overrides */
[data-theme="light"] .chapter-card {
  background: #FFFFFF;
  border-color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .chapter-card:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
}

[data-theme="light"] .journey-sidebar {
  background: #FFFFFF;
  border-color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .verification-card {
  background: #FFFFFF;
  border-color: rgba(203, 213, 225, 0.8);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .gate-input {
  background: #F8FAFC;
  border-color: rgba(203, 213, 225, 0.9);
  color: #0F172A;
}

[data-theme="light"] .journey-highlight-box {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.06) 0%, rgba(34, 211, 238, 0.06) 100%);
  border-color: rgba(124, 92, 255, 0.35);
}

[data-theme="light"] .highlight-quote {
  color: #0F172A;
  text-shadow: none;
}

[data-theme="light"] .chapter-lead-quote {
  background: #F8FAFC;
  color: #1E293B;
}

[data-theme="light"] .principle-card,
[data-theme="light"] .offering-item,
[data-theme="light"] .journey-signature-card,
[data-theme="light"] .journey-bottom-actions {
  background: #F8FAFC;
  border-color: rgba(226, 232, 240, 0.9);
}

[data-theme="light"] .lead-paragraph {
  color: #0F172A;
}

[data-theme="light"] .chapter-body {
  color: #334155;
}

[data-theme="light"] .verification-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .journey-sidebar {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .chapter-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .chapter-card:hover {
  border-color: var(--color-cyan);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .journey-nav-link:hover {
  background: rgba(15, 23, 42, 0.05);
  color: #0F172A;
}

[data-theme="light"] .chapter-icon-badge {
  background: #F1F5F9;
  border-color: #E2E8F0;
}

[data-theme="light"] .journey-meta-bar {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .journey-layout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .journey-sidebar {
    position: relative;
    top: 0;
    max-height: none;
  }

  .chapter-card {
    padding: 2rem 1.5rem;
  }

  .verification-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .chapter-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .journey-meta-bar {
    border-radius: var(--radius-md);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
