/* ═══════════════════════════════════════════════
   COOKIE CONSENT — Fullscreen Overlay
   ═══════════════════════════════════════════════ */

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: cookieFadeIn 0.4s ease forwards;
}

@keyframes cookieFadeIn {
  to { opacity: 1; }
}

.cookie-box {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2.2rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  transform: scale(0.92);
  animation: cookiePopIn 0.4s 0.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cookiePopIn {
  to { transform: scale(1); }
}

[data-theme="dark"] .cookie-box {
  background: #1a1a1a;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.cookie-icon {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
  display: block;
}

.cookie-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary, #000);
  margin-bottom: 0.6rem;
}

.cookie-desc {
  font-size: 0.88rem;
  color: var(--text-muted, rgba(0,0,0,0.5));
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cookie-desc a {
  color: var(--text-secondary, rgba(0,0,0,0.7));
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Small reject link — between text and button */
.cookie-reject {
  display: block;
  margin-bottom: 1.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.3);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.cookie-reject:hover {
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .cookie-reject {
  color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .cookie-reject:hover {
  color: rgba(255, 255, 255, 0.4);
}

/* Big accept button */
.cookie-accept {
  display: block;
  width: 100%;
  padding: 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: #000;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cookie-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cookie-accept:active {
  transform: translateY(0);
}

[data-theme="dark"] .cookie-accept {
  background: #fff;
  color: #000;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .cookie-box {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .cookie-title {
    font-size: 1.1rem;
  }

  .cookie-accept {
    font-size: 0.95rem;
    padding: 0.9rem;
  }
}
