/* Champion Camp — Cookie banner & manager
   Paletă: navy = hsl(212 68% 16%), lime = hsl(74 98% 58%), coral = hsl(6 100% 68%) */

/* ─── BANNER (bottom strip) ──────────────────────────────────────────── */
#cc-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9998;
  background: hsl(212 68% 16%);
  color: #fff;
  padding: 18px 24px;
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
#cc-banner.cc-show { transform: translateY(0); }

.cc-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cc-banner-text { flex: 1 1 320px; min-width: 0; }
.cc-banner-text strong {
  display: block;
  font-family: 'Archivo Black', sans-serif;
  color: hsl(74 98% 58%);
  font-size: 15px;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}
.cc-banner-text p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}
.cc-banner-text a {
  color: hsl(74 98% 58%);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cc-banner-text a:hover { color: #fff; }

.cc-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ─── BUTOANE ────────────────────────────────────────────────────────── */
.cc-btn {
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  letter-spacing: 0;
}
.cc-btn-primary {
  background: hsl(74 98% 58%);
  color: hsl(212 68% 16%);
  border-color: hsl(74 98% 58%);
}
.cc-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px hsla(74, 98%, 58%, 0.45);
}
.cc-btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.cc-btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.07);
}


/* ─── MODAL ──────────────────────────────────────────────────────────── */
#cc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
#cc-modal.cc-open { opacity: 1; pointer-events: auto; }

.cc-scrim {
  position: absolute;
  inset: 0;
  background: hsla(212, 68%, 16%, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.cc-modal-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 22px;
  padding: 32px 28px 24px;
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  -webkit-overflow-scrolling: touch;
}

.cc-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: hsl(220 25% 96%);
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: hsl(212 68% 16%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: all 0.15s;
}
.cc-modal-close:hover {
  background: hsl(6 100% 68%);
  color: #fff;
  transform: rotate(90deg);
}

.cc-modal-box h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 24px;
  color: hsl(212 68% 16%);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  padding-right: 30px;
}
.cc-modal-intro {
  font-size: 13.5px;
  color: hsl(213 14% 49%);
  line-height: 1.55;
  margin: 0 0 22px;
}


/* ─── CATEGORIE ──────────────────────────────────────────────────────── */
.cc-cat {
  background: hsl(50 80% 97%);
  border: 1.5px solid hsla(212, 68%, 16%, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.cc-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.cc-cat-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  color: hsl(212 68% 16%);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.cc-cat-badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: hsl(74 98% 58%);
  color: hsl(212 68% 16%);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cc-cat-desc {
  font-size: 12.5px;
  color: hsl(213 14% 49%);
  line-height: 1.55;
  margin: 0;
}


/* ─── TOGGLE SWITCH ──────────────────────────────────────────────────── */
.cc-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.cc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cc-toggle-slider {
  position: absolute;
  inset: 0;
  background: hsl(220 14% 80%);
  border-radius: 100px;
  transition: background 0.2s;
}
.cc-toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.cc-toggle input:checked + .cc-toggle-slider { background: hsl(122 47% 56%); }
.cc-toggle input:checked + .cc-toggle-slider::before { transform: translateX(18px); }
.cc-toggle-locked .cc-toggle-slider {
  background: hsl(74 98% 58%);
  opacity: 0.6;
  cursor: not-allowed;
}
.cc-toggle-locked { cursor: not-allowed; }


/* ─── MODAL ACTIONS ──────────────────────────────────────────────────── */
.cc-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.cc-modal-actions .cc-btn { flex: 1 1 130px; }
.cc-modal-actions .cc-btn-outline {
  color: hsl(212 68% 16%);
  border-color: hsla(212, 68%, 16%, 0.15);
}
.cc-modal-actions .cc-btn-outline:hover {
  border-color: hsl(212 68% 16%);
  background: hsl(220 25% 96%);
}

.cc-modal-footer {
  font-size: 11.5px;
  color: hsl(213 14% 49%);
  margin: 18px 0 0;
  line-height: 1.55;
  text-align: center;
}
.cc-modal-footer a {
  color: hsl(205 72% 47%);
  font-weight: 700;
  text-decoration: none;
}
.cc-modal-footer a:hover { text-decoration: underline; }


/* ─── MOBILE ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  #cc-banner { padding: 14px 16px; }
  .cc-banner-inner { gap: 14px; }
  .cc-banner-text { flex: 1 1 100%; }
  .cc-banner-text strong { font-size: 14px; }
  .cc-banner-text p { font-size: 12.5px; }
  .cc-banner-actions { width: 100%; flex-wrap: nowrap; }
  .cc-banner-actions .cc-btn { flex: 1; padding: 11px 8px; font-size: 12px; }

  .cc-modal-box {
    padding: 26px 20px 18px;
    border-radius: 18px;
    max-height: 92vh;
  }
  .cc-modal-box h2 { font-size: 20px; }
  .cc-modal-intro { font-size: 13px; margin-bottom: 16px; }
  .cc-cat { padding: 12px 14px; }
  .cc-cat-title { font-size: 13px; }
  .cc-modal-actions { flex-direction: column; }
  .cc-modal-actions .cc-btn { width: 100%; }
}
