/* ═══════════════════════════════════════════════════════════════════
   Lioris - Brand Voice Wizard Styles (/dashboard/brand/voice)
   Cosmic Glassmorphic Stepper Timeline Layout
   ═══════════════════════════════════════════════════════════════════ */

/* ── Main Cosmic Wizard Card ── */
.voice-wizard-card {
  background: linear-gradient(160deg, rgba(26, 14, 56, 0.6) 0%, rgba(12, 6, 28, 0.8) 100%);
  border-radius: 28px;
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(216, 180, 254, 0.25);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 20px 48px -8px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

/* ── Top Hero Banner ── */
.voice-hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  position: relative;
}

.voice-hero-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.voice-hero-icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(168, 85, 247, 0.9) 0%,
    rgba(109, 40, 217, 0.9) 60%,
    rgba(76, 29, 149, 0.95) 100%
  );
  border: 2px solid rgba(216, 180, 254, 0.65);
  box-shadow:
    0 0 24px rgba(168, 85, 247, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.voice-hero-icon-badge svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.voice-hero-text {
  display: flex;
  flex-direction: column;
}

.voice-hero-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.voice-hero-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
  margin: 0;
  max-width: 400px;
}

/* ── 3D Decorative Illustration (Right) ── */
.voice-hero-illustration {
  position: relative;
  width: 160px;
  height: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

@media (max-width: 680px) {
  .voice-hero-illustration {
    display: none;
  }
}

.voice-hero-neon-ring {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  height: 60px;
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.8));
}

.voice-neon-svg {
  width: 100%;
  height: 100%;
}

.voice-sparkle {
  position: absolute;
  color: #c084fc;
  font-size: 12px;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.9);
  animation: voiceSparklePulse 2.5s infinite ease-in-out;
}

.voice-sparkle.sp1 {
  top: 8px;
  left: 10px;
  animation-delay: 0s;
  font-size: 13px;
}
.voice-sparkle.sp2 {
  top: 20px;
  right: 8px;
  animation-delay: 0.8s;
  font-size: 10px;
}
.voice-sparkle.sp3 {
  bottom: 18px;
  right: 24px;
  animation-delay: 1.6s;
  font-size: 11px;
}

@keyframes voiceSparklePulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* 3D Notepad Sheet */
.voice-3d-sheet {
  position: absolute;
  width: 82px;
  height: 98px;
  top: 6px;
  left: 28px;
  background: linear-gradient(145deg, rgba(147, 51, 234, 0.6) 0%, rgba(88, 28, 135, 0.85) 100%);
  border: 1.5px solid rgba(216, 180, 254, 0.55);
  border-radius: 12px 22px 12px 12px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(168, 85, 247, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: perspective(600px) rotateY(-14deg) rotateX(10deg) rotateZ(4deg);
  padding: 14px 10px;
  box-sizing: border-box;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2;
}

.voice-3d-sheet-curl {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, rgba(233, 213, 255, 0.4) 0%, rgba(168, 85, 247, 0.75) 100%);
  border-radius: 0 20px 0 10px;
  box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.4);
}

.voice-3d-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.voice-3d-sheet-line {
  height: 4px;
  border-radius: 3px;
  background: rgba(233, 213, 255, 0.75);
  box-shadow: 0 0 4px rgba(168, 85, 247, 0.4);
}

.voice-3d-sheet-line.l-title {
  width: 55%;
  height: 5px;
  background: rgba(255, 255, 255, 0.95);
  margin-bottom: 2px;
}
.voice-3d-sheet-line.l-full {
  width: 95%;
}
.voice-3d-sheet-line.l-half {
  width: 65%;
}
.voice-3d-sheet-line.l-short {
  width: 40%;
}

/* 3D Stylus / Pencil */
.voice-3d-pencil {
  position: absolute;
  width: 14px;
  height: 64px;
  right: 20px;
  bottom: 12px;
  transform: perspective(600px) rotateZ(-38deg);
  z-index: 3;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}

.voice-3d-pencil-body {
  width: 100%;
  height: 48px;
  background: linear-gradient(90deg, #c084fc 0%, #a855f7 40%, #7e22ce 100%);
  border-radius: 5px 5px 2px 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.voice-3d-pencil-tip {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 16px solid #e9d5ff;
}

/* ── Stepper Timeline ── */
.voice-stepper-wrap {
  display: flex;
  flex-direction: column;
  position: relative;
}

.voice-step-row {
  display: flex;
  gap: 16px;
  position: relative;
}

.voice-step-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 34px;
}

.voice-step-node {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
  user-select: none;
}

.voice-step-node.active {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.5);
  border: 1px solid rgba(216, 180, 254, 0.5);
}

.voice-step-node.completed {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.voice-step-line {
  width: 2px;
  flex: 1;
  min-height: 28px;
  background: rgba(255, 255, 255, 0.1);
  margin: 6px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.voice-step-line.active {
  background: linear-gradient(180deg, #a855f7 0%, rgba(168, 85, 247, 0.3) 100%);
}

.voice-step-main {
  flex: 1;
  min-width: 0;
  padding-bottom: 24px;
}

.voice-step-header {
  margin-bottom: 14px;
}

.voice-step-badge {
  font-size: 11px;
  font-weight: 800;
  color: #c084fc;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 3px;
  display: block;
}

.voice-step-inactive-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  margin-bottom: 2px;
}

.voice-step-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 3px;
  letter-spacing: -0.01em;
}

.voice-step-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  line-height: 1.4;
}

/* ── Form Controls ── */
.voice-form-group {
  margin-bottom: 16px;
}

.voice-field-label {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  display: block;
}

.voice-select,
.voice-input {
  width: 100%;
  height: 46px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0 16px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.voice-select:focus,
.voice-input:focus,
.voice-textarea:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.65);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.voice-textarea-wrap {
  position: relative;
  width: 100%;
}

.voice-textarea {
  width: 100%;
  min-height: 96px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px 28px;
  color: #ffffff;
  font-size: 13.5px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
  transition: all 0.2s ease;
}

.voice-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.voice-char-counter {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  font-weight: 500;
}

/* ── Action Buttons ── */
.voice-actions {
  margin-left: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .voice-actions {
    margin-left: 0;
  }
}

.voice-btn-next {
  background: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%);
  border: none;
  border-radius: 14px;
  padding: 12px 30px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.voice-btn-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(192, 38, 211, 0.55);
}

.voice-btn-next:active {
  transform: translateY(0);
}

.voice-btn-back {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 24px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.voice-btn-back:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateX(-2px);
}

/* Ensure bottom space for floating tab bar */
.voice-wizard-card {
  margin-bottom: 20px;
}

body:has(.voice-wizard-card) main,
main:has(.voice-wizard-card) {
  padding-bottom: 120px;
}
