/* ========================================
   FAITH PHARMACY - PREMIUM STYLES
   ======================================== */

:root {
  /* Faith Pharmacy Brand Colors */
  --bg: linear-gradient(180deg, #4A90E2 0%, #003366 100%);
  --card: rgba(255, 255, 255, 0.95);
  --card-glass: rgba(255, 255, 255, 0.1);
  --ink: #003366;
  --muted: #666666;
  --accent: #FF0099;
  --accent-secondary: #3366CC;
  --accent-ink: #ffffff;
  --line: rgba(51, 102, 204, 0.2);
  --soft: rgba(255, 0, 153, 0.1);
  
  /* Enhanced Brand Colors */
  --success: #00CC66;
  --warning: #FF9900;
  --info: #00CCFF;
  --danger: #FF3366;
  
  /* Premium Spacing & Layout */
  --radius: 24px;
  --radius-sm: 16px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  
  /* Luxury Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 24px 96px rgba(0, 0, 0, 0.25);
  
  /* Faith Pharmacy Gradients */
  --gradient-primary: linear-gradient(135deg, #FF0099 0%, #3366CC 100%);
  --gradient-secondary: linear-gradient(135deg, #FF0099 0%, #FF66CC 100%);
  --gradient-bg: radial-gradient(ellipse at center, rgba(74, 144, 226, 0.1) 0%, rgba(0, 51, 102, 0.15) 70%, transparent 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  
  /* Focus & Interactive States */
  --focus: 0 0 0 3px rgba(255, 0, 153, 0.4);
  --toast-bg: rgba(51, 102, 204, 0.95);
  --toast-border: rgba(255, 0, 153, 0.3);
  --toast-ink: #ffffff;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Premium Loading Screen */
body.loading {
  overflow: hidden;
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  font-size: 48px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

.loading-message {
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 30px;
  text-align: center;
  opacity: 1;
  animation: messageFadeIn 1s ease-in-out 0.5s forwards;
}

@keyframes messageFadeIn {
  0% {
    opacity: 0.7;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 0, 153, 0.2);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Single Clean Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  pointer-events: none;
  z-index: -1;
}

/* Floating Particles */
.particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: floatParticle 15s linear infinite;
}

.particle:nth-child(odd) {
  background: var(--accent-secondary);
  animation-duration: 20s;
}

.particle:nth-child(3n) {
  animation-duration: 25s;
}


@keyframes floatParticle {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

.wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  position: relative;
}

.card {
  width: min(1200px, 100%);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
  backdrop-filter: blur(25px);
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  box-shadow: 
    0 32px 128px rgba(0, 0, 0, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  animation: cardEntrance 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, 
    rgba(255, 0, 153, 0.3) 0%, 
    rgba(51, 102, 204, 0.3) 50%, 
    rgba(255, 0, 153, 0.3) 100%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  z-index: -1;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(255, 0, 153, 0.1) 0%, rgba(51, 102, 204, 0.1) 100%);
  border-radius: 0 var(--radius-xl) 0 var(--radius-xl);
  pointer-events: none;
  z-index: 1;
}


@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.6;
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-xl), 0 0 60px rgba(139, 92, 246, 0.4);
}

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

.hero {
  text-align: center;
  margin: 0 0 60px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: heroEntrance 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--accent);
  position: relative;
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes heroEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleGlow {
  0%, 100% {
    filter: drop-shadow(0 4px 8px rgba(255, 0, 153, 0.3));
  }
  50% {
    filter: drop-shadow(0 8px 16px rgba(255, 0, 153, 0.6));
  }
}

.hero h1::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  opacity: 0.6;
}

.hero .line {
  display: inline;
  opacity: 1;
  position: relative;
}

.hero .line:nth-child(2) {
  margin-left: 8px;
}

.tagline {
  margin-top: 40px;
  color: var(--muted);
  font-size: 24px;
  font-weight: 300;
  max-width: 60ch;
  margin-inline: auto;
  line-height: 1.6;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

/* ========================================
   BODY TEXT
   ======================================== */

.message {
  font-size: 22px;
  color: var(--ink);
  margin: 40px auto 30px;
  text-align: center;
  max-width: 70ch;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.01em;
  opacity: 0.95;
}

.reassure {
  font-size: 18px;
  color: var(--muted);
  text-align: center;
  margin: 0 auto 50px;
  max-width: 70ch;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  opacity: 0.9;
}

/* ========================================
   CALL TO ACTION
   ======================================== */

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 50px 0 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: ctaEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

@keyframes ctaEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn:active {
  transform: translateY(2px);
}

.btn:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(139, 92, 246, 0.3);
}

.primary {
  background: var(--gradient-primary);
  color: var(--accent-ink);
  border: none;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.primary:hover {
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}

.secondary {
  background: var(--gradient-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.secondary:hover {
  background: var(--soft);
  border-color: var(--accent);
}

.mono {
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-weight: 500;
}

/* ========================================
   INFO PANELS
   ======================================== */

.grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 60px;
}

.panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  backdrop-filter: blur(25px);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 16px 64px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  animation: panelEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  width: 100%;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, 
    rgba(255, 0, 153, 0.2) 0%, 
    rgba(51, 102, 204, 0.2) 100%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  z-index: -1;
}

.panel::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 0, 153, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.panel:nth-child(1) { animation-delay: 1.2s; }
.panel:nth-child(2) { animation-delay: 1.4s; }
.panel:nth-child(3) { animation-delay: 1.6s; }

@keyframes panelEntrance {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.panel:hover::before {
  transform: scaleX(1);
}

.panel:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(139, 92, 246, 0.4);
}

.panel h2 {
  font-size: 24px;
  margin: 0 0 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.panel p {
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}

/* Panel Headers */
.panel-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.panel-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  color: white;
}

/* Lists */
.change-list, .same-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.change-list li, .same-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink);
  line-height: 1.6;
  position: relative;
  padding-left: 28px;
  font-size: 16px;
}

.change-list li:last-child, .same-list li:last-child {
  border-bottom: none;
}

.change-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 18px;
}

