/* ===== MARIS GALLERY STYLES ===== */

.maris-gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: transparent !important;
  color: #333 !important;
}

.gallery-title {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 600;
}

/* Przyciski kategorii */
.gallery-category-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.gallery-category-btn {
  background: transparent !important;
  border: 2px solid #dee2e6 !important;
  color: #ffffff !important;
  padding: 0.5em;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9em !important;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 200px;
  text-align: center;
}

.gallery-category-btn:hover {
  background: transparent !important;
  border-color: #adb5bd !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-category-btn.active {
  background: #ffd700 !important;
  border-color: #ffd700 !important;
  color: #2c3e50 !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Kontener galerii */
.gallery-content {
  position: relative;
  min-height: 400px;
}

/* Loading spinner */
.gallery-loading {
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ffd700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Siatka galerii */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

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

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

.gallery-item-title {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

/* Paginacja */
.gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding: 20px;
}

.pagination-btn {
  background: transparent !important;
  border: 2px solid #ffd700 !important;
  color: #2c3e50 !important;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9em !important;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
  background: transparent !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.pagination-btn:disabled {
  background: transparent !important;
  color: #6c757d !important;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pagination-info {
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
  min-width: 80px;
  text-align: center;
}

/* Komunikat o braku zdjęć */
.gallery-empty {
  text-align: center;
  padding: 80px 20px;
  color: #ffffff !important;
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.gallery-empty p {
  font-size: 1.2rem;
  margin: 0;
  color: #ffffff !important;
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
  .maris-gallery-container {
    padding: 15px;
  }

  .gallery-title {
    font-size: 1.5rem;
  }

  .gallery-category-buttons {
    flex-direction: column;
    align-items: center;
  }

  .gallery-category-btn {
    min-width: 250px;
    margin-bottom: 10px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .gallery-item img {
    height: 200px;
  }

  .gallery-pagination {
    flex-direction: column;
    gap: 15px;
  }

  .pagination-btn {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-item img {
    height: 180px;
  }

  .gallery-category-btn {
    min-width: 200px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Dodatkowe style dla lepszej czytelności */
.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 215, 0, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::before {
  background: rgba(255, 215, 0, 0.1);
}

/* Animacja ładowania dla nowych zdjęć */
.gallery-item.loading {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Style dla lepszej dostępności */
.gallery-category-btn:focus,
.pagination-btn:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

.gallery-item:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/* Dark mode support (opcjonalne) - WYŁĄCZONE */
/*
@media (prefers-color-scheme: dark) {
  .maris-gallery-container {
    background: #1a1a1a;
    color: #fff;
  }

  .gallery-category-btn {
    background: #2d2d2d;
    border-color: #444;
    color: #fff;
  }

  .gallery-category-btn:hover {
    background: #3d3d3d;
  }

  .gallery-item {
    background: #2d2d2d;
  }
}
*/
