/* =========================================
   JACKPOTLAND - style.css (CLEAN + FIXED)
   - Admin bg.json background visible
   - Mobile framing improved (girl+boy visible)
   - Wheel + BUTTON always centered
   - ✅ Spin result now shows as overlay ON TOP of wheel (better mobile UX)
   ========================================= */

/* Reset and Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;

  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

/* ✅ Overlay always on (text readable over any background) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  pointer-events: none;
  z-index: -1;
}

/* Mobile background framing (show characters better) */
@media (max-width: 768px){
  html, body { background-position: 35% 10% !important; }
}
@media (max-width: 420px){
  html, body { background-position: 32% 8% !important; }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #d4af37;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.nav-menu { display: flex; list-style: none; gap: 30px; }

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active{
background: transparent !important;
box-shadow: none !important;
}

.nav-right { display: flex; align-items: center; gap: 20px; }




.user-menu { display: flex; align-items: center; gap: 15px; }
#username-display { color: #d4af37; font-weight: 600; }

.logout-btn {
  background: linear-gradient(45deg, #d4af37, #f4d03f);
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}
.logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* TOP LOGO */
.top-logo-section{
  padding-top: 90px;
  padding-bottom: 10px;
  text-align: center;
  background: rgba(0,0,0,0.15);
  border-bottom: 1px solid rgba(212,175,55,0.20);
}
.big-logo-link{ display: inline-block; text-decoration: none; }
.big-logo-wrap{
  position: relative;
  width: min(520px, 92vw);
  margin: 0 auto;
  cursor: pointer;
  user-select: none;
}
.big-logo{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,.45));
  transition: transform .18s ease, filter .18s ease;
}
.big-logo-wrap:hover .big-logo{
  transform: scale(1.03);
  filter: drop-shadow(0 14px 35px rgba(0,0,0,.55));
}
.tap-text{
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .8px;
  font-size: 14px;
  text-transform: uppercase;
  background: rgba(0,0,0,.60);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  backdrop-filter: blur(6px);
  z-index: 2;
  text-shadow: 0 0 10px rgba(0,0,0,.5);
}
@media (max-width: 480px){
  .top-logo-section{ padding-top: 80px; }
  .tap-text{ font-size: 12px; padding: 7px 12px; }
}

/* Hero */
.hero {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0,0,0,0.18);
  margin-top: 0;
  padding: 30px 14px;
}
.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;

  /* ✅ Slightly richer "Jackpot" gold */
  background: linear-gradient(45deg, #ffd54a, #ff9f1a, #ffd54a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  text-shadow: 0 0 30px rgba(255, 193, 7, 0.45);
  animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
  from { filter: drop-shadow(0 0 20px rgba(255, 193, 7, 0.45)); }
  to { filter: drop-shadow(0 0 40px rgba(255, 193, 7, 0.75)); }
}
.hero-subtitle { font-size: 1.5rem; margin-bottom: 30px; color: #cccccc; }

.cta-button {
  background: linear-gradient(45deg, #d4af37, #f4d03f);
  color: #000;
  border: none;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

/* Titles */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 30px;
  background: linear-gradient(45deg, #d4af37, #f4d03f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Wheel Section */
.wheel-section {
  padding: 70px 0;
  background: rgba(0,0,0,0.22);
}

.wheel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.wheel-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  isolation: isolate; /* ✅ keeps overlay stacking clean */
}

.pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 40px solid #d4af37;
  z-index: 10;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.8));
}

.wheel-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.5);
  transition: transform 3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
  position: relative;
  z-index: 1;
}

/* ✅ BUTTON exactly center (NO extra +10px) */
.spin-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  background: linear-gradient(45deg, #d4af37, #f4d03f);
  color: #000;
  border: none;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  z-index: 11;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
  transition: all 0.3s ease;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}

.spin-button:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 0 40px rgba(212, 175, 55, 1);
}
.spin-button:disabled { opacity: 0.5; cursor: not-allowed; }

