/* Cookie Banner — Premium Dark Gold Card */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  width: 100%;
  max-width: 360px;
  background: rgba(22, 22, 22, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 162, 85, 0.35);
  border-radius: 18px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(201, 162, 85, 0.1);
  font-family: "Manrope", "Poppins", sans-serif;
  animation: slideInCard 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Subtle gold glow top-right */
.cookie-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 150px;
  background: radial-gradient(circle at top right, rgba(201, 162, 85, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cookie-banner-container {
  padding: 22px 20px 20px;
}

/* Vertical stack layout */
.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #f5f4f0;
}

/* Logo */
.cookie-banner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-logo {
  width: 130px;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.cookie-banner-logo:hover .cookie-logo {
  opacity: 1;
}

/* Text */
.cookie-banner-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-banner-text h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: "Archivo Black", "Poppins", sans-serif;
  color: #c9a255;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.6;
  color: rgba(245, 244, 240, 0.6);
}

.cookie-banner-link {
  color: #c9a255;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.cookie-banner-link:hover {
  opacity: 0.7;
}

.cookie-banner-link i {
  font-size: 0.72rem;
  margin-left: 2px;
}

/* Divider */
.cookie-banner-text::after {
  content: '';
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: 4px;
}

/* Buttons */
.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.cookie-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 8px;
  border: none;
  border-radius: 100px;
  font-family: "Manrope", "Poppins", sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  width: 100%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease,
              color 0.2s ease;
  white-space: nowrap;
  min-height: 40px;
}

.cookie-btn i {
  font-size: 0.85rem;
}

/* Primary — solid gold */
.cookie-btn-primary {
  background: #c9a255;
  color: #0d0d0d;
  border: 1px solid #c9a255;
  box-shadow: 0 2px 12px rgba(201, 162, 85, 0.25);
}

.cookie-btn-primary:hover {
  background: #d4b06a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 85, 0.45);
}

.cookie-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(201, 162, 85, 0.25);
}

/* Secondary — ghost gold */
.cookie-btn-secondary {
  background: rgba(201, 162, 85, 0.08);
  color: #c9a255;
  border: 1px solid rgba(201, 162, 85, 0.35);
}

.cookie-btn-secondary:hover {
  background: rgba(201, 162, 85, 0.15);
  border-color: rgba(201, 162, 85, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(201, 162, 85, 0.2);
}

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

/* Outline — muted */
.cookie-btn-outline {
  background: transparent;
  color: rgba(245, 244, 240, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn-outline:hover {
  color: rgba(245, 244, 240, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

/* Accessibility */
.cookie-btn:focus-visible {
  outline: 2px solid rgba(201, 162, 85, 0.7);
  outline-offset: 3px;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes slideInCard {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

.cookie-banner.hide {
  animation: slideOutCard 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Mobile — full-width pinned to bottom ───────────────────── */
@media (max-width: 480px) {
  .cookie-banner {
    bottom: 0;
    right: 0;
    left: 0;
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    border-bottom: none;
  }

  .cookie-banner-container {
    padding: 20px 16px 24px;
  }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner,
  .cookie-banner.hide {
    animation: none;
  }

  .cookie-btn {
    transition: none;
  }
}

/* ── High contrast ──────────────────────────────────────────── */
@media (prefers-contrast: high) {
  .cookie-banner {
    background: #161616;
    border: 2px solid #c9a255;
  }

  .cookie-btn-primary {
    border: 2px solid #0d0d0d;
  }

  .cookie-btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #f5f4f0;
  }
}
