/* ==========================================================================
   UI COMPONENTS - WHITE • PURPLE • YELLOW
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.65rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #f0f9ff 0%, #06b6d4 45%, #84cc16 100%);
  color: #0f172a;
  font-weight: 700;
  border: 1px solid rgba(132, 204, 22, 0.5);
  box-shadow: 0 0 25px -4px rgba(132, 204, 22, 0.5);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f0f9ff 0%, #22d3ee 45%, #bef264 100%);
  box-shadow: 0 0 35px rgba(132, 204, 22, 0.7), 0 0 20px rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
  color: #0f172a;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(26, 40, 68, 0.8);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(37, 65, 98, 0.95);
  border-color: var(--color-cyan);
  color: #f0f9ff;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

.btn-yellow {
  background: linear-gradient(135deg, #84cc16 0%, #06b6d4 100%);
  color: #0f172a;
  border: 1px solid rgba(132, 204, 22, 0.5);
  box-shadow: 0 0 25px -4px rgba(132, 204, 22, 0.5);
}

.btn-yellow:hover {
  background: linear-gradient(135deg, #bef264 0%, #22d3ee 100%);
  box-shadow: 0 0 35px rgba(132, 204, 22, 0.6), 0 0 20px rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: var(--text-base);
}

/* Badges & Status */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.08), rgba(132, 204, 22, 0.15));
  border: 1px solid rgba(132, 204, 22, 0.4);
  color: var(--color-lime-light);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  box-shadow: 0 0 15px -3px rgba(132, 204, 22, 0.4);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background-color: var(--color-lime);
  box-shadow: 0 0 10px var(--color-lime);
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  background: rgba(26, 40, 68, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  background: var(--lime-subtle);
  border-color: var(--color-lime);
  color: #f0f9ff;
  box-shadow: 0 0 15px rgba(132, 204, 22, 0.3);
  transform: translateY(-1px);
}

.tag-white {
  color: #f0f9ff;
  background: rgba(240, 249, 255, 0.08);
  border-color: rgba(240, 249, 255, 0.25);
}

.tag-purple {
  color: #22d3ee;
  background: var(--cyan-subtle);
  border-color: rgba(6, 182, 212, 0.3);
}

.tag-yellow {
  color: #bef264;
  background: var(--lime-subtle);
  border-color: rgba(132, 204, 22, 0.3);
}

/* Glassmorphism Cards with Tri-Color Edge Shine */
.glass-card {
  background: rgba(26, 40, 68, 0.5);
  border: 1px solid rgba(6, 182, 212, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f0f9ff 20%, #06b6d4 50%, #84cc16 80%, transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.glass-card:hover {
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.8), 0 0 30px -4px rgba(6, 182, 212, 0.3), 0 0 15px -4px rgba(132, 204, 22, 0.2);
  transform: translateY(-4px);
  background: rgba(26, 40, 68, 0.7);
}

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

/* Terminal Component */
.terminal-window {
  background: #0a1425;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(6, 182, 212, 0.15);
  overflow: hidden;
  font-family: var(--font-mono);
  transition: all var(--transition-normal);
}

.terminal-window:hover {
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(6, 182, 212, 0.25), 0 0 20px rgba(132, 204, 22, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
}

.terminal-header {
  background: #0f1f35;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(6, 182, 212, 0.15);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: all var(--transition-fast);
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #84cc16; box-shadow: 0 0 6px #84cc16; }
.dot-green { background: #10b981; }

.terminal-title {
  margin-inline: auto;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.25rem;
  font-size: var(--text-xs);
  line-height: 1.75;
  color: #7dd3fc;
}

.terminal-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.terminal-prompt {
  color: #84cc16;
  font-weight: 700;
}

.terminal-cmd {
  color: #f0f9ff;
  font-weight: 600;
}

.terminal-output {
  color: #7dd3fc;
  margin-left: 1.1rem;
  display: block;
}

.terminal-success {
  color: #bef264;
  font-weight: 500;
}

.terminal-highlight {
  color: #22d3ee;
}

/* Impact Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.metric-item {
  padding: var(--space-6);
  text-align: center;
  background: linear-gradient(145deg, rgba(26, 40, 68, 0.6), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.metric-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f0f9ff, #06b6d4, #84cc16, transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.metric-item:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 10px 30px -5px rgba(6, 182, 212, 0.3), 0 0 15px -5px rgba(132, 204, 22, 0.2);
  transform: translateY(-4px);
  background: linear-gradient(145deg, rgba(26, 40, 68, 0.8), rgba(15, 23, 42, 0.9));
}

.metric-item:hover::before {
  opacity: 1;
}

.metric-number {
  font-size: var(--text-3xl);
  font-weight: 800;
  font-family: var(--font-mono);
  color: #f0f9ff;
  line-height: 1.1;
  margin-bottom: var(--space-1);
}

.metric-number.purple {
  color: #22d3ee;
}

.metric-number.yellow {
  color: #84cc16;
}

.metric-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2.25rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 2px;
  background: linear-gradient(to bottom, #ffffff, var(--color-purple), var(--color-yellow), var(--border-subtle));
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.35);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-8);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  top: 5px;
  left: -2.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-darkest);
  border: 2px solid var(--color-lime);
  box-shadow: 0 0 12px var(--color-lime);
  transition: all var(--transition-fast);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-lime-light);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.timeline-title {
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.timeline-company {
  font-size: var(--text-sm);
  color: var(--color-cyan-light);
  margin-bottom: var(--space-3);
  font-weight: 500;
}

.timeline-bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.timeline-bullets li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.timeline-bullets li::before {
  content: "▹";
  color: var(--color-lime);
}

/* Alert Notification Banner */
.form-status-banner {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-xs);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  display: none;
  font-weight: 500;
}

.form-status-banner.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.form-status-banner.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #f87171;
}
