/* ============================================================
   EVERGREEN ROLEPLAY — style.css (Tailwind & shadcn/ui Theme Layer)
   ============================================================ */

/* ── CUSTOM RESET & SMOOTH SCROLL ───────────────────────────── */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: #050505;
  color: #f8fafc;
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
}

/* ── CUSTOM SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #c49a00;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f5c518;
}

/* ── MARQUEE ANIMATION ──────────────────────────────────────── */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* ── SCROLL REVEAL ANIMATIONS ───────────────────────────────── */
.reveal-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── MODAL UTILITIES ────────────────────────────────────────── */
.modal-backdrop.active {
  display: flex !important;
  animation: fadeIn 0.2s ease-out forwards;
}

.modal-content {
  transform: scale(0.96);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── NAV LINK ACTIVE STATES ─────────────────────────────────── */
.nav-link.active {
  color: #f5c518 !important;
  background-color: rgba(245, 197, 24, 0.12) !important;
  font-weight: 700;
}

/* ── TOAST NOTIFICATION ANIMATION ───────────────────────────── */
.toast-item {
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards, fadeOut 0.3s ease-in 3.5s forwards;
}

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

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px); pointer-events: none; }
}

/* ── GACHA CARD EFFECTS ─────────────────────────────────────── */
.gacha-card-reveal {
  animation: flipCard 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes flipCard {
  0% { transform: scale(0.7) rotateY(90deg); opacity: 0; }
  50% { transform: scale(1.08) rotateY(0deg); opacity: 1; }
  100% { transform: scale(1) rotateY(0deg); opacity: 1; }
}

/* ── GLASSMORPHISM BORDER ENHANCEMENTS ──────────────────────── */
.glass-border {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
