/* ============================================================
   CIRCONIS — Cookie Consent Styles
   css/cookie-consent.css
   ============================================================ */


/* ============================================================
   BANNER — bottom bar
   ============================================================ */
.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: rgba(10, 8, 6, 0.97);
  border-top: 1px solid rgba(220, 169, 80, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.25rem clamp(1.25rem, 5vw, 3rem);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}

.cc-banner--visible {
  transform: translateY(0);
}

.cc-banner__inner {
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cc-banner__text {
  flex: 1;
  min-width: 240px;
}

.cc-banner__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  color: #E7DBC7;
  margin-bottom: 0.375rem;
  line-height: 1;
}

.cc-banner__desc {
  font-size: 0.8125rem;
  color: rgba(231, 219, 199, 0.5);
  line-height: 1.6;
}

.cc-banner__link {
  color: #DCA950;
  text-decoration: underline;
  text-decoration-color: rgba(220, 169, 80, 0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}

.cc-banner__link:hover {
  text-decoration-color: #DCA950;
}

.cc-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.cc-btn {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
}

.cc-btn:hover  { transform: translateY(-1px); }
.cc-btn:active { transform: translateY(0); }

.cc-btn--primary {
  background: #DCA950;
  color: #0E0C08;
  border: 1.5px solid #DCA950;
}
.cc-btn--primary:hover {
  background: #E8BA60;
  border-color: #E8BA60;
  box-shadow: 0 4px 16px rgba(220, 169, 80, 0.3);
}

.cc-btn--outline {
  background: transparent;
  color: #DCA950;
  border: 1.5px solid rgba(220, 169, 80, 0.4);
}
.cc-btn--outline:hover {
  border-color: #DCA950;
  background: rgba(220, 169, 80, 0.06);
}

.cc-btn--ghost {
  background: transparent;
  color: rgba(231, 219, 199, 0.45);
  border: 1.5px solid rgba(231, 219, 199, 0.12);
}
.cc-btn--ghost:hover {
  color: rgba(231, 219, 199, 0.8);
  border-color: rgba(231, 219, 199, 0.25);
}


/* ============================================================
   OVERLAY — modal backdrop
   ============================================================ */
.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

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

/* ============================================================
   MODAL
   ============================================================ */
.cc-modal {
  width: 100%;
  max-width: 600px;
  background: #13110D;
  border: 1px solid rgba(220, 169, 80, 0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  transform: translateY(16px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 1rem;
}

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

/* Modal header */
.cc-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(220, 169, 80, 0.1);
}

.cc-modal__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: #E7DBC7;
}

.cc-modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(220, 169, 80, 0.15);
  border-radius: 4px;
  color: rgba(231, 219, 199, 0.5);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.cc-modal__close:hover {
  color: #DCA950;
  border-color: rgba(220, 169, 80, 0.4);
  background: rgba(220, 169, 80, 0.06);
}

/* Modal body */
.cc-modal__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 60vh;
  overflow-y: auto;
}

.cc-modal__intro {
  font-size: 0.8125rem;
  color: rgba(231, 219, 199, 0.45);
  line-height: 1.65;
}

/* Modal footer */
.cc-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(220, 169, 80, 0.1);
  background: rgba(0, 0, 0, 0.2);
}


/* ============================================================
   COOKIE CATEGORIES
   ============================================================ */
.cc-category {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(220, 169, 80, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.cc-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.cc-category__info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.cc-category__name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #E7DBC7;
}

.cc-category__desc {
  font-size: 0.75rem;
  color: rgba(231, 219, 199, 0.4);
  line-height: 1.5;
}

/* Cookie detail list */
.cc-cookie-list {
  list-style: none;
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid rgba(220, 169, 80, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.cc-cookie-list li {
  font-size: 0.75rem;
  color: rgba(231, 219, 199, 0.35);
  line-height: 1.55;
  padding-left: 0.75rem;
  position: relative;
}

.cc-cookie-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #DCA950;
  opacity: 0.4;
  font-size: 0.625rem;
  top: 2px;
}

.cc-cookie-list li strong {
  color: rgba(231, 219, 199, 0.6);
}


/* ============================================================
   TOGGLE SWITCH
   ============================================================ */
.cc-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}

.cc-toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-toggle__track {
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  transition: background 0.25s, border-color 0.25s;
  display: block;
}

.cc-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: rgba(231, 219, 199, 0.3);
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s;
  display: block;
}

/* Checked state */
.cc-toggle__input:checked + .cc-toggle__track {
  background: rgba(220, 169, 80, 0.2);
  border-color: rgba(220, 169, 80, 0.5);
}

.cc-toggle__input:checked + .cc-toggle__track .cc-toggle__thumb {
  transform: translateX(20px);
  background: #DCA950;
}

/* Focus ring */
.cc-toggle__input:focus-visible + .cc-toggle__track {
  outline: 2px solid #DCA950;
  outline-offset: 2px;
}

/* Locked (always on) */
.cc-toggle--locked {
  cursor: default;
}

.cc-toggle--locked .cc-toggle__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(220, 169, 80, 0.5);
  white-space: nowrap;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .cc-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cc-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .cc-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .cc-modal {
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .cc-overlay {
    align-items: flex-end;
    padding: 0;
  }
}

@media (max-width: 380px) {
  .cc-banner__actions {
    flex-direction: column;
  }
}
