/* ========================================================================
   DNSai GDPR Consent Banner — Styles
   ========================================================================
   Version:   1.0
   Updated:   2026-03-06
   Palette:   Uses DNSai core CSS custom properties from verify-main.css
   ========================================================================
   TO DISABLE: Remove the <link> tag or <script> tag from the page.
   ======================================================================== */

/* ── Banner (bottom bar) ────────────────────────────────────────────── */
.gdpr-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--bg-card, #1a1a1a);
  border-top: 1px solid var(--border-default, #2a2a2a);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  padding: 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: Helvetica, Arial, sans-serif;
}

.gdpr-banner.visible {
  transform: translateY(0);
}

.gdpr-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.gdpr-banner-text {
  flex: 1;
  min-width: 280px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary, #aaa);
}

.gdpr-banner-text a {
  color: var(--brand-cyan, #26c4ff);
  text-decoration: none;
}

.gdpr-banner-text a:hover {
  text-decoration: underline;
}

.gdpr-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}

/* Accept button — brand gradient */
.gdpr-btn-accept {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: #ffffff;
  background: var(--brand-gradient, linear-gradient(90deg, #26c4ff 0%, #0054ff 100%));
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(0, 84, 255, 0.3);
  white-space: nowrap;
}

.gdpr-btn-accept:hover {
  background: var(--brand-gradient-hover, linear-gradient(90deg, #0048d4 0%, #007aff 100%));
  box-shadow: 0 4px 16px rgba(0, 84, 255, 0.4);
}

/* Reject / Necessary-only button — ghost style */
.gdpr-btn-reject {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-secondary, #aaa);
  background: transparent;
  border: 1px solid var(--border-default, #333);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.gdpr-btn-reject:hover {
  background: var(--bg-surface, #252525);
  color: var(--text-primary, #eee);
  border-color: var(--text-muted, #666);
}

/* Manage / Customize button — text link style */
.gdpr-btn-manage {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 400;
  font-family: inherit;
  color: var(--text-muted, #777);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
  white-space: nowrap;
}

.gdpr-btn-manage:hover {
  color: var(--brand-cyan, #26c4ff);
}

/* ── Preferences Modal ──────────────────────────────────────────────── */
.gdpr-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gdpr-overlay.visible {
  display: flex;
}

.gdpr-modal {
  background: var(--bg-card, #1a1a1a);
  border: 1px solid var(--border-default, #2a2a2a);
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.gdpr-modal-header {
  padding: 24px 24px 0;
}

.gdpr-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #eee);
  margin: 0 0 8px;
}

.gdpr-modal-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted, #777);
  margin: 0;
}

.gdpr-modal-body {
  padding: 20px 24px;
}

/* Category rows */
.gdpr-category {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-default, #2a2a2a);
}

.gdpr-category:last-child {
  border-bottom: none;
}

.gdpr-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gdpr-category-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #eee);
}

.gdpr-category-desc {
  font-size: 12px;
  color: var(--text-muted, #777);
  margin-top: 6px;
  line-height: 1.5;
}

/* Toggle switch */
.gdpr-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.gdpr-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.gdpr-toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border-default, #333);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.gdpr-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.gdpr-toggle input:checked + .gdpr-toggle-track {
  background: var(--brand-cyan, #26c4ff);
}

.gdpr-toggle input:checked + .gdpr-toggle-track::after {
  transform: translateX(18px);
}

.gdpr-toggle input:disabled + .gdpr-toggle-track {
  opacity: 0.5;
  cursor: not-allowed;
}

.gdpr-always-on {
  font-size: 11px;
  color: var(--text-muted, #777);
  font-style: italic;
  flex-shrink: 0;
}

/* Modal footer */
.gdpr-modal-footer {
  padding: 16px 24px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .gdpr-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  .gdpr-banner-actions {
    flex-wrap: wrap;
  }

  .gdpr-btn-accept,
  .gdpr-btn-reject {
    flex: 1;
    text-align: center;
  }

  .gdpr-modal {
    max-height: 90vh;
  }
}
