/**
 * Quit Scrolling Landing Page Styles
 * Specific styling for PravaApp Quit Scrolling landing page
 * Optimized for performance and visual appeal
 */

/* Quit Scrolling Color Palette */
:root {
  --quit-scrolling-primary: #FF0002;
  --quit-scrolling-secondary: #FF00F4;
  --quit-scrolling-accent: #FF6B9D;
  --quit-scrolling-light: #FFE0E6;
  --quit-scrolling-dark: #8B0000;
  --quit-scrolling-gradient: linear-gradient(135deg, #FF0002 0%, #FF00F4 100%);
  --wellness-glow: 0 0 20px rgba(255, 107, 157, 0.3);
}

/* Quit Scrolling Hero Section */
.quit-scrolling-hero {
  background: var(--quit-scrolling-gradient);
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

/* Animated rotating gradient background */
.quit-scrolling-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    var(--quit-scrolling-gradient),
    #FF6B9D,
    #FF0080,
    var(--quit-scrolling-gradient)
  );
  animation: rotateGradient 60s linear infinite;
  z-index: 0;
  opacity: 0.8;
}

@keyframes rotateGradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Hero Grid Layout Fix */
.quit-scrolling-hero .grid-layout.desktop-5-column {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

/* Hero Text Column */
.quit-scrolling-hero .grid-layout > div:nth-child(2) {
  order: 1;
}

/* Hero Image Column */
.quit-scrolling-hero .grid-layout > div:nth-child(1) {
  order: 2;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero Image Animation */
.hero-image-animated {
  opacity: 0;
  transform: translateX(-50px);
  animation: fadeInFromLeft 1000ms ease-out forwards;
  animation-delay: 300ms;
}

@keyframes fadeInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero Image Share Widget (matching main page) */
.hero-image-share-widget {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 6px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-image-share-widget:hover {
  opacity: 1;
}

.hero-image-share-widget .elegant-share-button {
  width: 32px !important;
  height: 32px !important;
  border: 2px solid #c0c0c0 !important;
  background: transparent !important;
  color: #c0c0c0 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.hero-image-share-widget .elegant-share-button:hover {
  border-color: #888 !important;
  color: #888 !important;
  background: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Show on parent hover */
.utility-position-relative:hover .hero-image-share-widget {
  opacity: 1;
}

/* Mobile-friendly */
@media (max-width: 768px) {
  .hero-image-share-widget {
    opacity: 0.8;
    bottom: 8px;
    right: 8px;
    padding: 4px;
  }
}

.quit-scrolling-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 2;
}

.quit-scrolling-hero .container {
  position: relative;
  z-index: 3;
}

/* Unique Feature Highlighting */
.unique-feature {
  position: relative;
}

.unique-feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.5em;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.1);
  }
}

/* Deep Work Cards */
.quit-scrolling-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(26, 54, 93, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quit-scrolling-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--quit-scrolling-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.quit-scrolling-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--wellness-glow), 0 20px 40px rgba(26, 54, 93, 0.15);
}

.quit-scrolling-card:hover::before {
  transform: scaleX(1);
}

/* Performance Optimizations */
.lazy-load {
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: opacity;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Deep Work Buttons */
.quit-scrolling-cta {
  background: var(--quit-scrolling-gradient);
  border: none;
  border-radius: 8px;
  color: white;
  padding: 1rem 2rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quit-scrolling-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.quit-scrolling-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--wellness-glow), 0 10px 20px rgba(26, 54, 93, 0.2);
}

.quit-scrolling-cta:hover::before {
  left: 100%;
}

