/* 
  Custom Font Configuration
  The global --font-main variable ensures that absolutely ALL elements 
  (headers, buttons, body, links, inputs, etc.) share the same custom font.
*/

:root {
  --primary: #917a4b;
  --primary-hover: #7a663e;
  --bg-dark: #19271a;
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --glass-bg: rgba(25, 39, 26, 0.4);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-highlight: rgba(255, 255, 255, 0.05);
  --success: #34d399;
  --danger: #ef4444;
  --font-main: 'Red Hat Display', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
}

body {
  color: var(--text-main);
  background-color: var(--bg-dark);
  background-image: url('https://offertabs.s3.amazonaws.com/offer/2prswd/site/media/69fd05f7615fa8.24089013.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  width: 100%;
}

.glass-container {
  width: 100%;
  max-width: 700px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Intro Content */
.intro-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Intro & Result Image Hero */
.intro-hero-wrapper, .result-hero-wrapper {
  margin: -3rem -3rem 2.5rem -3rem;
  border-bottom: 1px solid var(--glass-border);
}

.hero-link {
  display: block;
}

.intro-hero-img, .result-hero-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* Footer Image */
.footer-image-wrapper {
  margin: 2.5rem -3rem -3rem -3rem;
  border-top: 1px solid var(--glass-border);
}

.footer-link {
  display: block;
}

.footer-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Screens */
.screen {
  animation: fadeIn 0.4s ease-out forwards;
}

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

/* Typography */
h1.hero-title, .question-title, .result-title, .section-title {
  font-weight: 800;
  line-height: 1.1;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #eb9557 0%, #f5d082 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc, .section-desc {
  font-size: 1.0rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-bottom: 2.5rem;
}

.text-center { text-align: center; }

/* Badges */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--glass-highlight);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.badge-success {
  background: rgba(52, 211, 153, 0.2);
  border-color: var(--success);
  color: var(--success);
}
.badge-primary {
  background: rgba(145, 122, 75, 0.2);
  border-color: var(--primary);
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(145, 122, 75, 0.4);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(145, 122, 75, 0.6);
}

#btn-start, #btn-restart {
  background: linear-gradient(135deg, #eb9557 0%, #f5d082 100%);
  color: #19271a;
  box-shadow: 0 4px 14px rgba(235, 149, 87, 0.4);
  border: none;
}

#btn-start {
  margin-bottom: 2.5rem;
}

#btn-start:hover, #btn-restart:hover {
  background: linear-gradient(135deg, #f5d082 0%, #eb9557 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(235, 149, 87, 0.6);
  color: #19271a;
}

.w-100 { width: 100%; }

/* Quiz Progress */
.progress-container {
  margin-bottom: 2.5rem;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #eb9557 0%, #f5d082 100%);
  width: 0%;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(235, 149, 87, 0.6);
}

.progress-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: right;
  font-weight: 500;
}

/* Quiz Questions */
.question-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #eb9557 0%, #f5d082 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.answers-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.answer-btn {
  background: var(--glass-highlight);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 1.25rem;
  font-size: 1.125rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-weight: 500;
}

.answer-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
  transform: translateX(4px);
}

/* Results */
.result-content {
  text-align: center;
}

.result-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #eb9557 0%, #f5d082 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.result-desc {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
}

.save-share-prompt {
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  font-size: 1.125rem;
}

/* Share Box */
.share-box {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-social {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}
.btn-native { background: #6366f1; color: #fff; border: none; }
.btn-copy { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid var(--glass-border); }

.btn-native:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-copy:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* Utilities */
.hidden { display: none !important; }

/* Hide powered by watermark globally to satisfy user request */
#wbx-powered-by-slot { display: none !important; }

/* Overlays */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(25, 39, 26, 0.9);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.spinner {
  width: 48px; height: 48px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-toast {
  position: fixed;
  bottom: 2rem; left: 50%; transform: translateX(-50%);
  background: var(--danger);
  color: white;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
  z-index: 100;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .glass-container {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }
  .intro-hero-wrapper, .result-hero-wrapper {
    margin: -2rem -1.5rem 1.5rem -1.5rem;
  }
  .intro-hero-img, .result-hero-img {
    height: 180px;
  }
  .footer-image-wrapper {
    margin: 2rem -1.5rem -2rem -1.5rem;
  }
  .hero-title { font-size: 2.25rem; }
  .question-title { font-size: 1.5rem; }
  .result-title { font-size: 2rem; }
  
  .btn-social {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  .btn-social svg {
    width: 16px;
    height: 16px;
  }
}