.wheel-info { text-align: center; min-width: 300px; }

/* Countdown */
.countdown {
  background: rgba(0, 0, 0, 0.75);
  padding: 20px;
  border-radius: 15px;
  border: 2px solid #d4af37;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}
.countdown span:first-child { display: block; margin-bottom: 10px; color: #d4af37; font-weight: 600; }
#countdown-timer { font-size: 2rem; font-weight: 700; color: #d4af37; text-shadow: 0 0 20px rgba(212, 175, 55, 0.8); }

/* =========================================
   ✅ SPIN RESULT OVERLAY (on top of wheel)
   IMPORTANT: works with your current HTML (#spin-result exists inside .wheel-info)
   We "teleport" visually: fixed overlay centered on screen.
   ========================================= */
#spin-result{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 92vw);
  z-index: 2600;
  display: none; /* JS already toggles */
}

/* Dim backdrop behind overlay */
#spin-result::before{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  z-index: -1;
}

/* The card itself */
#spin-result.spin-result{
  background: rgba(0, 0, 0, 0.88);
  padding: 26px;
  border-radius: 16px;
  border: 2px solid #d4af37;
  box-shadow: 0 0 45px rgba(212, 175, 55, 0.45);
}

/* Optional close icon (CSS only).
   If you want clickable close, I'll add small JS too. */
#spin-result::after{
  content:"✕";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  opacity: .9;
  pointer-events: none; /* JS ilə istəsən aktiv edərik */
}

