/* ==========================================================================
   Cookie Consent Banner – Anubis Analytics
   ========================================================================== */
.cookie-consent--hidden {
  display: none !important;
}

.cookie-consent__overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 26, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
}

.cookie-consent__box {
  position: fixed;
  bottom: var(--space-xl, 2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 94%;
  max-width: 540px;
  background: linear-gradient(145deg, #13133a, #0d0d2b);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(244, 132, 95, 0.08);
  animation: ccSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ccSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(30px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Main view */
.cookie-consent__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #eeeef6;
  margin-bottom: 0.75rem;
}

.cookie-consent__text {
  font-size: 0.875rem;
  color: #9898b8;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.cookie-consent__text a {
  color: #f4845f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__text a:hover {
  color: #f7a48a;
}

/* Buttons */
.cookie-consent__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-consent__btn {
  padding: 0.6rem 1.2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-consent__btn--accept {
  background: linear-gradient(135deg, #f4845f, #e06f4a);
  color: #0a0a1a;
}

.cookie-consent__btn--accept:hover {
  box-shadow: 0 4px 20px rgba(244, 132, 95, 0.35);
  transform: translateY(-1px);
}

.cookie-consent__btn--necessary {
  background: rgba(255, 255, 255, 0.08);
  color: #c8c8e0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-consent__btn--necessary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #eeeef6;
}

.cookie-consent__btn--settings {
  background: transparent;
  color: #9898b8;
  padding: 0.6rem 0.8rem;
}

.cookie-consent__btn--settings:hover {
  color: #eeeef6;
}

/* Settings / Details view */
.cookie-consent__details {
  display: none;
}

.cookie-consent--settings .cookie-consent__main {
  display: none;
}

.cookie-consent--settings .cookie-consent__details {
  display: block;
}

.cookie-consent__category {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-consent__category:first-child {
  padding-top: 0;
}

.cookie-consent__category:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
}

/* Toggle switch */
.cookie-consent__toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  margin-bottom: 0.35rem;
}

.cookie-consent__toggle input {
  display: none;
}

.cookie-consent__slider {
  position: relative;
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.cookie-consent__slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #6a6a8e;
  border-radius: 50%;
  transition: all 0.2s;
}

.cookie-consent__toggle input:checked + .cookie-consent__slider {
  background: rgba(244, 132, 95, 0.3);
}

.cookie-consent__toggle input:checked + .cookie-consent__slider::after {
  transform: translateX(18px);
  background: #f4845f;
}

.cookie-consent__toggle input:disabled + .cookie-consent__slider {
  opacity: 0.5;
}

.cookie-consent__toggle input:disabled:checked + .cookie-consent__slider {
  background: rgba(78, 205, 196, 0.3);
}

.cookie-consent__toggle input:disabled:checked + .cookie-consent__slider::after {
  background: #4ecdc4;
}

.cookie-consent__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #eeeef6;
}

.cookie-consent__desc {
  font-size: 0.8rem;
  color: #6a6a8e;
  line-height: 1.5;
  padding-left: calc(40px + 0.75rem);
}

/* ==========================================================================
   Floating Cookie Button (FAB)
   ========================================================================== */
.cookie-fab {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 9997;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #13133a, #0d0d2b);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #9898b8;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: ccFabIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ccFabIn {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

.cookie-fab:hover {
  color: #f4845f;
  border-color: rgba(244, 132, 95, 0.3);
  box-shadow: 0 4px 24px rgba(244, 132, 95, 0.2);
  transform: scale(1.1);
}

.cookie-fab--hidden {
  display: none !important;
}

/* Mobile */
@media (max-width: 480px) {
  .cookie-consent__box {
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 1rem 1rem 0 0;
  }

  @keyframes ccSlideUp {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .cookie-consent__actions {
    flex-direction: column;
  }

  .cookie-consent__btn {
    text-align: center;
  }
}
