/* ========================================
   PIRAYE SAHNE RESTORAN - Custom Styles
   ======================================== */

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1A1A1A;
}
::-webkit-scrollbar-thumb {
  background: #C9A84C;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E8D48B;
}

/* Selection */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #fff;
}

/* ===== PRELOADER ===== */
@keyframes loading-bar {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}
.animate-loading-bar {
  animation: loading-bar 1.5s ease-in-out forwards;
}

/* ===== NAVIGATION ===== */
.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: rgba(255, 248, 231, 0.7);
  transition: color 0.3s;
  text-decoration: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #C9A84C, #E8D48B);
  transition: width 0.3s, left 0.3s;
  border-radius: 1px;
}
.nav-link:hover,
.nav-link.active {
  color: #C9A84C;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
  left: 20%;
}

.nav-scrolled {
  background: rgba(26, 26, 26, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Nav Link */
.mobile-nav-link {
  padding: 0.75rem 0;
  font-size: 1.125rem;
  color: rgba(255, 248, 231, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.3s, padding-left 0.3s;
  text-decoration: none;
}
.mobile-nav-link:hover {
  color: #C9A84C;
  padding-left: 0.5rem;
}

/* Hamburger Lines */
.hamburger-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}
.hamburger-lines .line {
  display: block;
  height: 2px;
  width: 100%;
  background: #C9A84C;
  border-radius: 1px;
  transition: all 0.3s ease;
}
.hamburger-lines.open .line1 {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-lines.open .line2 {
  opacity: 0;
}
.hamburger-lines.open .line3 {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  transform: scale(1.05);
}
.hero-slideshow .slide.active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.5s ease-in-out, transform 8s ease-out;
}

/* Particles */
.particles-container {
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(201, 168, 76, 0.4);
  border-radius: 50%;
  animation: float-particle linear infinite;
}
@keyframes float-particle {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) scale(1);
  }
}

/* ===== ANIMATIONS ===== */
.animate-fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}
@keyframes pulse-slow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
}

/* Scroll Reveal Animations */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-up {
  transform: translateY(50px);
}
.reveal-left {
  transform: translateX(-50px);
}
.reveal-right {
  transform: translateX(50px);
}
.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===== GALLERY ===== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  cursor: pointer;
  min-height: 220px;
}
.gallery-item img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: 0.75rem;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ===== MENU ===== */
.menu-tab {
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(139, 134, 128, 1);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s;
}
.menu-tab:hover {
  color: #C9A84C;
  border-color: rgba(201, 168, 76, 0.2);
}
.menu-tab.active {
  color: #1A1A1A;
  background: linear-gradient(135deg, #C9A84C, #E8D48B);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.menu-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  transition: all 0.3s;
}
.menu-card:hover {
  border-color: rgba(201, 168, 76, 0.2);
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  transform: translateY(-2px);
}
.menu-card.featured {
  border-color: rgba(201, 168, 76, 0.15);
  background: linear-gradient(135deg, rgba(201,168,76,0.05), rgba(255,255,255,0.01));
}
.menu-card.featured:hover {
  border-color: rgba(201, 168, 76, 0.3);
}

.menu-price {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #C9A84C;
  white-space: nowrap;
  padding-left: 1rem;
}

.menu-item {
  transition: all 0.4s ease;
}
.menu-item.hidden-item {
  display: none;
}

/* ===== LIGHTBOX ===== */
#lightbox {
  cursor: zoom-out;
}
#lightbox img {
  cursor: default;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .gallery-item {
    min-height: 150px;
  }
  .gallery-item.col-span-2 {
    min-height: 220px;
  }
}

/* ===== EXTRA GLOW EFFECTS ===== */
.glow-gold {
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.15);
}

/* Text gradient */
.text-gradient-gold {
  background: linear-gradient(135deg, #C9A84C, #E8D48B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
