/**
 * gallery_swiper.css
 * 
 * Dedicated styles for the gallery component with Swiper
 * For Malermeister Hinrichs website
 */

/*--------------------------------------------------------------
# Portfolio & Gallery Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 20px 10px 20px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 5px;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  font-family: var(--heading-font);
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--contrast-color);
  background-color: var(--accent-color);
}

.portfolio .portfolio-filters li:first-child {
  margin-left: 0;
}

.portfolio .portfolio-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .portfolio .portfolio-filters li {
    font-size: 14px;
    margin: 0 0 10px 0;
  }
}

.portfolio .portfolio-item {
  position: relative;
  overflow: hidden;
}

.portfolio .portfolio-item .portfolio-info {
  opacity: 0;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -100%;
  z-index: 3;
  transition: all ease-in-out 0.5s;
  background: color-mix(in srgb, var(--background-color), transparent 10%);
  padding: 15px;
}

.portfolio .portfolio-item .portfolio-info h4 {
  font-size: 18px;
  font-weight: 600;
  padding-right: 50px;
}

.portfolio .portfolio-item .portfolio-info p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 14px;
  margin-bottom: 0;
  padding-right: 50px;
}

.portfolio .portfolio-item .portfolio-info .preview-link,
.portfolio .portfolio-item .portfolio-info .details-link {
  position: absolute;
  right: 50px;
  font-size: 24px;
  top: calc(50% - 14px);
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  transition: 0.3s;
  line-height: 0;
}

.portfolio .portfolio-item .portfolio-info .preview-link:hover,
.portfolio .portfolio-item .portfolio-info .details-link:hover {
  color: var(--accent-color);
}

.portfolio .portfolio-item .portfolio-info .details-link {
  right: 14px;
  font-size: 28px;
}

.portfolio .portfolio-item:hover .portfolio-info {
  opacity: 1;
  bottom: 0;
}

/* Kreative Galerie Styling */
.gallery-wrapper {
  overflow: hidden;
  padding: 30px 0;
}

.gallery-swiper {
  padding-bottom: 60px;
}

.gallery-item {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 300px;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery-info {
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(243, 156, 18, 0.9) 0%, rgba(243, 156, 18, 0.7) 70%, transparent 100%);
  color: white;
  padding: 15px;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  opacity: 0;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-info {
  bottom: 0;
  opacity: 1;
}

.gallery-item:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 15px 30px rgba(243, 156, 18, 0.3);
}

.gallery-info h3,
.gallery-info h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.gallery-info p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.gallery-link {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 20px;
  transform: scale(0);
  transition: all 0.4s ease;
}

.gallery-item:hover .gallery-link {
  transform: scale(1);
}

.gallery-button-next,
.gallery-button-prev {
  color: var(--accent-color) !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-button-next:hover,
.gallery-button-prev:hover {
  background-color: var(--accent-color);
  color: white !important;
}

.gallery-button-next:after,
.gallery-button-prev:after {
  font-size: 20px;
}

/* Swiper Pagination Styling */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--accent-color);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  width: 30px;
  border-radius: 6px;
}

/* Filter Buttons */
.btn-outline-primary {
  border-color: var(--accent-color);
  color: var(--accent-color);
  border-radius: 30px;
  padding: 8px 20px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary.filter-active {
  background-color: var(--accent-color);
  color: white;
}

/* Animation für verschwindende/erscheinende Elemente */
.gallery-item.hidden {
  transform: scale(0.8);
  opacity: 0;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .gallery-item {
    height: 250px;
  }
  
  .btn-outline-primary {
    margin-bottom: 10px;
    font-size: 14px;
    padding: 6px 14px;
  }
  
  .gallery-button-next,
  .gallery-button-prev {
    width: 40px !important;
    height: 40px !important;
  }
}

/* Spezielle Perspektiven-Effekte */
.gallery-swiper .swiper-slide-active .gallery-item {
  transform: translateY(0) rotateX(0);
}

.gallery-swiper .swiper-slide-prev .gallery-item {
  transform: translateY(5px) rotateX(-3deg) rotateY(3deg);
}

.gallery-swiper .swiper-slide-next .gallery-item {
  transform: translateY(5px) rotateX(-3deg) rotateY(-3deg);
}

/* Kreative Hover-Effekte für Bilder */
.swiper-slide:nth-child(3n+1) .gallery-item:hover img {
  transform: scale(1.1) rotate(3deg);
}

.swiper-slide:nth-child(3n+2) .gallery-item:hover img {
  transform: scale(1.1) rotate(-3deg);
}

.swiper-slide:nth-child(3n+3) .gallery-item:hover img {
  transform: scale(1.1) translateY(-10px);
}

/* Farbschema-Variationen für verschiedene Kategorien */
.swiper-slide[data-category="Maler- und Lackierarbeiten"] .gallery-info {
  background: linear-gradient(0deg, rgba(243, 156, 18, 0.9) 0%, rgba(243, 156, 18, 0.7) 70%, transparent 100%);
}

.swiper-slide[data-category="Fassaden"] .gallery-info {
  background: linear-gradient(0deg, rgba(74, 134, 232, 0.9) 0%, rgba(74, 134, 232, 0.7) 70%, transparent 100%);
}

.swiper-slide[data-category="Tapezierarbeiten"] .gallery-info {
  background: linear-gradient(0deg, rgba(253, 126, 20, 0.9) 0%, rgba(253, 126, 20, 0.7) 70%, transparent 100%);
}

.swiper-slide[data-category="Bodenbeläge"] .gallery-info {
  background: linear-gradient(0deg, rgba(32, 201, 151, 0.9) 0%, rgba(32, 201, 151, 0.7) 70%, transparent 100%);
}

.swiper-slide[data-category="Kreatives"] .gallery-info {
  background: linear-gradient(0deg, rgba(102, 16, 242, 0.9) 0%, rgba(102, 16, 242, 0.7) 70%, transparent 100%);
}

.swiper-slide[data-category="Individuelles"] .gallery-info {
  background: linear-gradient(0deg, rgba(243, 38, 140, 0.9) 0%, rgba(243, 38, 140, 0.7) 70%, transparent 100%);
}

/* Portfolio Buttons */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.gallery-item-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}