/* Global Styles & Variables */
:root {
  --primary-font: 'Montserrat', sans-serif;
  --bg-color-dark: #1f014a; /* default for quiz */
  --bg-color-intro: #060A2A; /* dark blue for intro */
  --text-white: #ffffff;
  --highlight-yellow: #fcd500;
  --btn-bg: #0d0124;
  --btn-border: #ffffff;
  --purple-text: #9600d8;
  --light-gray: #f8f9fa;
  
  --color-correct: #28a745;
  --color-wrong: #dc3545;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: var(--primary-font);
  background-color: var(--bg-color-intro); /* Start with intro bg */
  color: var(--text-white);
  height: 100%;
  transition: background-color 0.5s ease;
}

body.quiz-active {
  background-color: var(--bg-color-dark);
}

/* App Container */
.app-wrapper-container {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Geometric Background */
#geometric-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, rgba(31, 1, 74, 0.95), rgba(68, 0, 125, 0.95)),
    url('data:image/svg+xml;utf8,<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg"><path d="M0 0 L400 400 L0 400 Z" fill="rgba(255,0,127,0.05)"/></svg>');
  background-size: cover;
  z-index: 0;
}

#geometric-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(200, 0, 255, 0.2), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(0, 200, 255, 0.1), transparent 50%);
}

.main-content-area {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-left: 20px;
  padding-right: 20px;
}

.view-section {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* === INTRO VIEW STYLES === */
.intro-title {
  font-size: 1.8rem;
  font-weight: 700;
}

.intro-stats {
  padding: 0;
}

.intro-stats li {
  text-align: center;
}

.intro-stats strong {
  font-size: 1.8rem;
  color: #fff;
}

.intro-stats p {
  font-size: 0.8rem;
  line-height: 1.2;
  margin-top: 5px;
  color: #b0c4de; /* light blue text */
}

.test-knowledge-box h4 {
  font-size: 1rem;
  color: #b0c4de;
}

.test-knowledge-box h1 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
}

.redirection-strip {
  background: rgba(0,0,0,0.5);
  padding: 15px;
  border-radius: 8px;
}

#skip-intro-btn {
  color: var(--text-white);
  text-decoration: underline;
  font-weight: 600;
}

/* Helper Classes */
.highlight-text {
  color: var(--highlight-yellow);
  font-weight: 800;
}
.text-yellow {
  color: var(--highlight-yellow);
}
.text-red {
  color: var(--color-wrong);
}

/* === QUIZ VIEW STYLES === */
.quiz-header h1 {
  font-size: 1.8rem;
}

.sub-header-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0;
}

.question-text {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.quiz-btn {
  background-color: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--text-white);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-btn:active {
  transform: scale(0.98);
}

.quiz-btn.btn-correct {
  background-color: var(--color-correct);
  border-color: var(--color-correct);
}

.quiz-btn.btn-wrong {
  background-color: var(--color-wrong);
  border-color: var(--color-wrong);
}

.emoji-icon {
  font-size: 1.4rem;
}

.login-link {
  color: var(--text-white);
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-catchphrase {
  font-size: 1.3rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lite-icon-wrapper {
  display: flex;
  align-items: center;
}

.lite-icon {
  background-color: #a824ff;
  color: var(--highlight-yellow);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2), 0 4px 8px rgba(0,0,0,0.3);
}

.exclamation {
  color: #a824ff;
  font-size: 2rem;
  font-weight: 900;
  margin-left: 2px;
}

.terms-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

.terms-text a {
  color: var(--text-white);
  text-decoration: underline;
  font-weight: 600;
}

/* === POPUP OVERLAY STYLES === */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.popup-overlay.d-none {
  display: none !important;
}

.popup-card {
  background-color: #120338;
  border: 2px solid var(--highlight-yellow);
  border-radius: 16px;
  padding: 30px 20px;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 0 30px rgba(252, 213, 0, 0.2);
}

.popup-btn {
  background: linear-gradient(90deg, #9600d8, #6000a3);
  color: var(--text-white);
  border: none;
  padding: 12px 40px;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: 800;
  width: 100%;
  box-shadow: 0 6px 15px rgba(150, 0, 216, 0.5);
  cursor: pointer;
  transition: transform 0.2s;
}
.popup-btn:active {
  transform: scale(0.95);
}

/* === SUCCESS VIEW STYLES === */
.success-card {
  background: var(--text-white);
  border-radius: 20px 80px 20px 20px;
  padding: 25px 20px 30px 20px;
  margin-top: 30px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-left: 8px solid var(--highlight-yellow);
}

.success-title {
  color: var(--purple-text);
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 0;
}

.coins-reward-box {
  background: var(--light-gray);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.coin-circle {
  background: var(--highlight-yellow);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 15px rgba(252, 213, 0, 0.4), inset 0 -4px 0 rgba(0,0,0,0.1);
}

.coin-text {
  color: #000;
  font-weight: 900;
  font-size: 1.8rem;
  text-align: center;
  line-height: 1;
}

.coin-text span {
  font-size: 0.9rem;
  font-weight: 700;
}

.reward-text h3 {
  color: #4a4a4a;
  font-weight: 800;
  font-size: 1.4rem;
  margin: 0;
}

.reward-text p {
  color: #6c757d;
  font-weight: 600;
  margin: 0;
  font-size: 1.1rem;
}

.start-btn-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-right: -10px;
}

.lets-start-btn {
  background: linear-gradient(90deg, #9600d8, #6000a3);
  color: var(--text-white);
  border: none;
  padding: 12px 40px;
  border-radius: 30px 5px 30px 5px;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 6px 15px rgba(150, 0, 216, 0.5);
  cursor: pointer;
  transition: transform 0.2s;
}

.lets-start-btn:active {
  transform: scale(0.95);
}

.play-more-text {
  color: #4a4a4a;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  line-height: 1.4;
}

.features-list {
  padding-left: 10px;
}

.features-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 15px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.features-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  background-color: var(--highlight-yellow);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--highlight-yellow);
}

.made-in-india {
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
}

/* Animations */
.animated-zoom {
  animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.pulse-animation {
  animation: pulse 2s infinite;
}

.slide-in-right {
  animation: slideRight 0.8s ease-out forwards;
}

.slide-in-up {
  opacity: 0;
  animation: slideUp 0.8s ease-out 0.3s forwards;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-in 0.8s forwards;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(252, 213, 0, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(252, 213, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(252, 213, 0, 0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

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