/**
 * Cookie Consent Banner Styles
 * Matches site theme: dark purple/magenta
 */

.cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 40px));
  width: calc(100% - 40px);
  max-width: 420px;
  background: rgba(13, 0, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 102, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  z-index: 999999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 102, 255, 0.1);
  transition: transform 0.35s ease;
}


.cookie-consent-banner.cookie-consent-visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-consent-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-consent-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  padding-right: 24px;
}

.cookie-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-out;
  z-index: 10;
}

.cookie-close-btn:hover {
  background: rgba(255, 102, 255, 0.1);
  color: #ff66ff;
  transform: scale(1.1);
  filter: drop-shadow(0 0 5px rgba(255, 102, 255, 0.8));
}

.cookie-close-btn:active {
  transform: scale(0.95);
  filter: drop-shadow(0 0 2px rgba(255, 102, 255, 0.8));
}

.cookie-close-btn svg {
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.cookie-consent-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.cookie-consent-text a {
  color: #ff66ff;
  text-decoration: none;
}

.cookie-consent-text a:hover {
  text-decoration: underline;
}

/* Cookie Categories */
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-category-info {
  flex: 1;
}

.cookie-category-name {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 2px 0;
}

.cookie-category-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  transition: background 0.2s ease;
}

.cookie-toggle-slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.cookie-toggle input:checked+.cookie-toggle-slider {
  background: #ff66ff;
}

.cookie-toggle input:checked+.cookie-toggle-slider:before {
  transform: translateX(20px);
}

.cookie-toggle input:disabled+.cookie-toggle-slider {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Buttons */
.cookie-consent-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #ff66ff, #cc33cc);
  color: #fff;
}

.cookie-btn-accept:hover {
  filter: brightness(1.1);
}

.cookie-btn-options {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-btn-options:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.cookie-btn-save {
  background: linear-gradient(135deg, #ff66ff, #cc33cc);
  color: #fff;
}

.cookie-btn-save:hover {
  filter: brightness(1.1);
}

.cookie-btn-decline {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

/* Mobile */
@media (max-width: 480px) {
  .cookie-consent-banner {
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 20px;
  }

  .cookie-consent-buttons {
    flex-direction: column;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .cookie-consent-banner,
  .cookie-toggle-slider,
  .cookie-toggle-slider:before,
  .cookie-btn {
    transition: none;
  }
}