/* Solar Gallery Specific Styles */

/* Breadcrumb */
.breadcrumb-section {
  background: #f8f9fa;
  padding: 20px 0;
  margin-top: 100px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 30px;
}

/* Breadcrumb inside hero section */
.solar-gallery-hero .breadcrumb {
  color: white;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.breadcrumb-item {
  color: #1A376B;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Breadcrumb items inside hero section */
.solar-gallery-hero .breadcrumb-item {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item:hover {
  color: #FBB705;
}

.solar-gallery-hero .breadcrumb-item:hover {
  color: #FBB705;
}

.breadcrumb-item.active {
  color: #6b7280;
  font-weight: 500;
}

.solar-gallery-hero .breadcrumb-item.active {
  color: white;
  font-weight: 500;
}

.breadcrumb-separator {
  color: #9ca3af;
  margin: 0 4px;
}

.solar-gallery-hero .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 8px;
}

/* Solar Gallery Hero */
.solar-gallery-hero {
  background: linear-gradient(135deg, #1A376B 0%, #2a4a7f 100%);
  padding: 100px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.solar-gallery-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../../images/solar-pattern.svg') repeat;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 183, 5, 0.2);
  color: #FBB705;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  max-width: 500px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FBB705;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* Categories Filter */
.solar-categories {
  padding: 60px 0 40px;
  background: white;
}

.categories-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #f8f9fa;
  color: #6b7280;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-btn:hover,
.category-btn.active {
  background: #1A376B;
  color: white;
  border-color: #1A376B;
  transform: translateY(-2px);
}

.category-btn i {
  font-size: 16px;
}

/* Gallery Grid */
.solar-gallery-grid {
  padding: 0 0 80px;
  background: #f8f9fa;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.gallery-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(26, 55, 107, 0.2);
}

.gallery-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 55, 107, 0.9), rgba(251, 183, 5, 0.9));
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.gallery-info p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.gallery-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-details span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.gallery-view-btn {
  align-self: flex-end;
  width: 50px;
  height: 50px;
  background: white;
  color: #1A376B;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-view-btn:hover {
  background: #FBB705;
  color: white;
  transform: scale(1.1);
}

/* Load More Section */
.load-more-section {
  padding: 40px 0 80px;
  background: #f8f9fa;
}

.load-more-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #1A376B, #2a4a7f);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(26, 55, 107, 0.3);
}

/* Photo Modal for Solar Gallery */
.solar-photo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.solar-photo-modal.active {
  opacity: 1;
  visibility: visible;
}

.solar-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.solar-photo-modal.active .solar-modal-content {
  transform: scale(1);
}

.solar-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 12;
  transition: all 0.3s ease;
}

.solar-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.solar-modal-header {
  padding: 25px 30px 20px;
  border-bottom: 2px solid rgba(26, 55, 107, 0.1);
}

.solar-modal-header h3 {
  font-size: 1.8rem;
  font-weight: bold;
  color: #121212;
  margin-bottom: 8px;
}

.solar-modal-header p {
  color: #5E6D87;
  font-size: 1rem;
  margin: 0;
}

.solar-modal-image-container {
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.solar-modal-image {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.solar-modal-footer {
  padding: 25px 30px;
  background: #F4F6F9;
}

.solar-photo-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.solar-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5E6D87;
  font-size: 14px;
}

.solar-info-item i {
  color: #1A376B;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .categories-filter {
    gap: 10px;
  }
  
  .category-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .solar-modal-header {
    padding: 20px;
  }
  
  .solar-modal-header h3 {
    font-size: 1.5rem;
  }
  
  .solar-modal-image {
    max-height: 65vh;
  }
  
  .solar-modal-footer {
    padding: 20px;
  }
}
