/* ==========================================================================
   FEATURE PAGE SHARED STYLES
   Pool Dial - Feature Page Component Library
   Based on homepage/resources design patterns and brand guidelines v2.0
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. FEATURE HERO SECTION
   Pool blue gradient header with icon badge and centered white text
   ----------------------------------------------------------------------------- */

.feature-hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #0c3a74 0%, #1a5fb4 100%);
  position: relative;
  overflow: hidden;
}

.feature-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle 400px at 10% 20%, rgba(0, 191, 166, 0.15) 0%, transparent 70%),
    radial-gradient(circle 300px at 90% 80%, rgba(0, 191, 166, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.feature-hero .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

.feature-hero-icon {
  width: 88px;
  height: 88px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  backdrop-filter: blur(8px);
}

.feature-hero-icon svg {
  width: 44px;
  height: 44px;
  color: white;
  stroke-width: 1.5;
}

.feature-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
  letter-spacing: -0.02em;
}

.feature-hero .hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.feature-hero .cta-button {
  background: var(--color-coral-500);
  color: white;
  padding: 16px 36px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 106, 61, 0.3);
}

.feature-hero .cta-button:hover {
  background: var(--color-coral-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 106, 61, 0.4);
}

/* -----------------------------------------------------------------------------
   2. BENEFITS SECTION
   2-column grid with icon cards, pool-50 backgrounds, sharp corners
   ----------------------------------------------------------------------------- */

.feature-benefits {
  padding: 80px 0;
  background:
    radial-gradient(circle at top left, rgba(214, 233, 255, 0.55), rgba(255, 255, 255, 0.7)),
    var(--color-white);
}

.feature-benefits .container {
  max-width: 1000px;
}

.feature-benefits .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.feature-benefits h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-ink);
}

.feature-benefits .section-subtitle {
  color: var(--color-slate-600);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.benefit-card {
  background-color: var(--color-pool-50, #E6F2FF);
  border: 2px solid var(--color-pool-500);
  border-radius: 0;
  padding: 28px;
  display: flex;
  gap: 20px;
  transition: all 0.2s ease;
}

.benefit-card:hover {
  background-color: var(--color-pool-100, #D6E9FF);
  border-color: var(--color-pool-700);
  box-shadow: 0 8px 24px rgba(31, 122, 224, 0.15);
  transform: translateY(-2px);
}

.benefit-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--color-pool-500), var(--color-pool-700));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(31, 122, 224, 0.25);
}

.benefit-icon svg {
  width: 26px;
  height: 26px;
  color: white;
  stroke-width: 2;
}

.benefit-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-pool-700);
}

.benefit-content p {
  color: var(--color-slate-700);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* -----------------------------------------------------------------------------
   3. SCREENSHOT SECTION
   Placeholder area for product screenshots
   ----------------------------------------------------------------------------- */

.feature-screenshot {
  padding: 80px 0;
  background: var(--color-slate-100, #F1F5F9);
}

.feature-screenshot .container {
  max-width: 1100px;
}

.feature-screenshot h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-pool-700);
  margin-bottom: 12px;
  text-align: center;
}

.feature-screenshot .section-subtitle {
  color: var(--color-slate-600);
  text-align: center;
  margin-bottom: 40px;
}

.screenshot-container {
  background: white;
  border: 2px solid var(--color-slate-200);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(12, 58, 116, 0.08);
  overflow: hidden;
}

.screenshot-placeholder {
  background: linear-gradient(135deg, var(--color-slate-100), var(--color-slate-200));
  border-radius: 8px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-500);
  font-size: 1rem;
}

.screenshot-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.screenshot-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* -----------------------------------------------------------------------------
   4. FEATURE DETAILS SECTION
   Section with 3px bottom border title, elevated detail cards
   ----------------------------------------------------------------------------- */

.feature-details {
  padding: 80px 0;
  background:
    radial-gradient(circle 350px at 5% 20%, rgba(31, 122, 224, 0.08) 0%, transparent 60%),
    radial-gradient(circle 400px at 95% 80%, rgba(31, 122, 224, 0.06) 0%, transparent 60%),
    white;
}

