/* =========================================================
   WORLD COMPUTING LTD — CONSENT MANAGER STYLES
   ========================================================= */

/* Backdrop overlay */
.wc-consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(2, 7, 26, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-sizing: border-box;
  overscroll-behavior: contain;
}

.wc-consent-overlay.wc-active {
  opacity: 1;
  visibility: visible;
}

/* Modal Card */
.wc-consent-modal {
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(10, 174, 234, 0.2);
  overflow: hidden;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  overscroll-behavior: contain;
}

.wc-consent-overlay.wc-active .wc-consent-modal {
  transform: translateY(0) scale(1);
}

/* Modal Header */
.wc-consent-header {
  background: linear-gradient(135deg, #02071a 0%, #061552 60%, #0825a8 100%);
  color: #ffffff;
  padding: 28px 32px 24px;
  border-bottom: 3px solid #0aaeea;
  position: relative;
}

.wc-consent-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 4px;
  background: rgba(10, 174, 234, 0.15);
  border: 1px solid rgba(10, 174, 234, 0.35);
  color: #0aaeea;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.wc-consent-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}

.wc-consent-subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #b7c8f8;
}

/* Modal Content Body */
.wc-consent-body {
  padding: 28px 32px;
  overflow-y: auto;
  flex: 1;
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
  overscroll-behavior: contain;
}

.wc-consent-body p {
  margin: 0 0 16px;
}

.wc-consent-body p:last-child {
  margin-bottom: 0;
}

.wc-consent-links {
  margin-top: 12px;
  font-size: 13px;
}

.wc-consent-links a {
  color: #0825a8;
  font-weight: 700;
  text-decoration: underline;
  margin-right: 16px;
}

.wc-consent-links a:hover {
  color: #0aaeea;
}

/* Categories List */
.wc-consent-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.wc-consent-cat-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  background: #f8fafc;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wc-consent-cat-card:hover {
  border-color: #cbd5e1;
}

.wc-consent-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wc-consent-cat-info {
  flex: 1;
}

.wc-consent-cat-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wc-consent-cat-desc {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.5;
}

/* Toggle Switch UI */
.wc-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.wc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.wc-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: 0.25s ease;
  border-radius: 26px;
}

.wc-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s ease;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.wc-toggle input:checked + .wc-toggle-slider {
  background-color: #0825a8;
}

.wc-toggle input:focus-visible + .wc-toggle-slider {
  outline: 3px solid #0aaeea;
  outline-offset: 3px;
}

.wc-toggle input:checked + .wc-toggle-slider:before {
  transform: translateX(22px);
}

.wc-toggle input:disabled + .wc-toggle-slider {
  background-color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.7;
}

.wc-badge-locked {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #475569;
  background: #e2e8f0;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Modal Actions Footer */
.wc-consent-footer {
  padding: 20px 32px 24px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.wc-btn {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.wc-btn-primary {
  background: #0825a8;
  color: #ffffff;
}

.wc-btn-primary:hover {
  background: #061c89;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8, 37, 168, 0.25);
}

.wc-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.wc-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.wc-btn-text {
  background: transparent;
  color: #0825a8;
  padding: 12px 16px;
  text-decoration: underline;
}

.wc-btn-text:hover {
  color: #0aaeea;
}

/* Floating Cookie Trigger Button in Footer / Page */
.wc-cookie-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 37, 168, 0.08);
  color: #0825a8;
  border: 1px solid rgba(8, 37, 168, 0.2);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wc-cookie-trigger-btn:hover {
  background: #0825a8;
  color: #ffffff;
  border-color: #0825a8;
}

/* Scoped Focus States */
.wc-consent-overlay .wc-btn:focus-visible,
.wc-cookie-trigger-btn:focus-visible,
.wc-consent-links a:focus-visible {
  outline: 3px solid #0aaeea;
  outline-offset: 3px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .wc-consent-overlay,
  .wc-consent-modal,
  .wc-btn,
  .wc-cookie-trigger-btn,
  .wc-toggle-slider,
  .wc-toggle-slider:before,
  .wc-consent-cat-card {
    transition: none !important;
  }

  .wc-consent-modal {
    transform: none !important;
  }
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .wc-consent-modal {
    max-height: 95vh;
    max-height: 95dvh;
    border-radius: 12px;
  }
  .wc-consent-header {
    padding: 20px 20px 18px;
  }
  .wc-consent-title {
    font-size: 20px;
  }
  .wc-consent-body {
    padding: 20px;
  }
  .wc-consent-footer {
    padding: 16px 20px 20px;
    flex-direction: column;
    align-items: stretch;
  }
  .wc-btn {
    width: 100%;
  }
}
