/* ==========================================================================
   CREATIVE.CSS — Premium "WOW" High-Conversion Effects
   ========================================================================== */

/* 1. SCRAP EXCHANGE TERMINAL (Hero UI) */
.hero-terminal {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  margin-top: var(--space-10);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-6);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.terminal-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  font-weight: 700;
}

.terminal-trend {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.trend--up { background: rgba(37, 211, 102, 0.15); color: #25D366; }
.trend--down { background: rgba(255, 59, 48, 0.15); color: #FF3B30; }

.terminal-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--white);
}

.terminal-chart {
  height: 40px;
  width: 100%;
  margin-top: var(--space-2);
}

/* 2. CINEMATIC BEFORE/AFTER SLIDER */
.ba-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  margin: var(--space-20) 0;
  cursor: ew-resize;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 3px solid var(--green-accent);
  z-index: 2;
}

.ba-overlay img {
  width: 100vw;
  height: 600px;
  object-fit: cover;
  max-width: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--green-accent);
  border: 4px solid var(--white);
  z-index: 10;
  display: grid;
  place-items: center;
  color: var(--black);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

.ba-label {
  position: absolute;
  top: var(--space-8);
  padding: 8px 16px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: white;
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  z-index: 5;
}

.ba-label--before { left: var(--space-8); }
.ba-label--after { right: var(--space-8); }

.ba-counter {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-accent);
  color: var(--black);
  padding: 12px 30px;
  border-radius: 100px;
  font-weight: 900;
  font-size: var(--text-xl);
  z-index: 5;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* 3. HYDERABAD PULSE MAP */
.pulse-map-container {
  background: radial-gradient(circle at center, #1a1a1a 0%, #0d0d0d 100%);
  padding: var(--space-20) 0;
  border-radius: var(--radius-3xl);
  margin: var(--space-20) 0;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-12);
  align-items: center;
}

.pulse-map-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(37, 211, 102, 0.15));
}

.map-ping {
  fill: var(--green-accent);
  filter: drop-shadow(0 0 8px var(--green-accent));
  animation: map-ping-anim 2s infinite;
}

@keyframes map-ping-anim {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

/* 4. ECO-HERO STATS */
.eco-hero-stats {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.eco-stat {
  text-align: center;
}

.eco-stat__icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.eco-stat__val {
  font-weight: 800;
  color: var(--green-accent);
  display: block;
}

.eco-stat__label {
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* 5. TRUST ORBS BACKGROUND */
.trust-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

.trust-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(37, 211, 102, 0.1) 0%, transparent 70%);
  filter: blur(40px);
  transition: transform 0.5s ease-out;
}

/* 6. PULSE HUB (Simplified Live Activity) */
.pulse-hub {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-16);
  align-items: center;
  padding: var(--space-16) 0;
}

.pulse-hub__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(37, 211, 102, 0.08) 0%, transparent 70%);
}

.pulse-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid var(--green-mid);
  border-radius: 50%;
  animation: pulse-ring 3s infinite;
}

.pulse-logo {
  width: 64px;
  height: 64px;
  background: var(--green-mid);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 0 40px rgba(37, 211, 102, 0.4);
  z-index: 2;
}

.live-toast {
  position: absolute;
  background: var(--white);
  color: var(--black);
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
}

.live-toast.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pulse-hub__title {
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.pulse-hub__desc {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
  max-width: 500px;
}

.pulse-stats {
  display: flex;
  gap: var(--space-12);
}

.pulse-stat__num {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-display);
  margin-bottom: 4px;
}

.pulse-stat__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-mid);
  font-weight: 700;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

@media (max-width: 992px) {
  .pulse-hub {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-10);
    padding: var(--space-10) 0;
  }
  .pulse-hub__visual {
    height: 200px;
    margin: 0 auto;
  }
  .pulse-hub__desc {
    margin-left: auto;
    margin-right: auto;
  }
  .pulse-stats {
    justify-content: center;
  }
  .pulse-hub__title {
    font-size: var(--text-4xl);
  }
}

