/* ==========================================================================
   3D CONTINUOUS PAPER LIFECYCLE STREAM (DOĞA PET / APPLE 3D STYLE)
   Central 3D Morphing Transformation in the Exact Same Position
   ========================================================================== */

.dash-lifecycle-section {
  position: relative;
  background-color: var(--dash-navy-950);
  color: var(--dash-white);
  padding: 5rem 0;
  overflow: hidden;
}

.lifecycle-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  height: 480px;
  background: radial-gradient(circle, rgba(0, 168, 107, 0.18) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 70%);
  filter: blur(65px);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.lifecycle-header {
  position: relative;
  z-index: 1;
  margin-bottom: 1.75rem;
}

.lifecycle-header h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.lifecycle-header-subtitle {
  font-size: 0.90625rem;
  color: var(--dash-slate-300);
  max-width: 780px;
  margin: 0.5rem auto 0;
  line-height: 1.55;
}

/* ==========================================================================
   5-Step Timeline Navigation Stepper Bar
   ========================================================================== */
.lifecycle-stepper-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  background: rgba(7, 21, 38, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.45rem;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto 2.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lifecycle-stepper-bar::-webkit-scrollbar {
  display: none;
}

.lifecycle-step-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  background: transparent;
  border: none;
  color: var(--dash-slate-400);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-cubic);
  flex: 1;
  min-width: max-content;
  justify-content: center;
  overflow: hidden;
}

.lifecycle-step-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.lifecycle-step-btn.active {
  background: linear-gradient(135deg, rgba(0, 168, 107, 0.95), rgba(16, 185, 129, 0.95));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 168, 107, 0.35);
}

.step-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: #ffffff;
  border-radius: 2px;
  opacity: 0.9;
  animation: stepProgressFill linear forwards;
}

@keyframes stepProgressFill {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.lifecycle-step-btn.passed {
  color: var(--dash-green-300);
}

.step-btn-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.step-icon {
  display: flex;
  align-items: center;
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
}

.step-btn-label {
  font-family: var(--font-display);
  font-size: 0.78125rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   Main Showcase Card Layout (Dark Studio Glassmorphism)
   ========================================================================== */
.lifecycle-card-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
}

.lifecycle-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 1.2rem + 1.5vw, 3rem);
  background: rgba(7, 20, 36, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: clamp(1.5rem, 1.25rem + 1vw, 2.5rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 168, 107, 0.08);
  align-items: center;
  min-height: 480px;
}

/* ==========================================================================
   Left Column: Interactive 3D Central Morphing Arena
   ========================================================================== */
.lifecycle-3d-col {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 410px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.lifecycle-3d-arena {
  position: relative;
  width: 100%;
  height: 440px;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #071526 0%, #000000 85%);
  border: 1.5px solid rgba(0, 168, 107, 0.4);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.9), 0 24px 50px rgba(0, 0, 0, 0.65);
  transform-style: preserve-3d;
  transition: transform 120ms ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arena-ambient-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 168, 107, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.arena-grid-platform {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(0, 168, 107, 0.12), transparent);
  pointer-events: none;
}

/* Live Flow Pill */
.live-flow-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(6, 18, 33, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 168, 107, 0.5);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  z-index: 10;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 800;
  color: #00A86B;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

[dir="rtl"] .live-flow-pill {
  left: auto;
  right: 14px;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00A86B;
  box-shadow: 0 0 8px #00A86B;
  animation: pulseDot 1.8s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.stage-top-indicator {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(6, 18, 33, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 10;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--dash-slate-300);
}

[dir="rtl"] .stage-top-indicator {
  right: auto;
  left: 14px;
}

/* ==========================================================================
   Central 3D Morphing Stage (Exact Same Center Position)
   ========================================================================== */
.central-3d-morph-stage {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 480px;
  max-height: 400px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.central-3d-object-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.88) translateZ(-40px) rotateY(8deg);
  pointer-events: none;
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1), transform 550ms cubic-bezier(0.16, 1, 0.3, 1);
}

.central-3d-object-item.visible {
  opacity: 1;
  transform: scale(1) translateZ(0) rotateY(0deg);
  pointer-events: auto;
}

.object-3d-floating-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: levitateObject3D 5s ease-in-out infinite alternate;
}

.object-3d-real-render {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 25px rgba(0, 168, 107, 0.15));
  transition: transform 300ms ease;
}

.central-3d-object-item:hover .object-3d-real-render {
  transform: scale(1.05);
}

@keyframes levitateObject3D {
  0% { transform: translateY(0px) rotateX(0deg); }
  50% { transform: translateY(-10px) rotateX(1.5deg); }
  100% { transform: translateY(5px) rotateX(-1deg); }
}

