/* ============================================
   Upper Deck Lounge — Custom Styles
   ============================================ */

/* --- Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: rgba(200, 164, 94, 0.25);
  color: #050D1A;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #050D1A;
}
::-webkit-scrollbar-thumb {
  background: rgba(200, 164, 94, 0.4);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 164, 94, 0.7);
}

/* --- Nav --- */
#site-header {
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C8A45E;
  transition: width 0.3s ease;
}

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

/* --- Mobile menu --- */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* --- Reveal animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up {
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(0);
}

/* These are progressive enhancement — content is always visible.
   The animation is applied via JS only when the element enters view.
   If JS is disabled, content renders normally at full opacity. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up.animate {
    animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }
  .reveal-left.animate {
    animation: slideLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }
  .reveal-right.animate {
    animation: slideRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Mobile nav links --- */
.mobile-nav-link {
  position: relative;
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #C8A45E;
  transition: width 0.3s ease;
}

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

/* --- Form focus states --- */
input:focus,
textarea:focus {
  outline: none;
}

input::placeholder,
textarea::placeholder {
  transition: opacity 0.3s ease;
}

input:focus::placeholder,
textarea:focus::placeholder {
  opacity: 0.5;
}

/* --- Image hover containers --- */
.group:hover img {
  transform: scale(1.05);
}

/* --- Button press effect --- */
button,
a[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button:active,
a:active {
  transform: scale(0.98);
}

/* --- Responsive tweaks --- */
@media (max-width: 767px) {
  .font-display {
    line-height: 1.1;
  }
}
