/* The Lithium Board — Cookie-Consent-Banner & Modal */
.cc-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #061421;
  color: #faf3df;
  padding: 1.25rem 1.5rem;
  z-index: 9998;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.35);
  border-top: 3px solid #c9a44c;
  font-family: 'Inter Tight', sans-serif;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cc-banner.active { transform: translateY(0); }
.cc-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.cc-banner h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: #e0bf6e;
  margin: 0 0 0.4rem 0;
  font-weight: 500;
}
.cc-banner h3 em { font-style: italic; color: #c9a44c; }
.cc-banner p {
  font-size: 0.88rem;
  color: rgba(250,243,223,0.85);
  line-height: 1.55;
  margin: 0;
  max-width: 720px;
}
.cc-banner p a {
  color: #e0bf6e;
  text-decoration: underline;
  text-decoration-color: rgba(224,191,110,0.6);
}
.cc-banner p a:hover { color: #faf3df; }
.cc-banner-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.cc-banner-buttons button {
  background: #c9a44c;
  color: #1a1410;
  border: none;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}
.cc-banner-buttons button:hover {
  background: #e0bf6e;
  transform: translateY(-1px);
}
.cc-banner-buttons button.cc-secondary {
  background: transparent;
  color: #faf3df;
  border: 1px solid rgba(250,243,223,0.4);
}
.cc-banner-buttons button.cc-secondary:hover {
  background: rgba(250,243,223,0.1);
  border-color: #e0bf6e;
}

/* Modal */
.cc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 20, 33, 0.7);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(3px);
}
.cc-modal-backdrop.active { display: flex; }
.cc-modal {
  background: #faf3df;
  color: #1a1410;
  max-width: 620px;
  width: 100%;
  border-radius: 4px;
  padding: 2rem 2.25rem;
  border-left: 4px solid #c9a44c;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5);
  font-family: 'Inter Tight', sans-serif;
}
.cc-modal h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  color: #0e2438;
  margin: 0 0 0.75rem 0;
  font-weight: 500;
}
.cc-modal h3 em { font-style: italic; color: #9b7c2f; }
.cc-modal > p.cc-modal-intro {
  font-size: 0.92rem;
  color: #3d342b;
  line-height: 1.55;
  margin: 0 0 1.25rem 0;
}
.cc-category {
  padding: 1rem 0;
  border-top: 1px solid rgba(26,20,16,0.1);
}
.cc-category:first-of-type { border-top: 1px solid rgba(155,124,47,0.4); }
.cc-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  gap: 1rem;
}
.cc-category-name {
  font-weight: 600;
  color: #0e2438;
  font-size: 0.98rem;
}
.cc-toggle {
  position: relative;
  width: 44px; height: 24px;
  background: rgba(26,20,16,0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.cc-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  transition: left 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.cc-toggle.on { background: #c9a44c; }
.cc-toggle.on::after { left: 22px; }
.cc-toggle.locked {
  background: #9b7c2f;
  cursor: not-allowed;
  opacity: 0.8;
}
.cc-category-desc {
  font-size: 0.85rem;
  color: #3d342b;
  line-height: 1.55;
  margin-top: 0.3rem;
}
.cc-modal-buttons {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(155,124,47,0.4);
  flex-wrap: wrap;
}
.cc-modal-buttons button {
  background: #0e2438;
  color: #faf3df;
  border: none;
  padding: 0.7rem 1.4rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.15s;
}
.cc-modal-buttons button:hover { background: #1a3a52; }
.cc-modal-buttons button.cc-primary {
  background: #c9a44c;
  color: #1a1410;
}
.cc-modal-buttons button.cc-primary:hover { background: #e0bf6e; }
.cc-modal-buttons button.cc-secondary {
  background: transparent;
  color: #3d342b;
  border: 1px solid rgba(26,20,16,0.2);
}
.cc-modal-buttons button.cc-secondary:hover {
  background: #f5ecd2;
  border-color: #c9a44c;
}

@media (max-width: 800px) {
  .cc-banner-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .cc-banner-buttons {
    width: 100%;
  }
  .cc-banner-buttons button {
    flex: 1 1 100px;
  }
  .cc-modal { padding: 1.5rem 1.5rem; }
  .cc-modal-buttons { justify-content: stretch; }
  .cc-modal-buttons button { flex: 1; }
}