/* Bottom Stage HUD */
.stage-bottom-hud {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(6, 18, 33, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.hud-stage-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.78125rem;
  font-weight: 700;
  color: #ffffff;
}

.hud-stage-icon {
  color: #00A86B;
  display: flex;
  align-items: center;
}

.hud-stage-counter {
  font-family: var(--font-display);
  font-size: 0.71875rem;
  font-weight: 800;
  color: var(--dash-slate-400);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

/* ==========================================================================
   Right Column: Editorial & Technical Specifications
   ========================================================================== */
.lifecycle-content-col {
  display: flex;
  flex-direction: column;
}

.lifecycle-stage-kicker-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.stage-step-tag {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: #00A86B;
  line-height: 1;
}

.stage-category-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--dash-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lifecycle-stage-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.95rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.lifecycle-stage-subtitle {
  font-size: 0.90625rem;
  font-weight: 600;
  color: var(--dash-green-400);
  margin-bottom: 0.85rem;
}

.lifecycle-stage-desc {
  font-size: 0.8875rem;
  color: var(--dash-slate-300);
  line-height: 1.6;
  margin-bottom: 1.35rem;
}

/* Specs Grid */
.lifecycle-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.spec-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}

.spec-label {
  font-size: 0.6875rem;
  color: var(--dash-slate-400);
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.lifecycle-specs-grid .spec-card .spec-value {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
}

/* Navigation Row */
.lifecycle-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.step-dots-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.step-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #00A86B;
}

.lifecycle-btn-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lifecycle-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.lifecycle-play-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #00A86B;
  color: #00A86B;
}

.lifecycle-play-btn.is-playing {
  background: rgba(0, 168, 107, 0.18);
  border-color: rgba(0, 168, 107, 0.5);
  color: #00A86B;
}

.lifecycle-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.lifecycle-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.lifecycle-nav-btn.next-btn {
  background: #00A86B;
  border-color: #00A86B;
}

.lifecycle-nav-btn.next-btn:hover:not(:disabled) {
  background: #16a34a;
  border-color: #16a34a;
  box-shadow: 0 4px 12px rgba(0, 168, 107, 0.35);
}

.lifecycle-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
  .lifecycle-stepper-bar {
    overflow-x: auto;
    justify-content: flex-start;
    border-radius: var(--radius-lg);
  }

  .lifecycle-step-btn {
    flex: 0 0 auto;
  }

  .lifecycle-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .lifecycle-specs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .lifecycle-3d-arena {
    height: 310px;
  }

  .central-3d-morph-stage {
    width: 260px;
    height: 200px;
  }
}

/* Lifecycle Active Toggle Rules */
.lifecycle-stage-visual {
  display: none !important;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.lifecycle-stage-visual.is-active {
  display: flex !important;
}

.stage-editorial-block {
  display: none !important;
}

.stage-editorial-block.is-active {
  display: block !important;
}

.stage-visual-img {
  max-height: 280px;
  max-width: 85%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: block;
}

/* Phones: let grid columns shrink instead of pushing the card past the screen edge */
.lifecycle-card > * { min-width: 0; }
@media (max-width: 992px) {
  .lifecycle-card { grid-template-columns: minmax(0, 1fr); }
  .lifecycle-specs-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .lifecycle-card { padding: 1.1rem; border-radius: 22px; }
  .lifecycle-3d-col { min-height: 0; }
  .lifecycle-nav-row { flex-wrap: wrap; justify-content: center; }
  .lifecycle-btn-group { flex-wrap: wrap; justify-content: center; }
  .lifecycle-stage-title { overflow-wrap: anywhere; }
}

/* Phones: stepper fits the screen (only the active stage shows its name) and the two arena chips never overlap */
@media (max-width: 640px) {
  .lifecycle-stepper-bar { overflow: hidden; gap: 0.2rem; padding: 0.3rem; justify-content: space-between; }
  .lifecycle-step-btn { flex: 1 1 0; min-width: 0; padding: 0.5rem 0.35rem; }
  .lifecycle-step-btn.active { flex: 3.2 1 0; }
  .lifecycle-step-btn:not(.active) .step-btn-label { display: none; }
  .lifecycle-step-btn:not(.active) .step-icon { display: none; }
  .lifecycle-step-btn .step-btn-badge { gap: 0.25rem; }
  .lifecycle-step-btn.active .step-btn-label { font-size: 0.7rem; white-space: normal; text-align: left; line-height: 1.15; }
  .live-flow-pill, .stage-top-indicator { max-width: calc(50% - 20px); padding: 0.3rem 0.55rem; font-size: 0.5625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .live-flow-pill .live-pulse-dot { display: inline-block; margin-inline-end: 0.35rem; }
}