.same-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-weight: bold;
  font-size: 18px;
}

.panel-note {
  background: var(--soft);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent);
  font-style: italic;
  margin: 0;
  font-size: 15px;
  backdrop-filter: blur(10px);
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq details {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
}

.faq details:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.faq details[open] {
  background: var(--soft);
  box-shadow: var(--shadow-lg);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 32px;
  letter-spacing: -0.01em;
}

.faq summary::after {
  content: '▼';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  font-size: 14px;
  color: var(--accent);
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq details p {
  margin: 16px 0 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}

/* ========================================
   FOOTER & TOAST
   ======================================== */

footer {
  color: var(--muted);
  font-size: 16px;
  text-align: center;
  margin-top: 60px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: footerEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.8s forwards;
}

@keyframes footerEntrance {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progress Indicator */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 1000;
  transition: width 0.3s ease;
}

.toast {
  position: fixed;
  inset: auto 32px 32px auto;
  background: var(--toast-bg);
  color: var(--toast-ink);
  border: 1px solid var(--toast-border);
  border-radius: var(--radius);
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

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

@media (max-width: 1024px) {
  .card {
    padding: 60px 40px;
  }
  
  .hero h1 {
    font-size: clamp(48px, 7vw, 80px);
  }
}

@media (max-width: 768px) {
  .wrap {
    padding: 40px 20px;
  }
  
  .card {
    padding: 50px 32px;
  }
  
  .hero h1 {
    font-size: clamp(42px, 8vw, 64px);
  }
  
  .tagline {
    font-size: 20px;
  }
  
  .message {
    font-size: 18px;
  }
  
  .reassure {
    font-size: 16px;
  }
  
  .cta {
    gap: 20px;
  }
  
  .btn {
    padding: 16px 24px;
    font-size: 15px;
  }
  
  .grid {
    gap: 24px;
  }
  
  .panel {
    padding: 32px 24px;
  }
  
  .panel-header {
    gap: 12px;
  }
  
  .panel-icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 32px 16px;
  }
  
  .card {
    padding: 40px 24px;
  }
  
  .hero {
    margin: 0 0 40px;
  }
  
  .hero h1 {
    font-size: clamp(36px, 10vw, 56px);
  }
  
  .tagline {
    font-size: 18px;
    margin-top: 24px;
  }
  
  .message {
    font-size: 16px;
    margin: 24px auto 20px;
  }
  
  .reassure {
    font-size: 15px;
    margin: 0 auto 32px;
  }
  
  .cta {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .grid {
    gap: 20px;
  }
  
  .panel {
    padding: 24px 20px;
  }
  
  .faq details {
    padding: 20px 24px;
  }
}

/* ========================================
   ACCESSIBILITY & REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .card:hover {
    transform: none;
  }
  
  .panel:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  .faq details:hover {
    transform: none;
  }
}
