/* ===================================
   Ice Pick Sound Studios - Light Theme
   =================================== */

/* Animations */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out forwards;
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
}

/* Navbar scroll state */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* When scrolled on homepage, switch nav links from light to dark */
#navbar.scrolled .nav-links a {
  color: #475569;
}

#navbar.scrolled .nav-links a:hover {
  color: #0f172a;
  background: #f8fafc;
}

#navbar.scrolled .nav-links a:first-child {
  color: #92671a;
  background: #fdf8ef;
}

#navbar.scrolled #mobile-toggle svg {
  color: #334155;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Selection */
::selection {
  background: rgba(180, 130, 50, 0.2);
  color: #1e293b;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid rgba(180, 130, 50, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Rating button active state */
.rating-btn.selected {
  background: rgba(180, 130, 50, 0.15) !important;
  border-color: #b48232 !important;
  color: #92671a !important;
}

/* Image hover zoom */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.5s ease;
}

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

/* Clickable images cursor */
img[data-lightbox] {
  cursor: zoom-in;
}

/* ===================================
   Lightbox
   =================================== */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease, visibility 0.3s;
  cursor: zoom-out;
}

#lightbox.active {
  opacity: 1;
  visibility: visible;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#lightbox.active img {
  transform: scale(1);
  opacity: 1;
}

/* Close button */
#lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}

#lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}
