/* Base Styles */
body {
  background-color: #f8f9fa;
  color: #212529;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.dark-mode {
  background-color: #212529;
  color: #f8f9fa;
}

body.dark-mode .navbar,
body.dark-mode footer {
  background-color: #1a1a1a !important;
}

body.dark-mode .card,
body.dark-mode .modal-content,
body.dark-mode .dropdown-menu {
  background-color: #343a40;
  color: #f8f9fa;
}

/* Gallery Styles */
.gallery-container {
  min-height: 500px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  padding: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .image-overlay {
  opacity: 1;
}

.image-title {
  margin-bottom: 0;
  font-weight: 500;
}

img {
  transition: transform 0.2s ease;
  cursor: pointer;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

img:hover {
  transform: scale(1.03);
}

/* Filter and Search Styles */
.btn-filter.active {
  background-color: #0d6efd;
  color: white !important;
}

.search-results-info {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dark-mode .btn-outline-primary {
  color: #86b7fe;
  border-color: #86b7fe;
}

.dark-mode .btn-outline-primary:hover,
.dark-mode .btn-outline-primary.active {
  background-color: #0d6efd;
  color: white !important;
}

.dark-mode .btn-dark {
  background-color: #f8f9fa;
  color: #212529;
}

/* Footer Styles */
footer {
  margin-top: auto;
  background-color: orange !important;
}

.social-icons a {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.social-icons a:hover {
  background-color: rgba(255,255,255,0.2);
  text-decoration: none;
}

/* Load More Button */
.load-more {
  transition: all 0.3s ease;
}

.load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .navbar .d-flex {
    width: 100%;
    margin-top: 10px;
  }
  
  .search-input {
    width: 80% !important;
  }
}

/* Navbar Styles */
.navbar {
  background-color: orange !important;
}