/* Deep Work Typography */
.quit-scrolling-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: var(--quit-scrolling-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quit-scrolling-subtitle {
  font-size: 1.5rem;
  color: var(--quit-scrolling-secondary);
  margin-bottom: 2rem;
  font-weight: 500;
}

/* Hero specific heading styles for better contrast */
.quit-scrolling-hero .h1-heading {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quit-scrolling-hero .h2-heading {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.quit-scrolling-hero .subheading {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Focus Indicators */
.focus-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--quit-scrolling-accent);
  margin-right: 0.5rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(66, 153, 225, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(66, 153, 225, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(66, 153, 225, 0);
  }
}

/* Deep Work Sections */
.quit-scrolling-section {
  padding: 5rem 0;
  position: relative;
}

.quit-scrolling-section.alternate {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* Mobile Optimizations */
@media screen and (max-width: 768px) {
  .quit-scrolling-hero {
    min-height: 60vh;
    padding: 2rem 0;
  }

  .quit-scrolling-hero .grid-layout.desktop-5-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .quit-scrolling-hero .grid-layout > div:nth-child(1) {
    order: 1;
  }

  .quit-scrolling-hero .grid-layout > div:nth-child(2) {
    order: 2;
  }
  
  .quit-scrolling-title {
    font-size: 2.5rem;
  }
  
  .unique-feature {
    padding-left: 1.5rem;
  }
  
  .unique-feature::before {
    font-size: 1.2em;
  }
  
  .quit-scrolling-card {
    padding: 1.5rem;
  }
}

/* Tablet Optimizations */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .quit-scrolling-title {
    font-size: 3rem;
  }
  
  .quit-scrolling-section {
    padding: 4rem 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .quit-scrolling-hero::before {
    background-size: 50px 50px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .unique-feature::before,
  .focus-indicator,
  .lazy-load,
  .hero-image-animated,
  .quit-scrolling-hero::after {
    animation: none;
  }

  .hero-image-animated {
    opacity: 1;
    transform: translateX(0);
  }

  .quit-scrolling-card,
  .quit-scrolling-cta {
    transition: none;
  }

  /* Disable rotating gradient for users who prefer reduced motion */
  .quit-scrolling-hero::after {
    animation: none;
    transform: rotate(0deg);
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .quit-scrolling-card {
    background: linear-gradient(145deg, #1a202c 0%, #2d3748 100%);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
  }
  
  .quit-scrolling-section.alternate {
    background: linear-gradient(180deg, #1a202c 0%, #2d3748 100%);
  }
}

/* Print Styles */
@media print {
  .quit-scrolling-hero {
    background: white !important;
    color: black !important;
    min-height: auto !important;
  }
  
  .unique-feature::before {
    content: "" !important;
  }
  
  .quit-scrolling-cta {
    background: white !important;
    color: black !important;
    border: 2px solid black !important;
  }
}

/* Critical CSS for above-the-fold content */
.critical-quit-scrolling {
  /* Navigation */
  .nav { z-index: 1000; }
  
  /* Hero section essentials */
  .quit-scrolling-hero {
    background: var(--quit-scrolling-gradient);
    color: white;
    min-height: 80vh;
    display: flex;
    align-items: center;
  }
  
  /* Typography essentials */
  .h1-heading { 
    font-size: 3.5rem; 
    font-weight: 700; 
    line-height: 1.1; 
  }
  
  .h2-heading { 
    font-size: 2.5rem; 
    font-weight: 700; 
    line-height: 1.2; 
  }
}

/* Performance: GPU acceleration for animations */
.quit-scrolling-card,
.quit-scrolling-cta,
.unique-feature::before {
  will-change: transform;
  transform: translateZ(0);
}

/* Quit Scrolling Hero CTA Aurora Override */
.button[data-translate="hero.cta_primary"]::before {
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(255, 255, 255, 0.8) 0deg,
    rgba(255, 240, 245, 0.6) 60deg,
    rgba(255, 200, 230, 0.5) 120deg,
    rgba(255, 0, 244, 0.4) 180deg,
    rgba(255, 107, 157, 0.5) 240deg,
    rgba(255, 0, 2, 0.6) 300deg,
    rgba(255, 255, 255, 0.8) 360deg
  ) !important;
}

/* Quit Scrolling Three Color Gradient Box Shadow */
.button[data-translate="hero.cta_primary"] {
  box-shadow:
    0 4px 15px rgba(255, 0, 2, 0.2) !important,
    0 8px 25px rgba(255, 0, 244, 0.15) !important,
    0 12px 35px rgba(255, 107, 157, 0.1) !important;
}

.button[data-translate="hero.cta_primary"]:hover {
  box-shadow:
    0 6px 20px rgba(255, 0, 2, 0.35) !important,
    0 12px 35px rgba(255, 0, 244, 0.25) !important,
    0 18px 50px rgba(255, 107, 157, 0.2) !important;
}

/* Quit Scrolling Download Section Gradient Override */
.section-2 {
  background-image: linear-gradient(187deg, #c0c0c0, #ff00d3) !important;
}
