/**
 * Cookie Consent Banner – Base Variables & Utilities
 *
 * All structural and visual styles live in consent-banner-layouts.css.
 * This file provides only:
 *   1. CSS Custom Properties
 *   2. Blocked-Content Placeholder
 *   3. Accessibility & Print media queries
 */

/* ─── CSS Custom Properties ──────────────────────────────────────── */
:root {
  --cc-primary: #2563eb;
  --cc-primary-hover: #1d4ed8;
  --cc-primary-text: #ffffff;
  --cc-secondary: #64748b;
  --cc-secondary-hover: #475569;
  --cc-bg: #ffffff;
  --cc-bg-hover: #f8fafc;
  --cc-bg-overlay: rgba(0, 0, 0, 0.5);
  --cc-text: #1e293b;
  --cc-text-muted: #64748b;
  --cc-border: #e2e8f0;
  --cc-border-focus: #2563eb;
  --cc-success: #16a34a;
  --cc-radius: 12px;
  --cc-radius-sm: 8px;
  --cc-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --cc-z-index: 999999;
  --cc-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Blocked Content Placeholder ────────────────────────────────── */
.cc-blocked-content {
  background: #f1f5f9;
  border: 2px dashed var(--cc-border);
  border-radius: var(--cc-radius);
  padding: 32px 24px;
  text-align: center;
  font-family: var(--cc-font);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-blocked-content__inner {
  max-width: 360px;
}

.cc-blocked-content__icon {
  color: var(--cc-secondary);
  margin-bottom: 12px;
}

.cc-blocked-content__text {
  font-size: 14px;
  color: var(--cc-text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.cc-blocked-content__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--cc-primary);
  color: var(--cc-primary-text);
  border: none;
  border-radius: var(--cc-radius-sm);
  font-family: var(--cc-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background var(--cc-transition);
}

.cc-blocked-content__btn:hover {
  background: var(--cc-primary-hover);
}

.cc-blocked-content__btn:focus-visible {
  outline: 3px solid var(--cc-border-focus);
  outline-offset: 2px;
}

/* ─── Reduced Motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cc-banner,
  .cc-overlay,
  .cc-toggle__slider,
  .cc-toggle__slider::after,
  .cc-btn,
  .cc-blocked-content__btn,
  .cc-settings-trigger {
    transition: none !important;
  }
}

/* ─── High Contrast ──────────────────────────────────────────────── */
@media (forced-colors: active) {
  .cc-toggle__slider {
    border: 2px solid ButtonText;
  }

  .cc-toggle__input:checked + .cc-toggle__slider {
    background: Highlight;
  }

  .cc-btn {
    border: 2px solid ButtonText;
  }
}

/* ─── Print ──────────────────────────────────────────────────────── */
@media print {
  .cc-banner,
  .cc-overlay,
  .cc-settings-trigger,
  .cc-blocked-content {
    display: none !important;
  }
}
