/* ============================================
   Cookie Consent Banner — GDPR / ePrivacy
   ============================================ */

.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99998;
  opacity: 0;
  transition: opacity 300ms ease;
}

.cc-overlay[aria-hidden="true"] {
  pointer-events: none;
  opacity: 0;
}

.cc-overlay[aria-hidden="false"] {
  opacity: 1;
}

.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1e1e24;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  padding: 1.5rem 1rem;
  transform: translateY(100%);
  transition: transform 400ms ease;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #ffffff;
}

.cc-banner[aria-hidden="false"] {
  transform: translateY(0);
}

.cc-banner__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cc-banner__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #a0a0a8;
}

.cc-banner__text a {
  color: #00d4aa;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-banner__text a:hover {
  color: #00e8bc;
}

.cc-banner__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

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

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background 150ms ease, color 150ms ease;
  min-height: 44px;
  min-width: 44px;
}

.cc-btn--accept {
  background: #00d4aa;
  color: #0f0f12;
}

.cc-btn--accept:hover {
  background: #00e8bc;
}

.cc-btn--reject {
  background: transparent;
  color: #a0a0a8;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cc-btn--reject:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cc-btn--details {
  background: none;
  color: #00d4aa;
  padding: 0.625rem 0.75rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.cc-btn--details:hover {
  color: #00e8bc;
}

/* Details panel */
.cc-details {
  display: none;
  margin-top: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cc-details[aria-hidden="false"] {
  display: block;
}

.cc-details__category {
  margin-bottom: 1rem;
}

.cc-details__category:last-child {
  margin-bottom: 0;
}

.cc-details__heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cc-details__badge {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: rgba(0, 212, 170, 0.15);
  color: #00d4aa;
}

.cc-details__desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #a0a0a8;
  margin: 0;
}

.cc-details__table {
  width: 100%;
  margin-top: 0.5rem;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.cc-details__table th,
.cc-details__table td {
  text-align: left;
  padding: 0.375rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cc-details__table th {
  color: #a0a0a8;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cc-details__table td {
  color: #d0d0d4;
}

/* Hide when consent given */
.cc-banner[aria-hidden="true"] {
  transform: translateY(100%);
  pointer-events: none;
}

/* Responsive */
@media (min-width: 768px) {
  .cc-banner {
    padding: 1.5rem 2rem;
  }

  .cc-banner__inner {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .cc-banner__content {
    flex: 1;
  }

  .cc-banner__actions {
    flex-shrink: 0;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cc-banner,
  .cc-overlay {
    transition: none;
  }
}
