/* Welprex Landing Page Styles */

:root {
  --bg: #f8fdf4;         /* Fresh morning light background */
  --fg: #2d4a3a;         /* Deep forest green text */
  --muted: #6b8e6b;      /* Muted sage green */
  --primary: #ff9500;    /* Golden sunrise orange */
  --accent: #4caf50;     /* Fresh vibrant green */
  --secondary: #ffc107;  /* Warm golden yellow */
  --card-bg: rgba(255,255,255,0.8);
  --card-border: rgba(76, 175, 80, 0.15);
  --navbar-bg: rgba(248, 253, 244, 0.95);
  --gradient-sunrise: linear-gradient(135deg, #ff9500 0%, #ffc107 50%, #4caf50 100%);
  --gradient-morning: linear-gradient(135deg, #f8fdf4 0%, rgba(76, 175, 80, 0.05) 100%);
}

/* Base Styles */
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

.brand-gradient {
  background: #cc1406;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* Fallback for browsers that don't support background-clip */
}

.section-muted {
  color: var(--muted);
}

/* Navigation */
.navbar {
  background: var(--navbar-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--card-border);
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
}

/* Hero Section */
.hero {
  padding-top: 6rem;
  padding-bottom: 4rem;
  background: var(--gradient-morning);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center top, rgba(255, 149, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Cards */
.card-glass {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Buttons */
.btn-primary {
  background-color: var(--accent);
  border: none;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #45a049;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-outline-primary {
  color: var(--accent);
  border: 2px solid var(--accent);
  background: transparent;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* Sections */
.bg-light {
  background: linear-gradient(180deg, rgba(248, 253, 244, 0.9) 0%, rgba(76, 175, 80, 0.05) 100%) !important;
}

/* Step number circles */
.bg-primary.rounded-circle {
  background-color: var(--accent) !important;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* Accordion */
.accordion-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  margin-bottom: 0.5rem;
  border-radius: 0.75rem !important;
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.1);
}

.accordion-button {
  background: transparent;
  color: var(--fg);
  font-weight: 500;
  border-radius: 0.75rem !important;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.1) 0%, rgba(76, 175, 80, 0.1) 100%);
  color: var(--fg);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 149, 0, 0.25);
}

/* Alert */
.alert-warning {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(76, 175, 80, 0.05) 100%);
  border: 1px solid rgba(255, 193, 7, 0.4);
  border-radius: 0.75rem;
  color: var(--fg);
  box-shadow: 0 2px 10px rgba(255, 193, 7, 0.1);
}

/* Footer */
footer {
  background-color: #2c2c2c !important;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.accordion-button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Mobile Optimizations */
@media (max-width: 576px) {
  .hero {
    padding-top: 5.25rem;
    padding-bottom: 3rem;
  }
  
  h1.display-5 {
    font-size: 1.9rem;
    line-height: 1.3;
  }
  
  .btn-lg {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .display-6 {
    font-size: 1.5rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .mobile-frame {
    max-width: 280px;
    border-width: 6px;
    padding: 8px;
  }
  
  .mobile-frame::before {
    width: 100px;
    height: 24px;
  }
  
  .browser-frame {
    max-width: 100%;
  }
  
  .screenshot-wrapper {
    padding: 1rem 0;
  }
  
  .screenshot-caption {
    font-size: 0.9rem;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero .lead {
    font-size: 1rem;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --bg: #ffffff;
    --fg: #000000;
    --muted: #333333;
    --primary: #e6850e;
    --accent: #2e7d32;
    --gradient-sunrise: linear-gradient(135deg, #e6850e 0%, #f57c00 50%, #2e7d32 100%);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .fade-in-up {
    animation: none;
  }
  
  .btn {
    transition: none;
  }
}

/* Screenshot Section */
.screenshot-wrapper {
  padding: 2rem 0;
}

.screenshot-caption {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.device-frame {
  position: relative;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.mobile-frame {
  max-width: 380px;
  border-radius: 36px;
  padding: 12px;
  border: 8px solid #1a1a1a;
  background: #1a1a1a;
}

.mobile-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  z-index: 1;
}

.mobile-frame img {
  border-radius: 28px;
  display: block;
  width: 100%;
  height: auto;
}

.browser-frame {
  max-width: 900px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.browser-frame::before {
  content: '';
  display: block;
  height: 36px;
  background: linear-gradient(to bottom, #e8e8e8 0%, #d4d4d4 100%);
  border-bottom: 1px solid #c0c0c0;
  position: relative;
}

.browser-frame::after {
  content: '●●●';
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #999;
}

.browser-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-badge {
  padding: 1rem;
}

.feature-badge i {
  display: block;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(76, 175, 80, 0.8);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  padding: 0.75rem;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: var(--accent);
}

.carousel-indicators button {
  background-color: rgba(76, 175, 80, 0.5);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
}

.carousel-indicators button.active {
  background-color: var(--accent);
}

/* Celebrity Card Images */
.celebrity-card img {
  max-width: 130px !important;
  max-height: 175px !important;
  width: 130px;
  height: 175px;
  object-fit: cover;
  object-position: center;
}

.celebrity-card .col-auto {
  flex: 0 0 auto;
  width: auto;
}

/* Celebrity Card Styles */
.celebrity-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.celebrity-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

/* Remove link underlines on celebrity cards */
a:has(.celebrity-card) {
  text-decoration: none;
  color: inherit;
}

a:has(.celebrity-card):hover {
  text-decoration: none;
  color: inherit;
}

/* Print styles */
@media print {
  .navbar,
  footer,
  .btn {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}
