/* Agenda Content Creator — Shared Design System Utilities */

/* Material Symbols config */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Halftone dot pattern overlay */
.halftone {
  background-image: radial-gradient(#000 10%, transparent 11%);
  background-size: 6px 6px;
}

/* Panel and text skew for comic-book feel */
.skew-panel {
  transform: rotate(-1deg);
}
.skew-text {
  transform: rotate(-2deg);
}

/* Solid block shadows (no blur) */
.solid-shadow-sm {
  box-shadow: 4px 4px 0px 0px #000000;
}
.solid-shadow-md {
  box-shadow: 8px 8px 0px 0px #000000;
}

/* Button press interaction — collapses shadow on hover */
.btn-press {
  transition: all 75ms ease;
}
.btn-press:hover {
  transform: translate(6px, 6px);
  box-shadow: 2px 2px 0px 0px #000000;
}

/* Bottom-border-only input field */
.input-field {
  width: 100%;
  background-color: var(--tw-surface-container-lowest, #000e24);
  border: none;
  border-bottom: 4px solid #000000;
  padding: 1rem;
  color: inherit;
  font-family: 'Comic Neue', cursive;
  font-size: 1.125rem;
  outline: none;
}
.input-field:focus {
  border-bottom-color: #ad0224;
}
.input-field::placeholder {
  opacity: 0.2;
}

/* Toggle button group */
.toggle-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.toggle-btn {
  padding: 0.5rem 1rem;
  border: 3px solid #000;
  font-family: 'Carter One', cursive;
  font-size: 0.875rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 75ms ease;
  background: #1f3555;
  color: #d5e3ff;
}
.toggle-btn:hover {
  background: #243a5a;
}
.toggle-btn.active {
  background: #ffd100;
  color: #3c2f00;
  box-shadow: 3px 3px 0px 0px #000000;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.toast {
  padding: 1rem 1.5rem;
  border: 3px solid #000;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 4px 4px 0px 0px #000000;
  animation: toast-in 200ms ease-out;
  max-width: 400px;
}
.toast-success {
  background: #ffd100;
  color: #3c2f00;
}
.toast-error {
  background: #ad0224;
  color: #fff;
}
@keyframes toast-in {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toast-out {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

/* Collapsible sections */
.collapsible-header {
  cursor: pointer;
  user-select: none;
}
.collapsible-body {
  overflow: hidden;
  transition: max-height 300ms ease;
}
.collapsible-body.collapsed {
  max-height: 0 !important;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #1f3555 25%, #243a5a 50%, #1f3555 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s infinite;
}
@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Scrollbar hiding */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Archive modal */
.archive-clickable {
  cursor: pointer;
}
.archive-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 2rem;
}
.archive-modal.hidden {
  display: none;
}
.archive-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 15, 38, 0.82);
  backdrop-filter: blur(4px);
}
.archive-modal-shell {
  position: relative;
  width: min(92vw, 1100px);
  max-height: 100%;
  z-index: 1;
  overflow: visible;
}
.archive-modal-close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 3.5rem;
  height: 3.5rem;
  border: 4px solid #000;
  background: #ffd100;
  color: #3c2f00;
  box-shadow: 6px 6px 0 0 #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.archive-modal-content {
  max-height: calc(100vh - 5rem);
  overflow: auto;
}
.archive-modal-content > article {
  width: 100%;
  margin: 0 auto;
  transform: none !important;
  transition: none !important;
  box-shadow: 10px 10px 0 0 #000000;
  cursor: default;
}
.archive-card-fluff:empty {
  display: none;
}
@media (min-width: 1024px) {
  .archive-modal-card h3.font-headline {
    font-size: clamp(2.5rem, 3vw, 3.5rem);
  }
  .archive-modal-card .archive-card-fluff {
    font-size: 1.35rem;
    line-height: 1.7;
  }
  .archive-modal-card p.font-comic {
    font-size: 1.125rem;
    line-height: 1.6;
  }
  .archive-modal-card .font-title {
    font-size: 0.95rem;
    line-height: 1.35;
  }
  .archive-modal-card .font-label {
    font-size: 0.85rem;
    line-height: 1.35;
  }
}
@media (max-width: 640px) {
  .archive-modal {
    padding: 1rem 0.75rem;
  }
  .archive-modal-close {
    top: -0.5rem;
    right: -0.25rem;
    width: 3rem;
    height: 3rem;
  }
}
