﻿/* ============================================================
   main.css — RICHMANCLUB project-web
   Font: Prompt (Google Fonts) — รองรับภาษาไทยเต็มรูปแบบ
   ============================================================ */

* { font-family: 'Prompt', sans-serif; }

body {
  font-family: 'Prompt', sans-serif;
  background-color: #131313;
  background-image:
    linear-gradient(rgba(19, 19, 19, 0.82), rgba(19, 19, 19, 0.82)),
    url('../img/bg/2306.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #e5e2e1;
  -webkit-tap-highlight-color: transparent;
}

/* Glass card */
.glass-card {
  background: rgba(32, 31, 31, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 177, 60, 0.2);
}

/* Gold glow shadow */
.gold-glow {
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

/* Gold text gradient */
.gold-text-gradient {
  background: linear-gradient(to right, #D4AF37, #F9E498, #D4AF37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gold button gradient */
.gold-btn-gradient {
  background: linear-gradient(135deg, #D4AF37 0%, #F9E498 50%, #D4AF37 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.gold-btn-gradient:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 205, 91, 0.4);
}
.gold-btn-gradient:active {
  transform: scale(0.96);
}

/* Shine animation on buttons */
.shine-anim {
  position: relative;
  overflow: hidden;
}
.shine-anim::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.5) 50%,
    rgba(255,255,255,0) 100%);
  transform: rotate(25deg);
  animation: shine 3.5s infinite;
}
@keyframes shine {
  0%   { left: -100%; opacity: 0; }
  50%  { opacity: 0.5; }
  100% { left: 120%;  opacity: 0; }
}

/* Decorative gold border wrapper */
.decorative-border {
  position: relative;
  padding: 2px;
  background: linear-gradient(180deg, #D4AF37, transparent, #D4AF37);
  border-radius: 16px;
}
.decorative-inner {
  background: rgba(19, 19, 19, 0.95);
  border-radius: 14px;
}

/* Section separator line */
.section-separator {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.3), transparent);
  width: 80%;
  margin: 0 auto;
}

/* Pulsing hero image */
@keyframes pulse-slow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.92; transform: scale(1.02); }
}
.animate-pulse-slow {
  animation: pulse-slow 4s ease-in-out infinite;
}

/* Active nav link */
.nav-link {
  transition: color 0.2s;
}
.nav-link.active {
  color: #ffcd5b;
  border-bottom: 2px solid #ffcd5b;
  padding-bottom: 2px;
  font-weight: 700;
}

/* Active drawer nav link */
.drawer-nav-link.active {
  color: #ffcd5b;
  background: rgba(255, 205, 91, 0.07);
  border-left: 3px solid #ffcd5b;
}

/* Main content: push down for header */
@media (min-width: 768px) {
  #main-content {
    padding-top: 4rem; /* 64px header only */
  }
}

/* Page fade-in when injected */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
#main-content > * {
  animation: fadeIn 0.25s ease-out;
}

/* Floating bob animation */
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
.animate-float {
  animation: float-bob 3.5s ease-in-out infinite;
}

/* Gold glow on gradient text */
.gold-text-glow {
  filter:
    drop-shadow(0 0 8px rgba(212, 175, 55, 0.8))
    drop-shadow(0 0 20px rgba(249, 228, 152, 0.4));
}

/* Category card — inactive glass state */
.cat-glass {
  background: rgba(190, 187, 187, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Suppress Swiper's auto-added ::after arrow on custom nav buttons */
.hero-swiper-prev::after,
.hero-swiper-next::after,
.banner-swiper-prev::after,
.banner-swiper-next::after { display: none; }

/* Deposit button — spinning conic border */
@keyframes spin-conic {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}
.deposit-btn-wrap {
  position: relative;
  width: 90px;
  height: auto;
}
.deposit-btn-wrap .spin-ring {
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  background: conic-gradient(#D4AF37, #F9E498, #D4AF37, transparent, transparent);
  animation: spin-conic 2s linear infinite;
  z-index: 0;
}
.deposit-btn-wrap .spin-ring-mask {
  position: absolute;
  inset: 2px;
  border-radius: 9999px;
  background: #0a0a0a;
  z-index: 1;
}
.deposit-btn-wrap .pulse-1,
.deposit-btn-wrap .pulse-2,
.deposit-btn-wrap .pulse-3 {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.35);
  animation: pulse-ring 2.4s ease-out infinite;
  z-index: 0;
}
.deposit-btn-wrap .pulse-2 { animation-delay: 0.8s; }
.deposit-btn-wrap .pulse-3 { animation-delay: 1.6s; }
.deposit-btn-wrap button {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

/* Loading spinner */
.loader {
  border: 3px solid rgba(255,205,91,0.15);
  border-top-color: #ffcd5b;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
