/* ==========================================================================
   SUNURI GAMJATANG - CUSTOM STYLES & LUXURY K-FOOD DESIGN SYSTEM
   ========================================================================== */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0D0C0B;
}
::-webkit-scrollbar-thumb {
  background: #332E28;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E5B869;
}

/* Custom Interactive Cursor (GPU 가속 & 완벽한 진원 보장) */
.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: #E5B869;
  border-radius: 9999px;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
  box-shadow: 0 0 8px rgba(229, 184, 105, 0.8);
  transition: opacity 0.15s ease-in-out, background-color 0.2s ease;
}

.cursor-outline {
  width: 38px;
  height: 38px;
  box-sizing: border-box;
  border: 1.5px solid rgba(229, 184, 105, 0.45);
  border-radius: 9999px;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Hovering State on Cursor */
body.hovering .cursor-outline {
  border-color: rgba(229, 184, 105, 0.95);
  background-color: rgba(229, 184, 105, 0.12);
  box-shadow: 0 0 20px rgba(229, 184, 105, 0.35);
}

body.hovering .cursor-dot {
  background-color: #FFFFFF;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

/* Click State */
body.clicking .cursor-outline {
  transform: translate(-50%, -50%) scale(0.85) !important;
  border-color: #C42B2B;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(22, 20, 18, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 184, 105, 0.15);
}

.glass-card {
  background: rgba(31, 28, 25, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(51, 46, 40, 0.7);
}

/* 3D Tilt Card Styles */
.tilt-wrapper {
  perspective: 1200px;
}

.tilt-target {
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}

.tilt-target:hover {
  box-shadow: 0 25px 50px -12px rgba(229, 184, 105, 0.2), 0 0 20px rgba(140, 29, 29, 0.2);
}

/* Glare overlay for 3D cards */
.card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.tilt-target:hover .card-glare {
  opacity: 1;
}

/* Magnetic Button Hover Effect */
.magnetic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  will-change: transform;
}

.magnetic-btn:hover {
  transform: translateY(-2px);
}

/* Navigation Links Hover Underline Effect */
.nav-link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #8C1D1D, #E5B869);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

/* Tab Styles */
.time-tab-btn {
  position: relative;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.time-tab-btn:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.time-tab-btn.active {
  background-color: #E5B869;
  color: #0D0C0B;
  box-shadow: 0 6px 18px 0 rgba(229, 184, 105, 0.4);
  transform: translateY(-1px);
}

.menu-filter-btn {
  position: relative;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.menu-filter-btn:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.menu-filter-btn.active {
  background-color: #8C1D1D;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 6px 16px 0 rgba(140, 29, 29, 0.45);
  transform: translateY(-1px);
}

.preset-btn {
  position: relative;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.preset-btn:hover:not(.active) {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(229, 184, 105, 0.4);
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.5);
}

.preset-btn.active {
  border-color: #E5B869;
  background-color: rgba(229, 184, 105, 0.12);
  box-shadow: 0 0 25px rgba(229, 184, 105, 0.2);
  transform: translateY(-2px);
}

/* Input Range Custom Styling */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E5B869;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(229, 184, 105, 0.7);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: #FFFFFF;
  box-shadow: 0 0 16px rgba(229, 184, 105, 1);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E5B869;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(229, 184, 105, 0.7);
}

/* Floating Animation */
@keyframes soft-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.6deg);
  }
}

#hero-dish-card {
  animation: soft-float 6s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#hero-dish-card:hover {
  animation-play-state: paused;
}

/* Modal Open Animation */
#inquiry-modal.open {
  opacity: 1;
  pointer-events: auto;
}

#inquiry-modal.open #modal-box {
  transform: scale(1);
}

/* Interactive Badge Pulse */
@keyframes gold-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(229, 184, 105, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(229, 184, 105, 0);
  }
}

.pulse-badge {
  animation: gold-pulse 2.5s infinite;
}

/* Image Shimmer & Zoom Effect */
.zoom-image {
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.5s ease;
}

.tilt-target:hover .zoom-image {
  transform: scale(1.08);
  filter: contrast(108%) brightness(102%);
}
