/* =========================================
   VivaJogo — Popup & Cookie Styles
   ========================================= */

/* ---- AGE OVERLAY ---- */
.age-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 1, 28, 0.97);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: overlayFade 0.4s ease;
}
@keyframes overlayFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.age-overlay.hidden { display: none; }

.age-modal {
  background: linear-gradient(145deg, #1F0A3A 0%, #160330 100%);
  border: 1px solid rgba(240,165,0,0.35);
  border-radius: 24px;
  padding: 48px 44px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 32px 96px rgba(123,47,190,0.45), 0 0 0 1px rgba(240,165,0,0.1);
  animation: modalSlide 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalSlide {
  from { transform: translateY(40px) scale(0.94); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.age-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}
.age-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #EDE8F5;
  font-weight: 700;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #7B2FBE, #F0A500);
  border-radius: 50%;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(240,165,0,0.35);
}

.age-modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: #EDE8F5;
  margin-bottom: 14px;
}

.age-modal p {
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  color: #9B8FB5;
  line-height: 1.7;
  margin-bottom: 14px;
}

.age-note {
  background: rgba(240,165,0,0.08);
  border: 1px solid rgba(240,165,0,0.22);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.83rem !important;
  text-align: left;
  margin-bottom: 28px !important;
}
.age-note i { color: #F0A500; margin-right: 6px; }
.age-note strong { color: #EDE8F5; }

.age-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-age-yes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #7B2FBE, #F0A500);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 15px 24px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 6px 20px rgba(123,47,190,0.4);
}
.btn-age-yes:hover { opacity: 0.9; transform: translateY(-2px); }

.btn-age-no {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #9B8FB5;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 13px 24px;
  border-radius: 30px;
  border: 1px solid rgba(155,143,181,0.3);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.btn-age-no:hover { border-color: #E8436A; color: #E8436A; }

/* ---- COOKIE BANNER ---- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9990;
  background: rgba(22, 3, 48, 0.97);
  border-top: 1px solid rgba(240,165,0,0.25);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  animation: cookieSlide 0.4s ease;
}
@keyframes cookieSlide {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-content {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.cookie-content p {
  flex: 1;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  color: #9B8FB5;
  line-height: 1.6;
  min-width: 260px;
}
.cookie-content a { color: #F0A500; }
.cookie-content i { color: #F0A500; margin-right: 6px; }

.cookie-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: linear-gradient(135deg, #7B2FBE, #F0A500);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 10px 22px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
}
.btn-cookie-accept:hover { opacity: 0.88; }

.btn-cookie-decline {
  background: transparent;
  color: #9B8FB5;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid rgba(155,143,181,0.3);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.btn-cookie-decline:hover { color: #EDE8F5; border-color: rgba(237,232,245,0.4); }

@media (max-width: 640px) {
  .age-modal { padding: 32px 24px; }
  .age-modal h2 { font-size: 1.4rem; }
  .cookie-content { flex-direction: column; align-items: flex-start; }
  .cookie-btns { width: 100%; }
  .btn-cookie-accept, .btn-cookie-decline { flex: 1; text-align: center; }
}
