/* ============================================
   IT CODE FOR YOU — Cookie Consent Banner
   ============================================ */

#cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9000;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(15, 22, 41, 0.85);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(79, 143, 255, 0.25);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55),
              0 0 40px rgba(79, 143, 255, 0.15);
  color: #e2e8f0;
  font-family: 'Inter', system-ui, sans-serif;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s ease;
  will-change: transform, opacity;
}

#cookie-consent.cc-visible {
  transform: translateY(0);
  opacity: 1;
}

.cc-inner {
  padding: 18px 20px;
}

.cc-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.cc-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(79, 143, 255, 0.18), rgba(145, 94, 255, 0.18));
  border: 1px solid rgba(79, 143, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.cc-text {
  flex: 1;
  min-width: 0;
}

.cc-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin: 0 0 4px;
}

.cc-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.75);
  margin: 0;
}

.cc-desc a {
  color: #4f8fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-desc a:hover { color: #00d4ff; }

.cc-categories {
  display: none;
  margin: 12px 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

#cookie-consent.cc-expanded .cc-categories {
  display: block;
  animation: cc-fade-in 0.3s ease;
}

@keyframes cc-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cc-cat {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cc-cat:last-child { border-bottom: 0; }

.cc-cat input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #4f8fff;
  cursor: pointer;
}

.cc-cat input[disabled] { cursor: not-allowed; opacity: 0.7; }

.cc-cat-label {
  flex: 1;
  cursor: pointer;
}

.cc-cat-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  display: block;
}

.cc-cat-desc {
  display: block;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.65);
  margin-top: 2px;
  line-height: 1.45;
}

.cc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.cc-btn {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  white-space: nowrap;
}

.cc-btn-primary {
  background: linear-gradient(135deg, #4f8fff, #915eff);
  color: #fff;
  box-shadow: 0 4px 16px rgba(79, 143, 255, 0.35);
}

.cc-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(79, 143, 255, 0.5);
}

.cc-btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(226, 232, 240, 0.9);
}

.cc-btn-outline:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(79, 143, 255, 0.4);
  color: #fff;
}

.cc-btn-ghost {
  color: rgba(148, 163, 184, 0.85);
}

.cc-btn-ghost:hover { color: #fff; }

@media (max-width: 600px) {
  #cookie-consent {
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 12px;
  }
  .cc-inner { padding: 14px 14px 16px; }
  .cc-actions { flex-direction: column; }
  .cc-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  #cookie-consent { transition: opacity 0.2s linear; transform: none; }
  #cookie-consent:not(.cc-visible) { opacity: 0; pointer-events: none; }
}
