/* ============================================
   STEALTH CLOUD — Accent Override
   Loaded after template-styles.css
   ============================================ */

:root {
  /* PRIMARY ACCENT — Teal (privacy, trust, stealth) */
  --accent: #0D9488;
  --accent-dark: #0A7B71;
  --accent-mid: #14B8A6;
  --accent-light: #2DD4BF;
  --accent-pale: #1A2E2C;

  /* SECONDARY ACCENT — Purple (crypto, Web3, encryption) */
  --accent2: #8B5CF6;
  --accent2-dark: #7C3AED;
  --accent2-light: #A78BFA;
  --accent2-pale: #1E1A2E;

  /* SECTION ACCENTS — Stealth Cloud Verticals */
  --section-ai-privacy: #0D9488;
  --section-cloud: #1E40AF;
  --section-crypto: #8B5CF6;
  --section-web3: #D97706;
  --section-intelligence: #DC2626;
  --section-glossary: #6B7280;

  /* Override template vars for dark mode readability */
  --ink-25: #CBD5E1;
}

/* Section Tag Color Overrides */
.section-tag--ai-privacy { color: var(--section-ai-privacy); }
.section-tag--cloud { color: var(--section-cloud); }
.section-tag--crypto { color: var(--section-crypto); }
.section-tag--web3 { color: var(--section-web3); }
.section-tag--intelligence { color: var(--section-intelligence); }
.section-tag--glossary { color: var(--section-glossary); }

/* Footer column titles — cyan for readability on dark bg */
.footer .footer__col-title,
footer .footer__col-title,
div.footer__col-title {
  color: #22D3EE !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Footer network descriptions */
.footer .footer__network-desc,
footer .footer__network-desc {
  color: #94A3B8 !important;
}

/* Footer links — readable */
.footer .footer__link,
footer .footer__link,
a.footer__link {
  color: #CBD5E1 !important;
}
.footer .footer__link:hover,
footer .footer__link:hover,
a.footer__link:hover {
  color: #22D3EE !important;
}

/* ============================================
   COOKIE CONSENT MANAGER
   ============================================ */

/* Banner */
.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0F1419;
  border-top: 1px solid #1F2937;
  z-index: 10000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}
.cc-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cc-banner__text {
  flex: 1;
  font-size: 0.875rem;
  color: #9CA3AF;
  line-height: 1.5;
}
.cc-banner__text strong {
  display: block;
  color: #E5E7EB;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.cc-banner__text p {
  margin: 0;
}
.cc-banner__text a {
  color: #22D3EE;
  text-decoration: underline;
}
.cc-banner__actions {
  display: flex;
  gap: 0.625rem;
  flex-shrink: 0;
}

/* Buttons */
.cc-btn {
  padding: 0.6rem 1.35rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.cc-btn--accept {
  background: #0D9488;
  color: #fff;
}
.cc-btn--accept:hover {
  background: #0F766E;
}
.cc-btn--reject {
  background: transparent;
  color: #9CA3AF;
  border: 1px solid #374151;
}
.cc-btn--reject:hover {
  border-color: #4B5563;
  color: #D1D5DB;
}
.cc-btn--manage {
  background: transparent;
  color: #22D3EE;
  border: 1px solid #22D3EE;
}
.cc-btn--manage:hover {
  background: rgba(34, 211, 238, 0.1);
}

/* Overlay */
.cc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10001;
  backdrop-filter: blur(4px);
}

/* Modal */
.cc-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 620px;
  max-height: 85vh;
  background: #111827;
  border: 1px solid #1F2937;
  border-radius: 12px;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.cc-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #1F2937;
}
.cc-modal__header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #F3F4F6;
}
.cc-modal__close {
  background: none;
  border: none;
  color: #6B7280;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}
.cc-modal__close:hover {
  color: #D1D5DB;
}
.cc-modal__body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.cc-modal__intro {
  font-size: 0.8125rem;
  color: #9CA3AF;
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
}

/* Cookie Category */
.cc-category {
  padding: 1rem 0;
  border-bottom: 1px solid #1F2937;
}
.cc-category:last-child {
  border-bottom: none;
}
.cc-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.cc-category__info strong {
  color: #E5E7EB;
  font-size: 0.9375rem;
}
.cc-category__badge {
  display: inline-block;
  font-size: 0.6875rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  font-weight: 600;
  vertical-align: middle;
}
.cc-category__badge--required {
  background: rgba(13, 148, 136, 0.2);
  color: #2DD4BF;
}
.cc-category__desc {
  font-size: 0.8125rem;
  color: #6B7280;
  line-height: 1.5;
  margin: 0;
}
.cc-category__desc a {
  color: #22D3EE;
}

/* Toggle Switch */
.cc-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cc-toggle__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #374151;
  border-radius: 24px;
  transition: 0.2s;
}
.cc-toggle__slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.cc-toggle input:checked + .cc-toggle__slider {
  background: #0D9488;
}
.cc-toggle input:checked + .cc-toggle__slider::before {
  transform: translateX(20px);
}
.cc-toggle--disabled .cc-toggle__slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Modal Footer */
.cc-modal__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #1F2937;
  display: flex;
  justify-content: flex-end;
  gap: 0.625rem;
}

/* Responsive */
@media (max-width: 768px) {
  .cc-banner__inner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  .cc-banner__actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .cc-modal {
    width: 95%;
    max-height: 90vh;
  }
}
