/* Container اصلی */
.surgalb-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Breadcrumb و دکمه بازگشت */
.surgalb-breadcrumb {
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.surgalb-back-btn {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 14px;
}

.surgalb-back-btn:hover {
  background: #0056b3;
  transform: translateX(-2px);
}

.surgalb-path {
  font-size: 14px;
  color: #495057;
  font-weight: 500;
}

.surgalb-path span {
  color: #007bff;
  padding: 0 5px;
}

/* Container کارت‌ها */
.surgalb-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

/* کارت‌ها */
.surgalb-card {
  background: #fff;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.surgalb-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  border-color: #007bff;
}

.surgalb-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.surgalb-card:hover img {
  transform: scale(1.05);
}

.surgalb-card .title {
  padding: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: #fff;
  font-size: 15px;
  transition: all 0.3s;
}

/* حالت غیرفعال کارت */
.surgalb-card.inactive {
  opacity: 0.5;
  filter: grayscale(0.5);
}

.surgalb-card.inactive img {
  filter: blur(2px) brightness(1.2);
}

.surgalb-card.inactive .title {
  background: #6c757d;
}

/* حالت فعال کارت */
.surgalb-card.active {
  border-color: #28a745;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.surgalb-card.active img {
  filter: none;
  opacity: 1;
}

.surgalb-card.active .title {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

/* تیتر بالای گالری */
.surgalb-heading {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin: 30px 0 20px;
  padding: 15px;
  color: #212529;
  background: linear-gradient(to right, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* گالری */
.surgalb-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 20px;
  padding-bottom: 40px;
}

.surgalb-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.surgalb-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 10;
}

/* لایت‌باکس */
.surgalb-lb {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  backdrop-filter: blur(5px);
}

.surgalb-lb.active {
  display: flex;
}

.surgalb-lb-img {
  max-width: 90%;
  max-height: 85%;
  transition: transform 0.3s ease;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.surgalb-lb-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #fff;
  background: rgba(220, 53, 69, 0.8);
  border: none;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.surgalb-lb-close:hover {
  background: #dc3545;
  transform: rotate(90deg);
}

.surgalb-lb-controls {
  position: absolute;
  bottom: 30px;
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.7);
  padding: 12px 20px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.surgalb-lb-controls button {
  background: #fff;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  color: #212529;
  min-width: 45px;
}

.surgalb-lb-controls button:hover {
  background: #007bff;
  color: #fff;
  transform: translateY(-2px);
}

.surgalb-lb-controls button:active {
  transform: translateY(0);
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .surgalb-cards-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
  
  .surgalb-card img {
    height: 140px;
  }
  
  .surgalb-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .surgalb-gallery img {
    height: 160px;
  }
  
  .surgalb-heading {
    font-size: 1.1rem;
    padding: 10px;
  }
  
  .surgalb-breadcrumb {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .surgalb-path {
    font-size: 12px;
  }
  
  .surgalb-lb-controls {
    bottom: 10px;
    padding: 8px 12px;
  }
  
  .surgalb-lb-controls button {
    padding: 8px 12px;
    font-size: 14px;
    min-width: 38px;
  }
}