/* Treatment Detail Page Styles */

/**
 * Single Treatment Page CSS
 * 
 * Description: Styles for individual treatment detail pages
 * Used in: single-treatment.php, archive-treatment.php
 * Dependencies: Tailwind CSS, animations.css
 */

/* Reading Progress Bar */
#reading-progress {
  z-index: 1000;
}

.progress-width-0 {
  width: 0%;
}

/* Treatment Quick Info Cards */
.treatment-info-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.treatment-info-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* Treatment Archive Grid */
.treatment-archive-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.treatment-archive-card:hover {
  transform: translateY(var(--lift-small));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Treatment Content Styling */
.treatment-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Prose improvements for treatment content */
.prose.treatment-prose {
  color: #374151;
  line-height: 1.75;
}

.prose.treatment-prose h2 {
  color: #111827;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose.treatment-prose h3 {
  color: #374151;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose.treatment-prose p {
  margin-bottom: 1.25rem;
}

.prose.treatment-prose ul, 
.prose.treatment-prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose.treatment-prose li {
  margin-bottom: 0.5rem;
}

.prose.treatment-prose strong {
  color: #111827;
  font-weight: 600;
}

/* Treatment Benefits Section */
.treatment-benefits {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 3rem;
}

.treatment-benefits h3 {
  color: #111827;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.treatment-benefits ul {
  list-style: none;
  padding: 0;
}

.treatment-benefits li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: #374151;
}

.treatment-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #059669;
  font-weight: bold;
  font-size: 1.1em;
}

/* Call to Action Sections */
.treatment-cta-section {
  background: linear-gradient(135deg, #5ce1e6 0%, #4f46e5 100%);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  color: white;
  margin-top: 4rem;
}

.treatment-cta-section h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.treatment-cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.treatment-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .treatment-cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* Treatment CTA Buttons */
.treatment-btn-primary {
  background: white;
  color: #5ce1e6;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.treatment-btn-primary:hover {
  background: #f9fafb;
  color: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.treatment-btn-secondary {
  border: 2px solid white;
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.treatment-btn-secondary:hover {
  background: white;
  color: #5ce1e6;
  transform: translateY(-1px);
}

/* Related Treatments Section */
.related-treatments {
  background: #f9fafb;
  padding: 4rem 0;
}

.related-treatments h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 3rem;
}

/* Treatment Archive Page Specific */
.treatment-archive-hero {
  background: linear-gradient(135deg, #f0fdff 0%, #f0f9ff 100%);
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.treatment-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

/* Line clamp utility */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Animation classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .treatment-cta-section {
    padding: 2rem 1.5rem;
  }
  
  .treatment-cta-section h3 {
    font-size: 1.5rem;
  }
  
  .treatment-cta-section p {
    font-size: 1.1rem;
  }
  
  .treatment-benefits {
    padding: 1.5rem;
  }
  
  .prose.treatment-prose {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .treatment-archive-hero {
    padding-top: 5rem;
    padding-bottom: 3rem;
  }
  
  .treatment-archive-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
