/* Modern Pages Common Styles - Shared across pages */

/* ========================================
   MODERN HERO SECTION
   Use this section to change hero height/padding across ALL templates
   ======================================== */
.modern-page-hero,
.modern-services-hero,
.modern-products-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #ffffff 100%);
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
  min-height: 200px; /* Minimum height for consistency */
}

.modern-page-hero::before,
.modern-services-hero::before,
.modern-products-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 50%, rgba(240, 147, 251, 0.05) 100%);
  pointer-events: none;
}

.modern-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.modern-page-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 50px;
  color: #667eea;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.modern-page-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.modern-page-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Larger title for products page */
.modern-products-hero .modern-page-title {
  font-size: 3rem;
}

.modern-products-hero .modern-page-subtitle {
  font-size: 1.15rem;
  max-width: 600px;
}

.modern-products-hero {
  padding: 100px 0 80px;
}

/* Dark Hero Theme for Products Page */
.modern-products-hero.dark-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.modern-products-hero.dark-hero::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.08) 50%, rgba(6, 182, 212, 0.1) 100%);
}

.modern-products-hero.dark-hero .modern-page-title {
  color: #f8fafc;
}

.modern-products-hero.dark-hero .modern-page-subtitle {
  color: #94a3b8;
}

/* Centered Search Container for Products */
.products-search-centered {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  position: relative;
}

.products-search-centered .desktop-search-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.products-search-centered .desktop-search-box:hover,
.products-search-centered .desktop-search-box:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 4px 30px rgba(59, 130, 246, 0.3);
}

.products-search-centered .desktop-search-box i {
  color: #94a3b8;
  font-size: 1.1rem;
}

.products-search-centered .desktop-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: #f8fafc;
  outline: none;
}

.products-search-centered .desktop-search-input::placeholder {
  color: #64748b;
}

.products-search-centered .search-kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: monospace;
  color: #94a3b8;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.products-search-centered .desktop-search-results {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
}

/* ========================================
   FEATURE AREA SECTION
   Use this section to change feature area styling across ALL templates
   ======================================== */
.feature-area {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-area .background-shape {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.09);
  transform: rotate(-30deg);
  top: -300px;
  left: -250px;
  z-index: -5;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
  .modern-page-title {
    font-size: 2rem;
  }
  
  .modern-page-subtitle {
    font-size: 1rem;
  }
  
  .modern-products-hero .modern-page-title {
    font-size: 2rem;
  }
  
  .modern-page-hero,
  .modern-services-hero,
  .modern-products-hero {
    padding: 60px 0 40px;
    min-height: 160px;
  }
  
  /* Products search responsive */
  .products-search-centered {
    max-width: 100%;
    padding: 0 15px;
    margin-bottom: 1.5rem;
  }
  
  .products-search-centered .desktop-search-box {
    padding: 12px 18px;
  }
}

@media (min-width: 992px) {
  .feature-area .background-shape {
    width: 1200px;
    height: 1200px;
    top: -600px;
    left: -500px;
  }
}
