/* Showcase Page Styles - Matching About Page Design with Pinterest-style Masonry Grid */

/* Use about.css for base styling, add showcase-specific overrides here */

/* Pinterest-style Masonry Grid */
.showcase-masonry {
  column-count: 4;
  column-gap: 1.5rem;
  padding: 0;
}

.showcase-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.showcase-card {
  border: 1px solid rgba(182, 32, 91, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  overflow: hidden;
  position: relative;
}

.showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 55px -25px rgba(25, 28, 90, 0.25);
}

.showcase-card .card-accent {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 122, 77, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.showcase-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.showcase-image-wrapper:hover {
  opacity: 0.9;
}

.showcase-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
  object-fit: cover;
}

.showcase-card:hover .showcase-image {
  transform: scale(1.05);
}

/* Lightbox Modal Styles */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  overflow: auto;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 90%;
  max-width: 1200px;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  height: auto;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.3s ease;
  line-height: 1;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.3s ease;
  padding: 20px;
  user-select: none;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 25px;
  z-index: 10000;
}

/* Responsive Lightbox */
@media (max-width: 768px) {
  .lightbox-content {
    width: 95%;
    padding: 10px;
  }

  .lightbox-content img {
    max-height: 80vh;
  }

  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 24px;
    width: 50px;
    height: 50px;
    padding: 15px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-counter {
    bottom: 20px;
    font-size: 16px;
    padding: 8px 16px;
  }
}

/* Responsive Masonry Grid */
@media (max-width: 1200px) {
  .showcase-masonry {
    column-count: 3;
  }
}

@media (max-width: 992px) {
  .showcase-masonry {
    column-count: 2;
    column-gap: 1rem;
  }
  
  .showcase-item {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .showcase-masonry {
    column-count: 1;
    column-gap: 0;
  }
  
  .showcase-item {
    margin-bottom: 1rem;
  }
  
  .showcase-card {
    border-radius: 1rem;
  }
}

/* Legacy styles for backward compatibility */
.showcase-page .showcase_section {
  padding: 50px 0;
  margin: 50px 0;
}

.showcase_section {
  padding-bottom: 100px;
  position: relative;
}

.showcase_section a {
  color: #ff2c3c;
}

.showcase_section .nav-pills .nav-link.active {
  color: #fff;
  background-color: #ff2c3c;
  border-radius: 50px;
}

.showcase_section h2 {
  text-align: center;
  position: relative;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 30px;
}

.showcase_section h2::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 4px;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ff2d3b;
}

/* Video player styles (if needed for other pages) */
.video-player-section {
  background-color: #f8f9fa;
}

.main-video-container {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.playlist-container {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.playlist-item {
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.playlist-item:hover {
  background-color: #f8f9fa;
}

.playlist-item.active {
  background-color: #e9ecef;
}

.duration {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 12px;
}

.video-stats {
  color: #666;
  font-size: 0.9rem;
}

.video-actions button {
  font-size: 0.9rem;
}

/* Custom scrollbar for playlist */
.playlist-items::-webkit-scrollbar {
  width: 6px;
}

.playlist-items::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.playlist-items::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.playlist-items::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.g-0 {
  margin: 0px;
}

.video-info h3 {
  font-size: 22px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .playlist-items {
    height: 400px;
  }
}
