/* Pharmacy Theme Overrides */

/* Pharmacy-specific color overrides */
.pharmacy-theme {
  --primary-blue: var(--pharmacy-primary);
  --primary-blue-light: var(--pharmacy-primary-light);
  --primary-blue-dark: var(--pharmacy-primary-dark);
}

/* ===== FULL PAGE GRAINY GRADIENT ===== */

/* Apply grainy gradient to entire page */
.pharmacy-theme {
  background: #001a12; /* Dark pharmacy green-black base */
  min-height: 100vh;
  position: relative;
}

/* Grainy background container - fixed to viewport */
.grainy-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Performance: promote to own layer */
  will-change: transform;
  transform: translateZ(0);
}

/* Blurred gradient blobs - optimized for performance */
.gradient-blob {
  position: absolute;
  border-radius: 50%;
  /* Reduced blur for better performance (was 120px) */
  filter: blur(80px);
  /* GPU acceleration */
  will-change: transform;
  transform: translateZ(0);
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: var(--pharmacy-primary); /* #00875A */
  top: -10%;
  left: -15%;
  opacity: 0.5;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--pharmacy-secondary); /* #0052CC */
  bottom: 10%;
  right: -10%;
  opacity: 0.4;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: var(--pharmacy-accent); /* #00B8D9 */
  top: 50%;
  left: 40%;
  opacity: 0.35;
}

/* SVG Noise texture overlay */
.noise-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  /* Performance optimization */
  will-change: transform;
  transform: translateZ(0);
}

/* ===== GLOBAL LIGHT TEXT FOR DARK BG ===== */

.pharmacy-theme {
  color: var(--white);
}

.pharmacy-theme .heading-1,
.pharmacy-theme .heading-2,
.pharmacy-theme .heading-3 {
  color: var(--white);
}

.pharmacy-theme .body-text {
  color: rgba(255, 255, 255, 0.85);
}

/* ===== HEADER & NAVIGATION ===== */

.pharmacy-theme header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 26, 18, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pharmacy-theme .navbar {
  background: transparent;
}

.pharmacy-theme .logo {
  color: var(--white);
}

.pharmacy-theme .nav-links a {
  color: rgba(255, 255, 255, 0.8);
}

.pharmacy-theme .nav-links a:hover,
.pharmacy-theme .nav-links a.active {
  color: var(--white);
}

.pharmacy-theme .language-switcher button {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.3);
}

.pharmacy-theme .language-switcher button.active {
  background: var(--pharmacy-primary);
  border-color: var(--pharmacy-primary);
  color: var(--white);
}

.pharmacy-theme .nav-actions .btn-primary {
  background: var(--pharmacy-primary-light);
}

.pharmacy-theme .nav-actions .btn-primary:hover {
  background: var(--pharmacy-primary);
}

/* ===== HERO SECTION ===== */

.pharmacy-hero {
  position: relative;
  z-index: 1;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.pharmacy-hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.pharmacy-hero .heading-1 {
  background: none;
  -webkit-text-fill-color: var(--white);
  color: var(--white);
}

/* Glassmorphism badge */
.pharmacy-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
}

/* Glassmorphism stat cards in hero */
.pharmacy-hero .cards-row {
  position: relative;
  z-index: 1;
}

.pharmacy-hero .cards-row .card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.pharmacy-hero .cards-row .card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pharmacy-hero .stat-value,
.pharmacy-hero .stat-label {
  color: var(--white);
}

/* Hero buttons */
.pharmacy-hero .btn-primary {
  background: var(--pharmacy-primary-light);
  color: var(--white);
}

.pharmacy-hero .btn-primary:hover {
  background: var(--pharmacy-primary);
}

.pharmacy-hero .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.pharmacy-hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* Hero actions center alignment */
.pharmacy-hero .hero-actions {
  justify-content: center;
}

/* Hero image */
.pharmacy-hero .hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-pharmacy-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: block;
}

/* Desktop: larger, more prominent image */
@media (min-width: 769px) {
  .pharmacy-hero .hero-image {
    max-width: 1400px;
    padding: 0 40px;
  }

  .hero-pharmacy-image {
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  }
}

/* ===== ALL CONTENT SECTIONS ===== */

.pharmacy-theme main {
  position: relative;
  z-index: 1;
}

