/* landing.css - Anion Gap Calculator Custom Styles (Lighter Vibrant Purple Theme) */

:root {
  --primary-purple: #8b5cf6;
  --primary-gradient: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 50%, #a855f7 100%);
  --secondary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --card-shadow: 0 20px 40px rgba(109, 40, 217, 0.1);
  --accent-color: #f59e0b;
}

/* Header Topbar Fix */
.header .topbar {
  background-color: #6d28d9 !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.header .topbar a {
  color: #ffffff !important;
  text-decoration: none;
}

.header .topbar i {
  color: #ffffff !important;
}

/* Hero Section Formatting Fix */
.calc-hero-section {
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #9333ea 100%);
  color: #ffffff !important;
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
}

.calc-hero-section h1 {
  color: #ffffff !important;
  font-weight: 800;
  margin-top: 10px;
  letter-spacing: -0.02em;
}

.calc-hero-section p {
  color: rgba(255, 255, 255, 0.95) !important;
}

.calc-hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(216, 180, 254, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Open-Design Glassmorphic Rating Pill */
.hero-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 22px;
  border-radius: 50px;
  margin-top: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-rating-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.hero-rating-pill .stars-group {
  display: inline-flex;
  align-items: center;
}

.hero-rating-pill .stars-group i {
  color: #fbbf24;
  font-size: 1.05rem;
  margin-right: 3px;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

.hero-rating-pill .rating-score {
  font-weight: 700;
  color: #ffffff;
}

.hero-rating-pill .rating-max {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.hero-rating-pill .rating-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.3);
  display: inline-block;
}

.hero-rating-pill .rating-count {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Calculator Form Card */
.calc-card-main {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid #eef2ff;
  padding: 32px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.form-label-custom {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.input-custom-group .form-control,
.input-custom-group .form-select {
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}

.input-custom-group .form-control:focus,
.input-custom-group .form-select:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.preset-btn-pill {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.preset-btn-pill:hover {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
}

.btn-calculate-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  width: 100%;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.25);
  transition: all 0.25s ease;
}

.btn-calculate-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.35);
  color: #ffffff;
}

.calc-results-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
}

.stat-callout-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  height: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.stat-callout-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: #1e1b4b;
  line-height: 1.2;
}

.stat-callout-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 4px;
}

/* Educational Content Styling */
.educational-content {
  padding: 60px 0;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.8;
}

.educational-content h2 {
  font-weight: 700;
  color: #0f172a;
  margin-top: 48px;
  margin-bottom: 20px;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.educational-content h3 {
  font-weight: 600;
  color: #1e293b;
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.educational-content blockquote {
  background: #f0f9ff;
  border-left: 4px solid #0284c7;
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #0c4a6e;
}

.educational-content table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
}

.educational-content th {
  background: #5b21b6;
  color: #ffffff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.educational-content td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.educational-content tr:nth-child(even) td {
  background: #f8fafc;
}
