/* === Reset + Background Fix === */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-image: url("/Assets/chess.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
}

/* Allow layout to push footer to bottom */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


/* 🔝 Top Bar (Home Page Updated) */
.top-bar {
  background: rgba(0, 0, 0, 0.9);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 25px;
  border-bottom: 2px solid cyan;
  box-shadow: 0 0 20px cyan;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-title {
  color: cyan;
  font-size: 26px;
  font-weight: bold;
  text-shadow: 0 0 5px cyan;
}

.coins-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  padding: 6px 12px;
  border-radius: 999px;
}

.inline-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}

.top-bar button {
  background: cyan;
  border: none;
  padding: 7px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: black;
  transition: 0.2s;
}

.top-bar button:hover {
  background: #00ffff90;
}

/* Space out username, rank, coins, and buttons on the right */
#userStats {
  display: flex;          /* JS already sets display:flex inline, this is just a backup */
  align-items: center;
  gap: 12px;              /* 👈 tweak this number for more/less spacing (try 16–20 if you want bigger gaps) */
}

/* === Main Buttons === */
.main-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 100px;
    margin-bottom: 120px;   /* Pushes content up above footer */
  gap: 50px;
}

.main-buttons button {
  background-color: rgba(0, 0, 0, 0.897);
  border: 2px solid #00ebfc;
  color: white;
  font-size: 1.5em;
  padding: 15px 40px;
  border-radius: 12px;
  cursor: pointer;
  width: 320px;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-buttons button:hover {
  background-color: #00ebfc;
  color: black;
  transform: scale(1.03);
}

.btn-icon {
  height: 80px;
  margin-right: 20px;
  vertical-align: middle;
}

/* === Popup === */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.popup-content {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  border: 2px solid #00ebfc;
}

.popup-content input {
  width: 90%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.popup-content button {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #00ebfc;
  color: black;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.popup-content button:hover {
  background-color: #00cfe3;
}

.popup-content .forgot-link {
  margin-top: 8px;
  font-size: 0.9em;
}

.popup-content a {
  color: #00ebfc;
  text-decoration: none;
}

.popup-content a:hover {
  text-decoration: underline;
}


/* ===== Popup for 48-Hour Hold Notice ===== */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup.hidden {
  display: none;
}

.popup-content {
  background: rgba(20, 20, 20, 0.95);
  border: 2px solid cyan;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 230, 255, 0.5);
  width: 90%;
  max-width: 400px;
}

.popup-content h3 {
  color: cyan;
  margin-bottom: 10px;
}

.popup-content button {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  background: cyan;
  color: black;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}

/* --- Top Bar Layout Tweaks --- */
.top-left,
.top-right {
  display: flex;
  align-items: center;
}

.top-left {
  gap: 10px;
}

.top-right {
  gap: 20px;
}

/* Title text on the left */
.site-title {
  font-size: 1.3em;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Coins pill around your coin image + amount */
.coins-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.6);
}

.coins-label {
  opacity: 0.9;
}

/* Keep your coin image looking good */
.inline-icon {
  height: 24px;
  width: 24px;
  vertical-align: middle;
}
/* === ENHANCED TRUST FOOTER === */

.site-footer {
  width: 100%;
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.55);
  border-top: 2px solid rgba(0, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  color: #dffeff;
  text-align: center;
  margin-top: auto;
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-brand {
  font-size: 14px;
  opacity: 0.9;
}

.footer-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.95;
  font-size: 13px;
}

.trust-icon {
  height: 20px;
  opacity: 0.9;
  filter: drop-shadow(0 0 4px cyan);
}

.footer-links {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  font-size: 13px;
}

.footer-links a {
  color: #6dfcff;
  text-decoration: none;
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
  text-shadow: 0 0 8px cyan;
}

.age-badge {
  padding: 2px 6px;
  font-size: 11px;
  border: 1px solid red;
  border-radius: 4px;
  color: #ff9a9a;
  background: rgba(255, 0, 0, 0.2);
}

.footer-contact {
  font-size: 12px;
  margin-top: 3px;
  opacity: 0.7;
}

.footer-contact a {
  color: #8ffcff;
  text-decoration: none;
}

.footer-contact a:hover {
  text-shadow: 0 0 6px cyan;
}

.footer-trust {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin: 8px 0 12px 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #bffaff;
  opacity: 0.85;
}

.trust-item .trust-icon {
  width: 18px;
  filter: drop-shadow(0 0 4px #00ffff55);
}

/* ------------------------------------
   Legal Pages (Terms / Privacy)
------------------------------------ */
.legal-page {
  background: #000;
  color: white;
  padding: 40px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
}

.legal-page h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.back-link {
  color: cyan;
  font-size: 18px;
  display: inline-block;
  margin-top: 30px;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* ============================
   📱 MOBILE RESPONSIVE TOP BAR
   ============================ */
@media (max-width: 768px) {

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 18px;
    gap: 10px;
    text-align: left;
  }

  .site-title {
    font-size: 20px;
  }

  .top-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  #userStats {
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
  }

  .coins-pill {
    padding: 6px 10px;
  }

  .top-bar button {
    padding: 6px 12px;
    font-size: 0.9em;
  }

  .main-buttons {
    margin-top: 40px;
  }

  .btn-icon {
    height: 50px;
    margin-right: 10px;
  }

  .main-buttons button {
    width: 85%;
    font-size: 1.2em;
    padding: 12px 20px;
  }
}
