/* Premium Reusable UI Components - iParadise Media */
@import url('variables.css');

/* Custom Glassmorphism Cards */
.glass-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  transition: var(--transition-bounce);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.1);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Gradient Text FX */
.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #fff 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #fff 0%, var(--accent-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cosmic Glow Elements */
.glow-text {
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: var(--transition-bounce);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Glow Badge */
.glow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.glow-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
}

/* Metric Display Numbers */
.metric-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin: 64px 0;
}

.metric-card {
  text-align: center;
}

.metric-number {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.metric-number span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--secondary);
  -webkit-text-fill-color: var(--secondary);
}

.metric-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Multi-step Interactive Intake Form */
.intake-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.form-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: white;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

/* Advanced Budget Slider */
.slider-container {
  margin: 20px 0;
}

.slider-values {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent-gold);
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.4);
  transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Section Dividers */
.section-div {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-light) 50%, transparent 100%);
}

/* Timeline Components */
.timeline-track {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary) 0%, var(--secondary) 100%);
  transform: translateX(-50%);
}

.timeline-node {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 64px;
  width: 100%;
}

.timeline-node:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-bullet {
  width: 20px;
  height: 20px;
  background: var(--bg-deep);
  border: 4px solid var(--primary);
  border-radius: 50%;
  z-index: 2;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

.timeline-node:nth-child(even) .timeline-bullet {
  border-color: var(--secondary);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.timeline-content {
  width: 45%;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.timeline-node:nth-child(even) .timeline-content {
  border-color: rgba(59, 130, 246, 0.2);
}

@media (max-width: 768px) {
  .timeline-track::before {
    left: 20px;
  }
  .timeline-bullet {
    left: 20px;
  }
  .timeline-node, .timeline-node:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 50px;
  }
  .timeline-content {
    width: 100%;
  }
}

/* Custom Interactive Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-item {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  cursor: default;
}

.tag-item:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--text-primary);
  transform: scale(1.05);
}

/* NATIVE CSS SCROLL-DRIVEN ANIMATION DECORATIVE ENTRY/EXIT CLASSES */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes revealUp {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    .scroll-reveal {
      animation: revealUp auto linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
  }
}
