/* Cookie consent banner — matches site dark theme */

#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #111820;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 1rem 1.5rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.875rem;
  color: #8b949e;
  /* display is controlled via inline style + JS (none → flex) */
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.4);
}

#cookie-consent-banner .ccb-text {
  max-width: 600px;
  line-height: 1.6;
  margin: 0;
}

#cookie-consent-banner .ccb-text a {
  color: #3fb950;
  text-decoration: underline;
}

#cookie-consent-banner .ccb-text a:hover {
  color: #2ea043;
}

#cookie-consent-banner .ccb-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.ccb-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background 150ms ease;
  white-space: nowrap;
}

.ccb-btn-accept {
  background: #3fb950;
  color: #0a0e14;
}

.ccb-btn-accept:hover {
  background: #2ea043;
}

.ccb-btn-reject {
  background: transparent;
  color: #8b949e;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ccb-btn-reject:hover {
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 640px) {
  #cookie-consent-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  #cookie-consent-banner .ccb-buttons {
    width: 100%;
    justify-content: center;
  }
}
