/* ============================================
   AURUM - Premium Luxury Restaurant CSS
   ============================================ */

/* Root Variables */
:root {
  --gold: #C89B3C;
  --gold-light: #E8BE6A;
  --gold-dark: #A07828;
  --charcoal: #1A1A1A;
  --cream: #F8F8F8;
  --accent: #D64545;
  --text: #202020;
}

/* Dark Mode */
[data-theme="dark"] {
  --cream: #111111;
  --text: #F0F0F0;
}

/* ============================================
   GLOBAL
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: var(--gold);
  color: var(--charcoal);
}

/* ============================================
   LOADER
   ============================================ */
#loader {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-progress {
  animation: loaderProgress 0.35s ease-out forwards;
}

@keyframes loaderProgress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar.scrolled {
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 155, 60, 0.15);
  padding-top: 1rem;
  padding-bottom: 1rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   HERO
   ============================================ */
.hero-title span {
  display: block;
  opacity: 0;
  transform: translateY(60px);
  animation: heroReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title span:nth-child(1) { animation-delay: 0.3s; }
.hero-title span:nth-child(2) { animation-delay: 0.5s; }
.hero-title span:nth-child(3) { animation-delay: 0.7s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating card */
.glass-card {
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 155, 60, 0.2);
  animation: float 6s ease-in-out infinite;
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 155, 60, 0.2);
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(0.5deg); }
  66% { transform: translateY(-6px) rotate(-0.5deg); }
}

/* Scroll indicator bounce */
@keyframes bounce-slow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

.animate-bounce-slow {
  animation: bounce-slow 3s ease-in-out infinite;
}

/* ============================================
   IMAGES
   ============================================ */
.img-hover {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.img-hover:hover {
  transform: scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* ============================================
   MENU CARDS
   ============================================ */
.btn-cart {
  background: rgba(200, 155, 60, 0.15);
  color: var(--gold);
  border: 1px solid rgba(200, 155, 60, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cart:hover {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
  transform: scale(1.05);
}

/* Menu filter active */
.active-filter {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--charcoal) !important;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

.gallery-grid .gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-grid .gallery-item:nth-child(5) { grid-column: span 2; }

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-grid .gallery-item:nth-child(1) { aspect-ratio: unset; }
.gallery-grid .gallery-item:nth-child(5) { aspect-ratio: 2/1; }

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox */
#lightbox.active {
  display: flex;
}

/* ============================================
   FORMS
   ============================================ */
.contact-input {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  color: var(--charcoal);
  transition: border-color 0.3s ease;
  display: block;
}

.dark .contact-input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.contact-input:focus {
  border-color: var(--gold);
  outline: none;
}

.contact-input::placeholder {
  color: #9ca3af;
}

/* ============================================
   SWIPER CUSTOMIZATION
   ============================================ */
.featured-swiper .swiper-pagination-bullet {
  background: rgba(200, 155, 60, 0.4);
  opacity: 1;
  width: 8px;
  height: 8px;
}

.featured-swiper .swiper-pagination-bullet-active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

.testimonial-swiper .swiper-pagination-bullet {
  background: rgba(200, 155, 60, 0.4);
  opacity: 1;
}

.testimonial-swiper .swiper-pagination-bullet-active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

.swiper-button-next,
.swiper-button-prev {
  background: rgba(255,255,255,0.1) !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  backdrop-filter: blur(10px);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--gold) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 0.875rem !important;
  font-weight: 800 !important;
  color: var(--gold) !important;
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
  color: var(--charcoal) !important;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-trigger {
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-trigger:hover {
  color: var(--gold);
}

.faq-content {
  animation: faqOpen 0.3s ease forwards;
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-icon.rotate {
  transform: rotate(45deg);
}

/* ============================================
   BACK TO TOP
   ============================================ */
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   CART DRAWER
   ============================================ */
#cart-drawer.open {
  transform: translateX(0);
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-name {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  color: white;
  flex: 1;
}

.cart-item-price {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 0.9rem;
}

.cart-item-remove {
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.3s;
}

.cart-item-remove:hover {
  color: var(--accent);
}

/* ============================================
   GSAP REVEAL ANIMATIONS (initial state)
   ============================================ */
[data-gsap="fade-up"] {
  opacity: 0;
  transform: translateY(40px);
}

[data-gsap="reveal-left"] {
  opacity: 0;
  transform: translateX(-60px);
}

[data-gsap="reveal-right"] {
  opacity: 0;
  transform: translateX(60px);
}

[data-gsap="slide-left"] {
  opacity: 0;
  transform: translateX(60px);
}

/* ============================================
   DARK MODE OVERRIDES
   ============================================ */
[data-theme="dark"] body {
  background-color: #111111;
}

[data-theme="dark"] .bg-white {
  background-color: var(--charcoal) !important;
}

[data-theme="dark"] .bg-cream {
  background-color: #111111 !important;
}

/* ============================================
   SCROLL PROGRESS
   ============================================ */
#scroll-progress {
  transition: width 0.1s linear;
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */
@media (max-width: 768px) {
  .hero-title span {
    font-size: 3.5rem !important;
  }
}

@media (max-width: 480px) {
  .hero-title span {
    font-size: 2.8rem !important;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .gallery-grid .gallery-item:nth-child(1),
  .gallery-grid .gallery-item:nth-child(5) {
    grid-row: span 1;
    grid-column: span 1;
    aspect-ratio: 1;
  }
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
.add-to-cart-anim {
  animation: addToCartPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes addToCartPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.85); }
  100% { transform: scale(1); }
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shimmer effect on loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Hide scrollbars for clean mobile horizontal carousels and filter pills */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  #loader, #cursor, #cursor-follower, #scroll-progress,
  #navbar, #back-to-top, #cart-drawer, #cart-overlay { display: none !important; }
}
