/* Sections Component Styles - Minimal Design (20% Smaller - Additional 20% reduction) */
.content-section {
  background-color: var(--background-white);
  border-radius: 7.68px;
  padding: 1.28rem;
  margin-bottom: 1.28rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.content-section:target {
  animation: highlight 1.5s ease;
}

@keyframes highlight {
  0% { box-shadow: 0 0 0 4px var(--dentist-light-blue); }
  70% { box-shadow: 0 0 0 4px var(--dentist-light-blue); }
  100% { box-shadow: var(--shadow-sm); }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.96rem;
  padding-bottom: 0.64rem;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 38.4px;
  height: 1px;
  background: var(--gradient-blue);
}

.section-header h2 {
  margin-bottom: 0;
  color: var(--text-charcoal);
  font-size: 1.12rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.48rem;
}

.section-header h2 i {
  color: var(--dentist-orange);
  font-size: 1.152rem;
}

.section-actions {
  display: flex;
  gap: var(--spacing-sm);
}

.btn-icon {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--dentist-blue);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-white);
}

.btn-icon:hover {
  color: var(--dentist-blue);
  background-color: var(--background-light);
  border-color: var(--dentist-blue);
  transform: translateY(-2px);
}

/* Specialty Content Layout */
.specialty-content {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0;
  position: relative;
  width: 100%;
}

.specialty-main-content {
  flex: 1;
  min-width: 0;
  padding: 0;
}

/* Competitive Profile */
.competitive-profile {
  background-color: var(--background-light);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  margin-top: var(--spacing-xl);
  border: 1px solid var(--border-light);
}

.competitive-profile h3 {
  color: var(--dentist-blue);
  margin-bottom: var(--spacing-md);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.stat-card {
  margin-bottom: var(--spacing-md);
}

.stat-title {
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-charcoal);
}

.stat-range {
  margin-bottom: var(--spacing-md);
}

.range-bar {
  height: 8px;
  background-color: var(--background-light);
  border-radius: 4px;
  margin-bottom: var(--spacing-xs);
  overflow: hidden;
}

.range-fill {
  height: 100%;
  background: var(--dentist-blue);
  border-radius: 4px;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-medium);
}

.range-markers {
  position: relative;
  height: 20px;
}

.range-marker {
  position: absolute;
  font-size: 0.75rem;
  color: var(--text-medium);
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Scroll to top button */
.scroll-top-btn {
  position: fixed;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--dentist-blue);
  color: white;
  border: none;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  z-index: 999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.scroll-top-btn:hover {
  transform: translateY(-5px);
  background: #1a7a95;
}

/* Loading indicators */
.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--background-light);
  border-radius: 50%;
  border-top-color: var(--dentist-blue);
  animation: spin 1s infinite linear;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive section styling - Enhanced */
/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
  .content-section {
    padding: var(--spacing-2xl) var(--spacing-xl);
  }
}

/* Desktop (1200px - 1399px) */
/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
  .specialty-main-content {
    flex: 1;
    min-width: 0;
  }
  
  .content-section {
    padding: 1.6rem 2rem;
  }
}

/* Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .specialty-main-content {
    flex: 1;
    min-width: 0;
  }
  
  .content-section {
    padding: 1.28rem 1.6rem;
  }
}

/* Laptop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .specialty-main-content {
    flex: 1;
    min-width: 0;
  }
  
  .content-section {
    padding: 1.28rem 1.28rem;
  }
  
  .section-header h2 {
    font-size: 1.12rem;
  }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  .content-section {
    padding: 1.28rem 1.28rem;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.64rem;
  }
  
  .section-header h2 {
    font-size: 1.12rem;
  }
  
  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .scroll-top-btn {
    width: 50px;
    height: 50px;
    bottom: 0.5rem;
    right: 0.5rem;
  }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
  .content-section {
    padding: 0.96rem;
  }
  
  .section-header {
    margin-bottom: 0.96rem;
    padding-bottom: 0.48rem;
  }
  
  .section-header h2 {
    font-size: 1rem;
  }
  
  .profile-stats {
    grid-template-columns: 1fr;
    gap: 0.96rem;
  }
  
  .scroll-top-btn {
    width: 48px;
    height: 48px;
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 1.125rem;
  }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
  .content-section {
    padding: 0.96rem 0.64rem;
    border-radius: 7.68px;
  }
  
  .section-header {
    margin-bottom: 0.96rem;
    padding-bottom: 0.48rem;
  }
  
  .section-header h2 {
    font-size: 0.95rem;
  }
  
  .section-header h2 i {
    font-size: 1.02rem;
  }
  
  .scroll-top-btn {
    width: 44px;
    height: 44px;
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 1rem;
  }
  
  .btn-icon {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
}
