/* ============================================================
   Classroom247 Quiz - Dark Gaming Theme
   Black + Neon Green/Cyan accents
   ============================================================ */

body {
  background-color: #0a0e14;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(0,255,136,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(0,212,255,0.06) 0%, transparent 50%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  color: white;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #00ff88;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00ff88;
}

:root {
  --default-theme-color: #00ff88;
  --layer-1-bg-color: #141a23;
  --border-color: rgba(0, 255, 136, 0.15);
  --box-1-bg-color: #1c2330;
  --mobile-bg-color: #0a0e14;
  --neon: #00ff88;
  --cyan: #00d4ff;
  --gold: #ffd43b;
  --red: #ff3b5c;
}

.mobile {
  margin: auto;
  max-width: 425px;
  background: #0a0e14;
  overflow-x: hidden;
  min-height: 100vh;
  scroll-behavior: smooth;
}

.fist_layer {
  background: var(--layer-1-bg-color);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 24px 24px 0 0;
  min-height: 100vh;
}

.first_layer_home {
  background-color: var(--layer-1-bg-color);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 24px 24px 0 0;
  height: auto;
}

.native_ad_slot1 {
  width: 100%;
  height: auto;
  background-color: white;
  margin-bottom: 20px;
  border-radius: 12px;
}

.option {
  background-color: var(--box-1-bg-color);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.15s ease;
}

.option:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.option.correct {
  background-color: rgba(0, 255, 136, 0.12);
  border-color: var(--neon);
  color: var(--neon);
}

.option.wrong {
  background-color: rgba(255, 59, 92, 0.12);
  border-color: var(--red);
  color: var(--red);
}

.ft_area {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: var(--box-1-bg-color);
}

.QA_rules ul {
  text-align: left;
  list-style: disc;
  padding-left: 20px;
}

.QA_rules ul li {
  margin-top: 8px;
  color: #b8c0cc;
}

.popup_model {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 14, 20, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 9000;
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
  overflow-y: auto;
}

.popup_model.show {
  opacity: 1;
}

.usr_reward {
  height: 410px;
  width: 450px;
  background: var(--layer-1-bg-color);
  border: 1.5px solid rgba(0, 255, 136, 0.3);
  border-radius: 28px;
  transition: transform 0.3s ease-in-out;
  transform: scale(0.8);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.usr_reward.show {
  transform: scale(1);
}

.default_btn {
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  padding: 12px;
  border-radius: 12px;
  color: #000;
  font-weight: 700;
  font-size: 15px;
  width: 70%;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 255, 136, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.default_btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 255, 136, 0.45);
}

.q_tile {
  background-color: var(--box-1-bg-color);
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s, border-color 0.15s;
}

.q_tile:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.quiz_play_fwd_btn {
  height: 50px;
  width: 50px;
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  color: #000;
  border-radius: 12px;
  text-align: center;
  font-size: 25px;
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry_fee {
  border-radius: 999px;
  background: rgba(255, 212, 59, 0.1);
  border: 1px solid rgba(255, 212, 59, 0.25);
  color: var(--gold);
  width: 70%;
  max-width: 130px;
  padding: 3px 10px;
  font-weight: 600;
}

.bottom_bar {
  max-width: 425px;
  background: rgba(20, 26, 35, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px 14px 0 0;
}

.user_wallet span {
  background: rgba(255, 212, 59, 0.1) !important;
  border: 1px solid rgba(255, 212, 59, 0.25);
  color: var(--gold) !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-weight: 700;
}

.user_wallet .fa-coins {
  color: var(--gold) !important;
}

.quiz_cat_tile {
  background-color: var(--box-1-bg-color);
  height: auto;
  min-height: 130px;
  word-wrap: break-word;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s, border-color 0.15s;
}

.quiz_cat_tile:hover {
  border-color: var(--neon);
  transform: translateY(-2px);
}

.quiz_cat_tile img {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(0, 212, 255, 0.08));
  border-radius: 12px;
  padding: 4px;
  box-shadow: none;
}

.profile_cirlcle_bg {
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  height: 200px;
  width: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.3);
}

.profile_cirlcle_bg img,
.profile_img {
  background: #0a0e14;
  border-radius: 50%;
}

.user_coin_show {
  background: rgba(255, 212, 59, 0.1);
  border: 1px solid rgba(255, 212, 59, 0.25);
  height: 44px;
  border-radius: 12px;
  width: 40%;
  color: var(--gold);
  font-weight: 700;
}

.progress-bar-container {
  width: 290px;
  height: 8px;
  overflow: hidden;
  position: relative;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  border-radius: 999px;
  position: absolute;
  transition: width 0.3s ease;
}

