/* ============================= */
/* ===== SPLASH OVERLAY ======== */
/* ============================= */
.splash-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

/* ============================= */
/* ===== SPLASH MODAL ========== */
/* ============================= */
.splash-modal {
  display: flex;
  flex-direction: row;
  max-width: 880px;
  width: 95%;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: var(--text);
  animation: fadeIn 0.4s ease;
}

/* Left side (image) */
.splash-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  min-height: 460px;
}

/* Right side (content) */
.splash-content {
  flex: 1;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.splash-text p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 18px;
  color: var(--text);
}

.splash-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.splash-check input {
  accent-color: var(--gold);
  transform: scale(1.2);
}

/* Buttons */
.splash-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.splash-btn {
  padding: 14px;
  font-weight: 600;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.splash-btn.primary {
  background: var(--gold);
  color: #000;
}

.splash-btn.primary:hover {
  background: var(--gold-hover);
}

.splash-btn.link {
  background: transparent;
  color: var(--gold);
  font-size: 0.92rem;
  text-decoration: underline;
}

.splash-btn.link:hover {
  opacity: 0.85;
}

/* ============================= */
/* ===== TERMS / PRIVACY ======= */
/* ============================= */
.terms-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3100;
  animation: fadeIn 0.3s ease;
}

.terms-modal.hidden {
  display: none;
}

.terms-box {
  background: var(--surface);
  color: var(--text);
  max-width: 720px;
  width: 92%;
  max-height: 80vh;
  padding: 32px;
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.35s ease;
}

.terms-box h2 {
  color: var(--gold);
  margin-bottom: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
}

.terms-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.terms-scroll h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
}

.terms-scroll p {
  margin-bottom: 12px;
}

/* Scrollbar elegante */
.terms-scroll::-webkit-scrollbar {
  width: 6px;
}
.terms-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.terms-scroll::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  transition: color 0.25s ease;
}

.close-btn:hover {
  color: var(--gold);
}

/* ============================= */
/* ===== ANIMATIONS ============ */
/* ============================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ============================= */
/* ===== THEME HANDLING ======== */
/* ============================= */
html[data-theme="light"] .splash-modal,
html[data-theme="light"] .terms-box {
  background: #fff;
  color: #111;
}

html[data-theme="dark"] .splash-modal,
html[data-theme="dark"] .terms-box {
  background: #1a1a1a;
  color: #eee;
}

html[data-theme="dark"] .close-btn {
  color: #eee;
}
html[data-theme="dark"] .close-btn:hover {
  color: var(--gold);
}
/* ============================= */
/* ===== SPLASH WARNING ========= */
/* ============================= */
.splash-warning {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #b71c1c; /* vermelho elegante */
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.splash-warning.visible {
  opacity: 1;
}

/* ============================= */
/* ===== RESPONSIVE ============ */
/* ============================= */
@media (max-width: 768px) {
  .splash-modal {
    flex-direction: column;
  }
  .splash-image {
    min-height: 240px;
  }
  .splash-content {
    padding: 28px 20px;
    gap: 22px;
  }
  .terms-box {
    padding: 22px;
  }
}

.inline-link {
  color: var(--gold);
  text-decoration: underline;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.inline-link:hover {
  opacity: 0.75;
}
