/* Nursing Ready — Custom Styles */

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

/* Custom font loading */
body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Gradient backgrounds */
.gradient-hero {
  background: linear-gradient(135deg, #0D9488 0%, #0EA5E9 100%);
}

.gradient-hero-soft {
  background: linear-gradient(135deg, #0D9488 0%, #14B8A6 40%, #0EA5E9 100%);
}

.gradient-cta {
  background: linear-gradient(135deg, #0D9488 0%, #0EA5E9 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #0D9488, #0EA5E9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover effects */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Button hover glow */
.btn-glow {
  transition: all 0.3s ease;
}

.btn-glow:hover {
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
  transform: translateY(-1px);
}

/* Navbar scroll effect */
.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* FAQ accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer.open {
  max-height: 600px;
}

.faq-chevron {
  transition: transform 0.3s ease;
}

.faq-chevron.rotate {
  transform: rotate(180deg);
}

/* Stat counter animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

/* Pulse animation for CTA */
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(13, 148, 136, 0); }
}

.pulse-cta {
  animation: pulse-soft 2.5s infinite;
}

/* Pricing card highlight */
.pricing-highlight {
  position: relative;
}

.pricing-highlight::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #0D9488, #0EA5E9);
  border-radius: 1.1rem;
  z-index: -1;
}

/* Step connector line */
.step-connector {
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #0D9488, #0EA5E9);
  opacity: 0.3;
}

/* Mobile menu */
.mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* Table styles for guides */
.lab-table th {
  background: linear-gradient(135deg, #0D9488, #14B8A6);
  color: white;
}

.lab-table tr:nth-child(even) {
  background-color: #f0fdfa;
}

.lab-table td, .lab-table th {
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
}

/* Testimonial cards */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 16px;
  font-size: 4rem;
  color: #0D9488;
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

/* iPhone mockup placeholder */
.iphone-mockup {
  background: linear-gradient(135deg, #1e293b, #334155);
  border-radius: 2.5rem;
  padding: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.iphone-screen {
  background: linear-gradient(180deg, #0D9488 0%, #0f766e 100%);
  border-radius: 2rem;
  overflow: hidden;
}

/* Content guide styles */
.guide-content h2 {
  color: #0D9488;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ccfbf1;
}

.guide-content h3 {
  color: #134e4a;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.guide-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #374151;
}

.guide-content ul, .guide-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.guide-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: #374151;
}

.guide-content strong {
  color: #0f766e;
}

/* Selection color */
::selection {
  background-color: #ccfbf1;
  color: #0D9488;
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid #0D9488;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== v2 SEO build additions ===== */

/* Author byline (E-E-A-T signal block under guide H1) */
.author-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, #f0fdfa 0%, #f0f9ff 100%);
  border: 1px solid #ccfbf1;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #134e4a;
}
.author-byline .author-avatar {
  width: 2.5rem; height: 2.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0D9488, #0EA5E9);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.85rem;
  flex-shrink: 0;
}
.author-byline .author-meta { line-height: 1.35; }
.author-byline .author-name { font-weight: 600; color: #0f172a; }
.author-byline .author-credentials { color: #475569; font-size: 0.8125rem; }
.author-byline .author-dates { display: block; color: #64748b; font-size: 0.75rem; margin-top: 0.125rem; }

/* Related-content card grid (end-of-article) */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.related-grid a {
  display: block;
  padding: 1rem 1.25rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.related-grid a:hover {
  border-color: #0D9488;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.08);
}
.related-grid a strong { display: block; color: #0D9488; margin-bottom: 0.25rem; }
.related-grid a span { font-size: 0.875rem; color: #64748b; line-height: 1.5; }

/* Calculator form widgets */
.calc-form {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.calc-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.375rem;
}
.calc-form input[type="number"],
.calc-form input[type="text"],
.calc-form select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  background-color: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.calc-form input:focus,
.calc-form select:focus {
  outline: none;
  border-color: #0D9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
  background-color: white;
}
.calc-form .field-help {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.375rem;
}
.calc-form .calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 640px) {
  .calc-form .calc-row { grid-template-columns: 1fr; }
}
.calc-result {
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #0D9488 0%, #0EA5E9 100%);
  color: white;
}
.calc-result .calc-result-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}
.calc-result .calc-result-value {
  font-size: 2.25rem;
  font-weight: 800;
  margin-top: 0.25rem;
  line-height: 1.1;
}
.calc-result .calc-result-detail {
  font-size: 0.875rem;
  opacity: 0.92;
  margin-top: 0.5rem;
  line-height: 1.5;
}
.calc-result.warn {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}
.calc-result.muted {
  background: #f3f4f6;
  color: #374151;
}
.calc-result.muted .calc-result-value { color: #1e293b; }

/* Calculator clinical-context section heading */
.calc-context h2 {
  color: #0D9488;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.calc-context h3 {
  color: #134e4a;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.calc-context p, .calc-context li { line-height: 1.7; color: #374151; }

/* Hub-page card grid (study guides + calculator hubs) */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.hub-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.25rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  height: 100%;
}
.hub-card:hover {
  border-color: #0D9488;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.10);
}
.hub-card .hub-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #0D9488;
  margin-bottom: 0.5rem;
}
.hub-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.hub-card p { color: #64748b; font-size: 0.9rem; line-height: 1.55; flex: 1; }
.hub-card .hub-arrow {
  display: inline-flex;
  align-items: center;
  margin-top: 0.875rem;
  color: #0D9488;
  font-weight: 600;
  font-size: 0.875rem;
}

/* In-article CTA card (app download tied to context) */
.app-cta-card {
  margin: 2.5rem 0;
  padding: 1.75rem;
  background: linear-gradient(135deg, #0D9488 0%, #0EA5E9 100%);
  border-radius: 1rem;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.app-cta-card h3 {
  color: white !important;
  margin: 0 !important;
  font-size: 1.125rem;
  border: none !important;
  padding: 0 !important;
}
.app-cta-card p { color: rgba(255,255,255,0.9); margin: 0; line-height: 1.55; }
.app-cta-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: white;
  color: #0f766e;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  align-self: flex-start;
  transition: transform 0.15s;
}
.app-cta-card a:hover { transform: translateY(-1px); }

/* Differentiator pill row used on home + paywall mirror */
.diff-pills {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}
.diff-pills span {
  padding: 0.375rem 0.875rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 9999px;
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Inline-keyed lab-callout used on lab-values guide */
.lab-callout {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background-color: #fffbeb;
  border-left: 3px solid #f59e0b;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: #92400e;
  line-height: 1.55;
}

/* Compact disclaimer inline */
.fine-print {
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
  line-height: 1.5;
}

/* Print-friendly cheat sheets */
@media print {
  nav, footer, .app-cta-card, .related-grid { display: none !important; }
  body { background: white !important; }
  a { text-decoration: none !important; color: black !important; }
}