.feature-details .container {
  max-width: 900px;
}

.feature-details .section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-pool-700);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--color-pool-500);
}

.details-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(241,245,249,0.95));
  border: 1px solid rgba(203, 213, 225, 0.6);
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(12, 58, 116, 0.04);
  transition: all 0.2s ease;
}

.detail-item:hover {
  box-shadow: 0 8px 24px rgba(12, 58, 116, 0.1);
  transform: translateY(-2px);
  border-color: rgba(125, 181, 246, 0.5);
}

.detail-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--color-pool-500), var(--color-pool-700));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(31, 122, 224, 0.2);
}

.detail-icon svg {
  width: 26px;
  height: 26px;
  color: white;
  stroke-width: 2;
}

.detail-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-ink);
}

.detail-content p {
  color: var(--color-slate-700);
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* -----------------------------------------------------------------------------
   5. FEATURE CTA SECTION
   Elevated CTA box on dark gradient background
   ----------------------------------------------------------------------------- */

.feature-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #0c3a74 0%, #1a5fb4 100%);
}

.feature-cta .container {
  max-width: 700px;
}

.feature-cta-box {
  background: white;
  border: 3px solid var(--color-pool-300, #7DB5F6);
  border-bottom: 6px solid var(--color-aqua-500, #00BFA6);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.1);
}

.feature-cta-box h2 {
  font-family: var(--font-display);
  color: var(--color-pool-700);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.feature-cta-box p {
  color: var(--color-slate-600);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.feature-cta-box .cta-button {
  background: var(--color-coral-500);
  color: white;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 106, 61, 0.3);
}

.feature-cta-box .cta-button:hover {
  background: var(--color-coral-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 106, 61, 0.4);
}

/* -----------------------------------------------------------------------------
   6. RELATED FEATURES SECTION
   Cross-linking to other features
   ----------------------------------------------------------------------------- */

.related-features {
  padding: 60px 0;
  background: var(--color-slate-100, #F1F5F9);
}

.related-features .container {
  max-width: 900px;
}

.related-features h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-slate-700);
  text-align: center;
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  background: white;
  border: 2px solid var(--color-slate-200);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.related-card:hover {
  border-color: var(--color-pool-500);
  box-shadow: 0 4px 12px rgba(31, 122, 224, 0.1);
  transform: translateY(-2px);
}

.related-card svg {
  width: 32px;
  height: 32px;
  color: var(--color-pool-500);
  margin-bottom: 8px;
}

.related-card span {
  display: block;
  font-weight: 600;
  color: var(--color-ink);
  font-size: 0.95rem;
}

/* -----------------------------------------------------------------------------
   7. FEATURE-SPECIFIC THEMING
   Unique gradients and accents for each feature
   ----------------------------------------------------------------------------- */

/* AI Receptionist - Tech/AI feel with aqua accent */
[data-feature="ai-receptionist"] .feature-hero {
  background: linear-gradient(135deg, #0c3a74 0%, #1663B9 50%, #00BFA6 100%);
}

[data-feature="ai-receptionist"] .benefit-icon,
[data-feature="ai-receptionist"] .detail-icon {
  background: linear-gradient(135deg, #00BFA6, #029C88);
}

/* Billing - Professional trust colors */
[data-feature="billing"] .feature-hero {
  background: linear-gradient(135deg, #0c3a74 0%, #1663B9 100%);
}

/* Customers - Warm, people-focused */
[data-feature="customers"] .feature-hero {
  background: linear-gradient(145deg, #0c3a74 0%, #1a5fb4 70%, #00BFA6 100%);
}

/* Mobile App - Modern, dynamic */
[data-feature="mobile-app"] .feature-hero {
  background: linear-gradient(120deg, #0c3a74 0%, #1F7AE0 50%, #00BFA6 100%);
}

/* Routes - Map/location inspired */
[data-feature="routes"] .feature-hero {
  background: linear-gradient(160deg, #0c3a74 0%, #1663B9 60%, #029C88 100%);
}

/* Work Orders - Organized, structured */
[data-feature="work-orders"] .feature-hero {
  background: linear-gradient(135deg, #0C3A74 0%, #1663B9 100%);
}

/* -----------------------------------------------------------------------------
   8. RESPONSIVE BREAKPOINTS
   ----------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .feature-hero {
    padding: 60px 0 48px;
  }

  .feature-hero h1 {
    font-size: 1.8rem;
  }

  .feature-hero-icon {
    width: 72px;
    height: 72px;
  }

  .feature-hero-icon svg {
    width: 36px;
    height: 36px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    flex-direction: column;
    text-align: center;
  }

  .benefit-icon {
    margin: 0 auto 16px;
  }

  .detail-item {
    flex-direction: column;
  }

  .detail-icon {
    margin-bottom: 12px;
  }

  .feature-cta-box {
    padding: 36px 24px;
  }

  .feature-cta-box h2 {
    font-size: 1.5rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .screenshot-placeholder {
    min-height: 250px;
  }
}

@media (max-width: 480px) {
  .feature-hero {
    padding: 48px 0 40px;
  }

  .feature-hero h1 {
    font-size: 1.5rem;
  }

  .feature-hero .hero-subtitle {
    font-size: 1rem;
  }

  .feature-benefits,
  .feature-details,
  .feature-screenshot,
  .feature-cta {
    padding: 60px 0;
  }

  .benefit-card,
  .detail-item {
    padding: 20px;
  }
}

/* -----------------------------------------------------------------------------
   9. AUDIO DEMO SECTION (AI Receptionist)
   ----------------------------------------------------------------------------- */

.audio-demo-section {
  background: linear-gradient(135deg, #0c3a74 0%, #1a5fb4 100%);
}

.audio-demo-section h2 {
  color: white;
}

.audio-demo-section .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.audio-demo-container {
  max-width: 700px;
  margin: 0 auto;
}

.audio-demo-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.call-info {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-slate-200, #CBD5E1);
}

.call-type {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-pool-700, #15599f);
  font-weight: 600;
  font-size: 1rem;
}

.call-type svg {
  width: 24px;
  height: 24px;
  color: var(--color-aqua-500, #00BFA6);
}

.audio-player-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-slate-100, #F1F5F9);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.audio-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-pool-500, #016ec3), var(--color-pool-700, #15599f));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(1, 110, 195, 0.3);
}

.audio-play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(1, 110, 195, 0.4);
}

.audio-play-btn svg {
  width: 24px;
  height: 24px;
  color: white;
}

.audio-progress-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-time {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-slate-600, #64748B);
  min-width: 40px;
}

.audio-time.current-time {
  text-align: right;
}

.audio-slider {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--color-slate-300, #CBD5E1);
  border-radius: 3px;
  cursor: pointer;
}

.audio-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-pool-500, #016ec3);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(1, 110, 195, 0.3);
}

.audio-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-pool-500, #016ec3);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(1, 110, 195, 0.3);
}

.call-transcript {
  background: var(--color-slate-50, #F8FAFC);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--color-slate-200, #CBD5E1);
}

.transcript-line {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.transcript-line:last-child {
  margin-bottom: 0;
}

.transcript-line.ai {
  background: linear-gradient(135deg, rgba(0, 191, 166, 0.1), rgba(0, 191, 166, 0.05));
  border-left: 3px solid var(--color-aqua-500, #00BFA6);
}

.transcript-line.caller {
  background: linear-gradient(135deg, rgba(1, 110, 195, 0.1), rgba(1, 110, 195, 0.05));
  border-left: 3px solid var(--color-pool-500, #016ec3);
}

.transcript-line .speaker {
  font-weight: 600;
  margin-right: 8px;
}

.transcript-line.ai .speaker {
  color: var(--color-aqua-700, #029C88);
}

.transcript-line.caller .speaker {
  color: var(--color-pool-700, #15599f);
}

@media (max-width: 768px) {
  .audio-demo-card {
    padding: 24px;
  }

  .audio-player-wrapper {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .audio-progress-wrapper {
    width: 100%;
  }

  .call-type {
    font-size: 0.9rem;
  }

  .call-type svg {
    width: 20px;
    height: 20px;
  }
}
