/**
 * Premium Album View Styles
 * Apple-inspired design with blue accents
 */

/* ═══════════════════════════════════════════════════════════════
   SECTION 1: SPOTLIGHT SLIDESHOW (Hero)
   ═══════════════════════════════════════════════════════════════ */

.spotlight-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  max-height: 800px;
  background: #000000;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: 0 0 20px 20px;
}

.spotlight-slide-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.spotlight-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  background-size: cover;
  background-position: center 10%;
  background-repeat: no-repeat;
}

.spotlight-slide.active {
  opacity: 1;
  z-index: 1;
}

.spotlight-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient overlay at bottom */
.spotlight-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 40px 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}

/* Navigation arrows */
.spotlight-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: 1.5px solid rgba(0,122,255,0.3);
  color: rgba(255,255,255,0.85);
  font-size: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  backdrop-filter: saturate(180%) blur(10px);
}

.spotlight-nav:hover {
  background: rgba(0,122,255,0.25);
  border-color: var(--blue-light);
  color: var(--white);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 16px rgba(0,122,255,0.3);
}

.spotlight-prev {
  left: 20px;
}

.spotlight-next {
  right: 20px;
}

/* Dot indicators */
.spotlight-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.spotlight-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 1.5px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.spotlight-dot.active {
  background: var(--blue);
  border-color: var(--blue-light);
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(0,122,255,0.6);
}

.spotlight-dot:hover {
  background: rgba(0,122,255,0.5);
  border-color: var(--blue-light);
}

/* Thumbnail strip */
.spotlight-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 24px 24px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
}

.spotlight-thumbs::-webkit-scrollbar {
  height: 4px;
}

.spotlight-thumbs::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}

.spotlight-thumbs::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 2px;
}

.spotlight-thumb {
  flex: 0 0 130px;
  height: 85px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.spotlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.spotlight-thumb:hover img {
  transform: scale(1.08);
}

.spotlight-thumb.active {
  border-color: var(--blue);
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(0,122,255,0.4);
}

.spotlight-thumb.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,122,255,0.15);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 2: ALBUM STATS BAR
   ═══════════════════════════════════════════════════════════════ */

.album-stats-bar {
  background: rgba(28,28,30,0.85);
  border-bottom: 1.5px solid rgba(0,122,255,0.2);
  padding: 18px 28px;
  position: sticky;
  top: 68px;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
}

.stats-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.01em;
}

.stats-sep {
  color: var(--blue-light);
  font-weight: 600;
}

.btn-download-all {
  margin-left: auto;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(0,122,255,0.3);
  color: var(--blue-light);
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing:-0.01em;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.btn-download-all:hover {
  background: linear-gradient(135deg,var(--blue),var(--blue-dark));
  color: var(--white);
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,122,255,0.3);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 3: PHOTO SECTIONS
   ═══════════════════════════════════════════════════════════════ */

.photo-section {
  margin-bottom: 80px;
  padding: 0 24px;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(0,122,255,0.4), transparent);
  margin-bottom: 24px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 10px;
}

.section-count {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  letter-spacing: -0.01em;
}

/* Masonry Grid */
.masonry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 1400px;
  margin: 0 auto;
  justify-content: center;
}

.masonry-item {
  position: relative;
  overflow: hidden;
  background: #0D0D0D;
  cursor: pointer;
  aspect-ratio: 1;
  border-radius: 8px;
  width: calc(25% - 4.5px);
  flex-shrink: 0;
}

.masonry-item.landscape {
  aspect-ratio: 3/2;
}

.masonry-item.portrait {
  aspect-ratio: 2/3;
}