.pharmacy-theme .section {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* Remove alternating section backgrounds */
.pharmacy-theme .section-light {
  background: transparent;
}

/* Section headers */
.pharmacy-theme .section-header h2 {
  color: var(--white);
}

.pharmacy-theme .section-header .body-text {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== GLASSMORPHISM CARDS ===== */

.pharmacy-theme .card {
  background: rgba(255, 255, 255, 0.08);
  /* Removed backdrop-filter from cards for performance - not needed with solid bg */
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pharmacy-theme .card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pharmacy-theme .card .heading-3 {
  color: var(--white);
}

.pharmacy-theme .card .body-text {
  color: rgba(255, 255, 255, 0.8);
}

/* Card accent borders - subtle glow effect */
#pain-points-items .card {
  border-top: 2px solid rgba(239, 68, 68, 0.6); /* Subtle red */
}

#solution-items .card {
  border-top: 2px solid rgba(0, 135, 90, 0.8); /* Pharmacy green */
}

#benefits-items .card {
  border-top: 2px solid rgba(0, 82, 204, 0.8); /* Pharmacy blue */
}

/* Benefits metrics cards */
.pharmacy-theme .value-metrics .card {
  background: rgba(0, 135, 90, 0.3);
  border: 1px solid rgba(0, 135, 90, 0.5);
}

.pharmacy-theme .value-metrics .stat-value {
  color: var(--white);
  font-size: 2.5rem;
}

.pharmacy-theme .value-metrics .stat-label {
  color: rgba(255, 255, 255, 0.9);
}

/* ===== HOW IT WORKS ===== */

.pharmacy-theme .how-steps li::before {
  background: var(--pharmacy-primary-light);
}

.pharmacy-theme .how-steps li {
  color: var(--white);
}

.pharmacy-theme .how-steps strong {
  color: var(--white);
}

.pharmacy-theme .how-steps .body-text {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== CALENDAR SECTION ===== */

.calendar-container {
  max-width: 900px;
  margin: 0 auto;
}

.calendar-embed {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.calendar-embed iframe {
  display: block;
  min-height: 500px;
}

.calendar-fallback {
  text-align: center;
  padding: 16px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-600);
  background: rgba(255, 255, 255, 0.9);
}

.calendar-fallback a {
  color: var(--pharmacy-primary);
  text-decoration: underline;
}

/* ===== CONTACT FORM ===== */

.pharmacy-theme .contact-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid var(--pharmacy-primary-light);
}

.pharmacy-theme .form-label {
  color: var(--white);
}

.pharmacy-theme .form-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.pharmacy-theme .form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.pharmacy-theme .form-input:focus {
  border-color: var(--pharmacy-primary-light);
  outline: 2px solid rgba(54, 179, 126, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.pharmacy-theme .contact-form .btn-primary {
  background: var(--pharmacy-primary-light);
  width: 100%;
}

.pharmacy-theme .contact-form .btn-primary:hover {
  background: var(--pharmacy-primary);
}

.form-consent {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

/* ===== TOAST ===== */

.pharmacy-theme .toast {
  background: linear-gradient(135deg, var(--pharmacy-primary) 0%, var(--pharmacy-primary-dark) 100%);
}

/* ===== FOOTER ===== */

.pharmacy-theme .footer {
  position: relative;
  z-index: 1;
  background: rgba(0, 26, 18, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pharmacy-theme .footer-content {
  color: var(--white);
}

.pharmacy-theme .footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.pharmacy-theme .footer-links a:hover {
  color: var(--white);
}

.pharmacy-theme .footer-rights {
  color: rgba(255, 255, 255, 0.5);
}

/* ===== BUTTONS (GLOBAL) ===== */

.pharmacy-theme .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.pharmacy-theme .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .pharmacy-hero .heading-1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  /* Smaller blobs on mobile */
  .blob-1 {
    width: 400px;
    height: 400px;
  }

  .blob-2 {
    width: 350px;
    height: 350px;
  }

  .blob-3 {
    width: 300px;
    height: 300px;
  }

  .calendar-embed iframe {
    min-height: 400px;
  }

  .pharmacy-theme .value-metrics .stat-value {
    font-size: 2rem;
  }
}

/* ===== ACCESSIBILITY ===== */

.pharmacy-theme .btn:focus-visible {
  outline: 3px solid rgba(54, 179, 126, 0.6);
  outline-offset: 2px;
}

.pharmacy-theme .language-switcher button:focus-visible {
  outline: 3px solid rgba(54, 179, 126, 0.6);
}

/* ===== PRINT STYLES ===== */

@media print {
  .pharmacy-theme {
    background: var(--white);
    color: var(--text-primary);
  }

  .grainy-bg {
    display: none;
  }

  .pharmacy-theme .heading-1,
  .pharmacy-theme .heading-2,
  .pharmacy-theme .heading-3,
  .pharmacy-theme .body-text {
    color: var(--text-primary);
  }

  .pharmacy-theme .card {
    background: var(--white);
    border: 1px solid var(--gray-200);
  }

  .calendar-container {
    display: none;
  }

  .btn {
    display: none;
  }
}
