/* =============================================
   PHONE INTERACTIVITY EFFECTS
   Hover effects, shadows, and glow for phone mockups
   ============================================= */

[class*="phone-mockup"] {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  /* Reset any previous transformations */
  transform: none !important;
}

[class*="phone-mockup"]::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border-radius: 50px;
  opacity: 0.4;
  transform: scale(1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  filter: blur(25px);
}

[class*="phone-mockup"]:hover::before {
  opacity: 0.8;
  transform: scale(1.2);
}

[class*="phone-mockup"]:hover {
  transform: scale(1.05) !important;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Context-aware shadows based on parent section background */

/* Hero Section - Dark Blue Shadow */
.hero-section [data-shadow="blue"]::before {
  background: radial-gradient(circle at center, rgba(15, 15, 35, 0.6), rgba(22, 33, 62, 0.5));
}

/* Features Section - Purple/Pink Shadow */
.features-section [data-shadow="red"]::before {
  background: radial-gradient(circle at center, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.5));
}

/* AI Features Section (purple bg) - Purple Shadow */
.features-section[style*="3b82f6"] [data-shadow="pink"]::before {
  background: radial-gradient(circle at center, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.5));
}

/* Stories Section (pink bg) - Pink/Red Shadow */
.analytics-section[style*="f093fb"] [data-shadow="green"]::before {
  background: radial-gradient(circle at center, rgba(240, 147, 251, 0.6), rgba(245, 87, 108, 0.5));
}

/* Premium Section (orange bg) - Orange/Peach Shadow */
.community-section[style*="ffecd2"] [data-shadow="blue"]::before {
  background: radial-gradient(circle at center, rgba(255, 236, 210, 0.7), rgba(252, 182, 159, 0.6));
}

/* Analytics "Get paid" Section (green bg) - Green Shadow */
.analytics-section:not([style]) [data-shadow="red"]::before {
  background: radial-gradient(circle at center, rgba(17, 153, 142, 0.6), rgba(56, 239, 125, 0.5));
}

/* Community Section (pink bg) - Light Pink Shadow */
.community-section:not([style]) [data-shadow="green"]::before {
  background: radial-gradient(circle at center, rgba(255, 154, 158, 0.6), rgba(254, 207, 239, 0.5));
}

/* Mobile optimizations */
@media (max-width: 768px) {
  [class*="phone-mockup"]::before {
    opacity: 0.3;
    filter: blur(15px);
  }

  [class*="phone-mockup"]:hover {
    transform: scale(1.02) !important;
  }

  [class*="phone-mockup"]:hover::before {
    opacity: 0.5;
    transform: scale(1.1);
  }
}
