/* =========================================================
   MEDICAL UNITS DETAIL PAGE STYLES
   ========================================================= */

/* =========================================================
   HERO SECTION
   ========================================================= */
.mu-hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 2rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.mu-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(40px);
}

.mu-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.mu-back:hover {
  color: white;
}

.mu-hero-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.mu-hero-icon {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.mu-hero-info {
  flex: 1;
}

.mu-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.mu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.mu-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  opacity: 0.9;
}

.mu-meta-item i {
  font-size: 1rem;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */
.mu-content {
  padding: 3rem 0;
  background: #f9fafb;
}

.mu-content-inner {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

.mu-main {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* =========================================================
   GENERAL INFO CONTENT
   ========================================================= */
.mu-general-info-content {
  padding-top: 1rem;
}

.mu-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.mu-description p {
  margin: 0 0 1rem 0;
}

.mu-description p:last-child {
  margin-bottom: 0;
}

.mu-info-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.mu-info-definition,
.mu-info-section,
.mu-info-list-section,
.mu-info-highlight {
  background: #f9fafb;
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.mu-info-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 1rem 0;
}

.mu-info-content {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #4b5563;
}

.mu-info-content p {
  margin: 0 0 1rem 0;
}

.mu-info-content p:last-child {
  margin-bottom: 0;
}

.mu-info-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.mu-info-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #4b5563;
}

.mu-info-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.25rem;
}

.mu-info-highlight {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border-left-color: var(--secondary);
}

/* =========================================================
   TABS
   ========================================================= */
.mu-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 2rem;
}

.mu-tab {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: -2px;
}

.mu-tab:hover {
  color: var(--primary);
}

.mu-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.mu-tab i {
  font-size: 1rem;
}

/* =========================================================
   GENERAL INFO
   ========================================================= */
.mu-general-info {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e5e7eb;
}

.mu-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mu-section-title i {
  color: var(--primary);
  font-size: 1.5rem;
}

.mu-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.mu-description p {
  margin: 0 0 1rem 0;
}

.mu-description p:last-child {
  margin-bottom: 0;
}

.mu-info-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.mu-info-definition,
.mu-info-section,
.mu-info-list-section,
.mu-info-highlight {
  background: #f9fafb;
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 8px;
}

.mu-info-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 1rem 0;
}

.mu-info-content {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #4b5563;
}

.mu-info-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.mu-info-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #4b5563;
}

.mu-info-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.25rem;
}

.mu-info-highlight {
  background: linear-gradient(135deg, rgba(var(--primary-rgb, 59, 130, 246), 0.1), rgba(var(--secondary-rgb, 139, 92, 246), 0.1));
  border-left-color: var(--secondary);
}

/* =========================================================
   TAB PANELS
   ========================================================= */
.mu-tab-panel {
  display: none;
}

.mu-tab-panel.active {
  display: block;
}

.mu-general-info-content {
  padding-top: 1rem;
}

/* =========================================================
   HOSPITALS GRID
   ========================================================= */
.mu-hospitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.mu-hospital-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s;
}

.mu-hospital-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.mu-hospital-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.mu-hospital-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f3f4f6;
}

.mu-hospital-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.mu-hospital-card:hover .mu-hospital-image img {
  transform: scale(1.05);
}

.mu-hospital-body {
  padding: 1rem;
}

.mu-hospital-name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 0.5rem 0;
}

.mu-hospital-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.mu-hospital-location i {
  color: var(--primary);
  font-size: 0.75rem;
}

/* =========================================================
   TREATMENTS LIST
   ========================================================= */
.mu-treatments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mu-treatment-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
}

.mu-treatment-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mu-treatment-item a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
}

.mu-treatment-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.mu-treatment-info {
  flex: 1;
}

.mu-treatment-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 0.5rem 0;
}

.mu-treatment-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.mu-treatment-duration {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.mu-treatment-duration i {
  color: var(--primary);
  font-size: 0.75rem;
}

.mu-treatment-arrow {
  color: #9ca3af;
  font-size: 1.25rem;
}

.mu-treatment-item:hover .mu-treatment-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

/* =========================================================
   DOCTORS GRID
   ========================================================= */
.mu-doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.mu-doctor-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s;
  text-align: center;
}

.mu-doctor-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.mu-doctor-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 1.5rem 1rem;
}

.mu-doctor-image {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #e5e7eb;
  background: #f3f4f6;
}

.mu-doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mu-doctor-body {
  text-align: center;
}

.mu-doctor-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 0.5rem 0;
}

.mu-doctor-specialty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.mu-doctor-specialty i {
  color: var(--primary);
  font-size: 0.75rem;
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.mu-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mu-sidebar-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mu-sidebar-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mu-sidebar-title i {
  color: var(--primary);
}

/* =========================================================
   STATS
   ========================================================= */
.mu-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mu-stat {
  text-align: center;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
}

.mu-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.mu-stat-label {
  font-size: 0.8125rem;
  color: #6b7280;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */
.mu-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

.mu-empty i {
  font-size: 4rem;
  color: #d1d5db;
  margin-bottom: 1rem;
}

.mu-empty h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin: 0 0 0.5rem 0;
}

.mu-empty p {
  font-size: 0.9375rem;
  margin: 0;
}

.mu-empty-text {
  color: #9ca3af;
  font-size: 0.875rem;
  text-align: center;
  margin: 0;
}

/* =========================================================
   ERROR STATE
   ========================================================= */
.mu-error {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.mu-error i {
  font-size: 4rem;
  color: #ef4444;
  margin-bottom: 1rem;
}

.mu-error h2 {
  font-size: 1.5rem;
  color: var(--dark);
  margin: 0 0 1rem 0;
}

.mu-error p {
  font-size: 1rem;
  color: #6b7280;
  margin: 0 0 2rem 0;
}

.mu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.mu-btn-primary {
  background: var(--primary);
  color: white;
}

.mu-btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
  .mu-content-inner {
    grid-template-columns: 1fr;
  }
  
  .mu-sidebar {
    order: -1;
  }
  
  .mu-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .mu-hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .mu-hero-icon {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }
  
  .mu-title {
    font-size: 2rem;
  }
  
  .mu-meta {
    justify-content: center;
  }
  
  .mu-tabs {
    flex-wrap: wrap;
  }
  
  .mu-tab {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  .mu-hospitals-grid {
    grid-template-columns: 1fr;
  }
  
  .mu-doctors-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .mu-main {
    padding: 1.5rem;
  }
}