.masonry-item.wide {
  grid-column: span 2;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.masonry-item:hover img {
  transform: scale(1.08);
}

/* Hover overlay */
.masonry-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  text-align: center;
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

.masonry-caption {
  font-size: 14px;
  color: rgba(255,255,255,0.95);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.masonry-icon {
  font-size: 36px;
  color: var(--blue-light);
}

/* Show All Button */
.show-all-btn {
  display: block;
  margin: 36px auto 0;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.show-all-btn:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
  background: rgba(0,122,255,0.08);
}

.show-all-btn.expanded::after {
  content: ' ▴';
}

.show-all-btn:not(.expanded)::after {
  content: ' ▾';
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 4: LIGHTBOX (Full-Screen Viewer)
   ═══════════════════════════════════════════════════════════════ */

.premium-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.premium-lightbox.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 32px;
  cursor: pointer;
  z-index: 10;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  color: var(--gold);
  transform: rotate(90deg);
}

.lightbox-image-container {
  position: relative;
  width: 90%;
  height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-image.loaded {
  opacity: 1;
  transform: scale(1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: 1.5px solid rgba(0,122,255,0.3);
  color: rgba(255,255,255,0.9);
  font-size: 32px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: saturate(180%) blur(10px);
}

.lightbox-nav:hover {
  background: rgba(0,122,255,0.3);
  border-color: var(--blue-light);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 16px rgba(0,122,255,0.4);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

/* Caption bar */
.lightbox-caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.92);
  padding: 28px;
  border-top: 1.5px solid rgba(0,122,255,0.25);
  backdrop-filter: saturate(180%) blur(20px);
}

.lightbox-caption-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.lightbox-caption-text {
  flex: 1;
  min-width: 200px;
}

.lightbox-caption-title {
  font-size: 15px;
  color: var(--white);
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lightbox-caption-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: -0.01em;
}

.lightbox-caption-meta span {
  color: var(--blue-light);
}

.lightbox-actions {
  display: flex;
  gap: 14px;
}

.lightbox-btn {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.8);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.lightbox-btn:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
  background: rgba(0,122,255,0.12);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .masonry-grid {
    /* 3 columns on tablet */
  }
  
  .masonry-item {
    width: calc(33.333% - 4px);
  }
}

@media (max-width: 768px) {
  .spotlight-hero {
    height: 60vh;
    min-height: 400px;
  }
  
  .spotlight-overlay {
    padding: 40px 20px 20px;
  }
  
  .spotlight-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .spotlight-prev {
    left: 10px;
  }
  
  .spotlight-next {
    right: 10px;
  }
  
  .spotlight-thumbs {
    padding: 0 16px 16px;
  }
  
  .spotlight-thumb {
    flex: 0 0 80px;
    height: 60px;
  }
  
  .album-stats-bar {
    top: 50px;
    padding: 12px 16px;
  }
  
  .stats-content {
    font-size: 11px;
    gap: 12px;
  }
  
  .btn-download-all {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }
  
  .masonry-grid {
    gap: 3px;
  }
  
  .masonry-item {
    width: calc(50% - 1.5px);
  }
  
  .masonry-item.wide {
    width: calc(50% - 1.5px);
  }
  
  .photo-section {
    padding: 0 16px;
    margin-bottom: 60px;
  }
  
  .lightbox-nav {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  
  .lightbox-caption-bar {
    padding: 16px;
  }
  
  .lightbox-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .spotlight-hero {
    height: 50vh;
    min-height: 300px;
  }
  
  .masonry-grid {
    gap: 2px;
  }
  
  .masonry-item {
    width: calc(50% - 1px);
  }
}

/* Loading Spinner Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


/* ═══════════════════════════════════════════════════════════════
   SHARE MODAL & BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.share-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.share-btn.whatsapp {
  background: #25D366;
  color: white;
}

.share-btn.whatsapp:hover {
  background: #22c55e;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
}

.share-btn.facebook {
  background: #1877F2;
  color: white;
}

.share-btn.facebook:hover {
  background: #1565C0;
  box-shadow: 0 4px 16px rgba(24,119,242,0.4);
}

.share-btn.twitter {
  background: #1DA1F2;
  color: white;
}

.share-btn.twitter:hover {
  background: #1A8CD8;
  box-shadow: 0 4px 16px rgba(29,161,242,0.4);
}

.share-btn.copy-link {
  background: rgba(255,255,255,0.08);
  color: var(--blue-light);
  border: 1.5px solid rgba(0,122,255,0.3);
}

.share-btn.copy-link:hover {
  background: rgba(0,122,255,0.12);
  border-color: var(--blue-light);
  box-shadow: 0 4px 16px rgba(0,122,255,0.3);
}

.share-preview {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .share-options {
    grid-template-columns: 1fr;
  }
  
  .btn-download-all {
    font-size: 12px;
    padding: 8px 16px;
  }
}
