/* ═══════════════════════════════════════════════════════
   Cookie Consent Modal — NOVARIS Design System
   ═══════════════════════════════════════════════════════ */

/* ── Overlay (backdrop) ── */
.cc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 9, 26, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* hidden by default */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc-overlay.cc-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Modal card ── */
.cc-modal {
  max-width: 460px;
  width: 100%;
  background: linear-gradient(160deg, rgba(18, 34, 68, 0.98), rgba(13, 27, 62, 0.98));
  border: 1px solid rgba(77, 174, 229, 0.2);
  border-radius: 20px;
  padding: 2.25rem 2rem 1.75rem;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.4),
    0 16px 32px rgba(0, 0, 0, 0.35),
    0 40px 80px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(77, 174, 229, 0.1) inset,
    0 0 60px rgba(30, 86, 181, 0.12);
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  text-align: center;
  /* entry animation */
  transform: scale(0.92) translateY(12px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity  0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc-overlay.cc-visible .cc-modal {
  transform: scale(1) translateY(0);
}

/* ── Icon ── */
.cc-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1E56B5, #4DAEE5);
  margin: 0 auto 1rem;
}

.cc-modal-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

/* ── Text ── */
.cc-modal-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 0.5rem;
}

.cc-modal-text {
  font-size: 0.85rem;
  color: rgba(200, 218, 248, 0.75);
  margin: 0 0 1.5rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.cc-modal-text a {
  color: #4DAEE5;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.14s ease;
}

.cc-modal-text a:hover {
  color: #7ECEF5;
}

.cc-modal-text a:focus-visible {
  outline: 2px solid #4DAEE5;
  outline-offset: 2px;
  border-radius: 2px;
}

.cc-modal-text a:active {
  color: #3A7FD4;
}

/* ── Button stack ── */
.cc-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* shared button base */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity  0.14s ease,
              box-shadow 0.14s ease;
  -webkit-tap-highlight-color: transparent;
}

.cc-btn:active {
  transform: scale(0.97) translateY(1px);
}

/* ── Accept all (primary) ── */
.cc-btn-accept {
  background: linear-gradient(135deg, #1E56B5, #3A7FD4);
  color: #fff;
  box-shadow:
    0 2px 8px rgba(30, 86, 181, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.cc-btn-accept:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 4px 16px rgba(30, 86, 181, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.cc-btn-accept:focus-visible {
  outline: 2px solid #4DAEE5;
  outline-offset: 2px;
}

/* ── Necessary only (secondary) ── */
.cc-btn-necessary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cc-btn-necessary:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

.cc-btn-necessary:focus-visible {
  outline: 2px solid #4DAEE5;
  outline-offset: 2px;
}

/* ── Decline (ghost) ── */
.cc-btn-decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: none;
  font-weight: 500;
  font-size: 0.8rem;
  padding: 0.5rem 1.25rem;
}

.cc-btn-decline:hover {
  color: rgba(255, 255, 255, 0.75);
}

.cc-btn-decline:focus-visible {
  outline: 2px solid #4DAEE5;
  outline-offset: 2px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .cc-modal {
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: 16px;
  }
}