.spin-result h3 { color: #d4af37; margin-bottom: 12px; font-size: 1.7rem; }
#prize-text { color: #f4d03f; font-size: 1.4rem; font-weight: 700; }




/* Lucky Box */
.lucky-box-section { padding: 80px 0; background: rgba(0,0,0,0.18); }
.lucky-box-container { display: flex; align-items: center; justify-content: center; gap: 50px; flex-wrap: wrap; }
.box-wrapper { position: relative; width: 300px; height: 300px; }
.lucky-box-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.5));
  transition: all 0.5s ease;
}
.open-box-btn {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(45deg, #d4af37, #f4d03f);
  color: #000;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
}
.open-box-btn:hover:not(:disabled) {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}
.open-box-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.box-info { text-align: center; min-width: 250px; }
#lucky-box-status { font-size: 1.2rem; color: #d4af37; }

/* Gallery */
.gallery-section { padding: 80px 0; background: rgba(0,0,0,0.18); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  border: 2px solid #d4af37;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 8px 40px rgba(212, 175, 55, 0.4); }
.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item-title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: #d4af37;
  padding: 20px;
  font-weight: 600;
}

/* Videos */
.videos-section { padding: 80px 0; background: rgba(0,0,0,0.18); }
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}
.video-item {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid #d4af37;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}
.video-item:hover { transform: translateY(-5px); box-shadow: 0 8px 40px rgba(212, 175, 55, 0.4); }
.video-item video { width: 100%; height: 200px; object-fit: cover; }
.video-info { padding: 20px; }
.video-title { color: #d4af37; font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.video-description { color: #cccccc; font-size: 0.9rem; line-height: 1.5; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}
.modal-content {
  background: rgba(0,0,0,0.85);
  margin: 5% auto;
  padding: 30px;
  border: 2px solid #d4af37;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
  position: relative;
}
.close {
  color: #d4af37;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}
.close:hover { color: #f4d03f; text-shadow: 0 0 10px rgba(212, 175, 55, 0.8); }

.auth-tabs { display: flex; margin-bottom: 30px; border-bottom: 2px solid #d4af37; }
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: #ffffff;
  padding: 15px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.auth-tab.active {
  color: #d4af37;
  background: rgba(212, 175, 55, 0.1);
  border-bottom: 3px solid #d4af37;
}

.auth-form h3 { color: #d4af37; margin-bottom: 20px; text-align: center; font-size: 1.5rem; }
.auth-form input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #d4af37;
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  transition: all 0.3s ease;
}
.auth-form input:focus {
  outline: none;
  border-color: #f4d03f;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}
.auth-form input::placeholder { color: #888888; }

.auth-form button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(45deg, #d4af37, #f4d03f);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.auth-form button:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4); }

.error-message { color: #ff4444; font-size: 14px; margin-bottom: 15px; text-align: center; }

/* Box Result Modal */
.box-open-animation { margin: 20px 0; }
.opened-box { width: 150px; height: 150px; object-fit: contain; animation: boxOpen 1s ease-out; }
@keyframes boxOpen {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}
#box-result-message { font-size: 1.2rem; color: #d4af37; margin: 20px 0; }
#box-close-btn {
  padding: 10px 25px;
  background: linear-gradient(45deg, #d4af37, #f4d03f);
  color: #000;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.88);
  border-top: 2px solid #d4af37;
  padding: 30px 0;
  text-align: center;
  margin-top: 80px;
}
.footer p { color: #c9c9c9; }

/* Responsive */
@media (max-width: 768px) {
  .nav-container { padding: 0 12px; height: 60px; }
  .nav-logo img { height: 40px; }
  .nav-menu { gap: 12px; }
  .nav-link { padding: 8px 12px; font-size: 14px; }

  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { font-size: 1.1rem; }

  .wheel-wrapper { width: min(340px, 78vw); height: min(340px, 78vw); }
  .spin-button { width: clamp(70px, 17vw, 100px); height: clamp(70px, 17vw, 100px); }

  .section-title { font-size: 2rem; margin-bottom: 16px; }

  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
  .videos-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

  .modal-content { width: 95%; margin: 10% auto; padding: 20px; }
}

@media (max-width: 480px) {
  .nav-menu { gap: 10px; }
  .nav-link { padding: 6px 10px; font-size: 12px; }

  .hero-title { font-size: 2rem; }

  .wheel-wrapper { width: 76vw; height: 76vw; }
  .pointer {
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #d4af37;
    top: -14px;
  }

  .box-wrapper { width: 200px; height: 200px; }
}
/* =========================================
   ✅ WHITE TEXT + BLACK OUTLINE (PRO READABLE)
   ========================================= */

/* Navbar menu */
.nav-link{
  color:#ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  text-shadow:
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
     0   4px 14px rgba(0,0,0,.85);
  font-weight: 800;
}

/* Active / hover - biraz gold parıltı (amma yenə ağ qalır) */
.nav-link:hover, .nav-link.active{
background: transparent !important;
box-shadow: none !important;
}

/* Section titles (Çarx, Qalereya, Videolar, Şanslı Qutu və s.) */
.section-title{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  background: none !important;
  text-shadow:
    -3px -3px 0 #000,
     3px -3px 0 #000,
    -3px  3px 0 #000,
     3px  3px 0 #000,
     0   6px 18px rgba(0,0,0,.90);
  letter-spacing: .5px;
  font-weight: 900;
}

/* Hero title gradienti istəmirsənsə ağ et (istəsən saxlayarıq) */
.hero-title{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  background: none !important;
  text-shadow:
    -4px -4px 0 #000,
     4px -4px 0 #000,
    -4px  4px 0 #000,
     4px  4px 0 #000,
     0   10px 30px rgba(0,0,0,.85);
  animation: none !important;
}

/* Spin result title */
.spin-result h3{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  background: none !important;
  text-shadow:
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
     0   4px 14px rgba(0,0,0,.85);
}

/* Lucky box status */
#lucky-box-status{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  background: none !important;
  text-shadow:
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
     0   4px 14px rgba(0,0,0,.85);
  font-weight: 800;
}

/* Modal titles */
.auth-form h3{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  background: none !important;
  text-shadow:
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
     0   4px 14px rgba(0,0,0,.85);
}