/* Cookie Consent Banner — Buggazi dark theme */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #131110;
  border-top: 1px solid #2d2a26;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  font-family: 'Geist Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: #faf9f7;
}

.cookie-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 280px;
}

.cookie-consent-text p {
  margin: 0;
  line-height: 1.5;
  color: #9c9690;
}

.cookie-consent-text a {
  color: #f97316;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
  min-height: 36px;
}

.cookie-btn-accept {
  background: #f97316;
  color: #0c0a08;
  border-color: #f97316;
}
.cookie-btn-accept:hover {
  background: #ea580c;
}

.cookie-btn-reject {
  background: #1e1c1a;
  color: #d1cdc8;
  border-color: #2d2a26;
}
.cookie-btn-reject:hover {
  background: #2d2a26;
}

.cookie-btn-customize {
  background: transparent;
  color: #9c9690;
  border-color: #2d2a26;
}
.cookie-btn-customize:hover {
  background: #1e1c1a;
}

/* Details / Customize Panel */
.cookie-consent-details {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 1.25rem;
}

.cookie-consent-categories {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #1e1c1a;
  border-radius: 10px;
  cursor: pointer;
}

.cookie-category-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cookie-category-info strong {
  font-size: 14px;
  color: #faf9f7;
}
.cookie-category-info span {
  font-size: 12px;
  color: #6b6660;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.cookie-toggle input { display: none; }

.cookie-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: #2d2a26;
  border-radius: 12px;
  transition: background 0.2s;
  cursor: pointer;
}
.cookie-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #6b6660;
  border-radius: 50%;
  transition: transform 0.2s;
}

.cookie-toggle input:checked + .cookie-slider {
  background: #f97316;
}
.cookie-toggle input:checked + .cookie-slider::after {
  transform: translateX(20px);
  background: #0c0a08;
}

.cookie-slider-locked {
  background: #f97316;
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-slider-locked::after {
  transform: translateX(20px);
  background: #0c0a08;
}

.cookie-always-on {
  font-size: 11px;
  color: #6b6660;
  white-space: nowrap;
}

/* Light mode overrides */
body.landing-light .cookie-consent-banner {
  background: #ffffff;
  border-top-color: #e5e2de;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  color: #0c0a08;
}
body.landing-light .cookie-consent-text p { color: #78716c; }
body.landing-light .cookie-consent-text a { color: #ea580c; }
body.landing-light .cookie-btn-reject { background: #f5f5f4; color: #0c0a08; border-color: #e5e2de; }
body.landing-light .cookie-btn-reject:hover { background: #e5e2de; }
body.landing-light .cookie-btn-customize { color: #0c0a08; border-color: #d6d3d1; }
body.landing-light .cookie-btn-customize:hover { background: #f5f5f4; }
body.landing-light .cookie-category { background: #f5f5f4; }
body.landing-light .cookie-category-info strong { color: #0c0a08; }
body.landing-light .cookie-category-info span { color: #78716c; }
body.landing-light .cookie-slider { background: #d6d3d1; }
body.landing-light .cookie-slider::after { background: #fff; }
body.landing-light .cookie-always-on { color: #a8a29e; }

/* Responsive */
@media (max-width: 768px) {
  .cookie-consent-inner {
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 1rem;
  }
  .cookie-consent-actions {
    width: 100%;
    justify-content: stretch;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.75rem;
  }
  .cookie-consent-details {
    padding: 0 1.25rem 1rem;
  }
}