.first_layer_result {
  min-height: 100vh;
  background: var(--layer-1-bg-color);
  border-radius: 24px 24px 0 0;
}

#treasure-popup {
  z-index: 1111;
}

.adslot_1 {
  width: 100%;
  height: 300px;
}

/* Override common Tailwind bg classes to match dark theme */
.bg-dark { background-color: #141a23 !important; }
.bg-gray-700 { background-color: #1c2330 !important; }
.bg-gray-600 { background-color: #232b3a !important; }
.bg-blue-500 { background-color: var(--cyan) !important; }
.bg-green-500 { background-color: var(--neon) !important; }

.text-blue-400 { color: var(--cyan) !important; }
.text-green-400 { color: var(--neon) !important; }
.text-green-700, .text-green-800, .text-green-900 { color: var(--neon) !important; }

#toast-container > div {
  background: var(--layer-1-bg-color) !important;
  border: 1px solid var(--neon) !important;
  color: white !important;
}

.fa-coins {
  color: var(--gold) !important;
}

/* Media queries (kept from original) */
@media only screen and (max-width: 576px) {
  .mobile { max-width: 576px; }
  .bottom_bar { max-width: 576px; }
  .usr_reward { width: calc(100% - 30px); height: 410px; margin: 15px; }
}

@media only screen and (max-width: 440px) {
  .mobile { max-width: 440px; }
  .bottom_bar { max-width: 440px; }
  .usr_reward { width: calc(100% - 30px); height: 410px; margin: 15px; }
}

@media only screen and (max-width: 400px) {
  .mobile { max-width: 400px; }
  .bottom_bar { max-width: 400px; }
}

@media only screen and (max-width: 360px) {
  .mobile { max-width: 360px; }
}

@media (min-width: 500px) {
  .adslot_1 { width: 100%; height: 300px; }
}

@media (min-width: 800px) {
  .adslot_1 { width: 100%; height: 300px; }
}

/* Popup overlays */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  opacity: 0;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 1000;
  pointer-events: none;
}

.popup-content {
  position: relative;
  height: auto;
  background: var(--layer-1-bg-color);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 16px;
  margin: 0 auto;
  width: 600px;
  padding: 16px;
  pointer-events: auto;
  z-index: 1001;
}

.close-popup {
  outline: none;
  background-color: var(--neon);
  border: 1px solid var(--neon);
  border-radius: 50%;
  color: #000;
  cursor: pointer;
  font-family: arial;
  font-size: 22px;
  font-weight: 700;
  height: 32px;
  line-height: 22px;
  margin-bottom: 10px;
  text-align: center;
  width: 32px;
  z-index: 1003;
}

.close-popup:hover {
  background-color: var(--cyan);
  border-color: var(--cyan);
}

/* AdSense placeholder (kept from original) */
.adsbygoogle {
  background-color: #141a23;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #4a5160;
  font-size: 11px;
  font-weight: 600;
  min-height: 250px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 8px;
}

.adsbygoogle::before {
  content: 'Advertisement';
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  text-align: center;
  color: #4a5160;
  font-weight: 600;
  letter-spacing: 0.2em;
}

@media screen and (max-width: 640px) {
  .popup-content { width: 350px; }
}

@media screen and (max-width: 470px) {
  .popup-content { width: 100%; }
}

/* Reward icon container with subtle pulse */
#lottie-container {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  border-radius: 10px;
  padding: 4px;
  animation: pulse-glow 2s ease-in-out infinite;
  cursor: pointer;
}

#lottie-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
}

/* Headings */
h1, h2, h3, h4, h5, h6 { color: #ffffff; }

.fa-chevron-right { color: #000; }

.QA_area { color: #ffffff; }

.quiz-text { color: #ffffff; font-weight: 600; }

.q_options { display: flex; flex-direction: column; gap: 10px; }

/* ============================================================
   Why Choose Classroom247 - Feature cards (matches reference)
   ============================================================ */
.why-section {
  background: var(--layer-1-bg-color);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 18px 14px;
}

.why-heading {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.why-card {
  padding: 18px 16px;
  background: var(--box-1-bg-color);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  text-align: center;
  margin-bottom: 12px;
  transition: transform 0.15s, border-color 0.15s;
}

.why-card:last-child {
  margin-bottom: 0;
}

.why-card:hover {
  transform: translateY(-2px);
  border-color: var(--neon);
}

.why-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.why-desc {
  font-size: 13px;
  color: #b8c0cc;
  line-height: 1.55;
  padding: 0 8px;
}
