/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.copy-editor-target {
  position: relative;
  border-radius: 0.375rem;
  outline: 1px dashed rgb(var(--color-primary) / 0.42);
  outline-offset: 0.18rem;
  background: rgb(var(--color-primary) / 0.08);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.copy-editor-target:hover,
.copy-editor-target:focus-within,
.copy-editor-target[data-copy-selected="true"] {
  outline-style: solid;
  outline-color: rgb(var(--color-primary) / 0.78);
  background: rgb(var(--color-primary) / 0.14);
}

.copy-editor-launcher {
  position: fixed;
  right: 1rem;
  bottom: 5.75rem;
  z-index: 80;
}

@media (min-width: 1024px) {
  .copy-editor-launcher {
    bottom: 1.25rem;
  }
}

.copy-editor-launcher__button,
.copy-editor-floating-button,
.copy-editor-toolbar__button,
.copy-editor-dialog__button,
.copy-editor-dialog__icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid rgb(var(--color-primary) / 0.18);
  background: rgb(var(--color-surface));
  color: rgb(var(--color-primary));
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.copy-editor-launcher__button {
  min-height: 2.75rem;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  box-shadow: 0 10px 28px rgb(var(--shadow-color) / 0.18);
}

.copy-editor-toolbar {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 5.5rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid rgb(var(--color-primary) / 0.16);
  border-radius: 1.4rem;
  background: rgb(var(--color-surface) / 0.96);
  box-shadow: 0 18px 44px rgb(var(--shadow-color) / 0.22);
  padding: 0.85rem;
  backdrop-filter: blur(12px);
}

@media (min-width: 900px) {
  .copy-editor-toolbar {
    left: 50%;
    right: auto;
    bottom: 1rem;
    width: min(920px, calc(100vw - 2rem));
    transform: translateX(-50%);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.copy-editor-toolbar__summary {
  min-width: 0;
}

.copy-editor-toolbar__label,
.copy-editor-toolbar__count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgb(var(--color-primary));
}

.copy-editor-toolbar__count {
  border-radius: 999px;
  background: rgb(var(--color-primary) / 0.1);
  padding: 0.25rem 0.55rem;
}

.copy-editor-toolbar__status {
  display: block;
  margin-top: 0.25rem;
  color: rgb(var(--color-muted));
  font-size: 0.78rem;
}

.copy-editor-toolbar__status[data-tone="success"] {
  color: rgb(var(--color-accent));
}

.copy-editor-toolbar__status[data-tone="warning"] {
  color: rgb(var(--color-warning-text));
}

.copy-editor-toolbar__status[data-tone="error"] {
  color: rgb(var(--color-danger-text));
}

.copy-editor-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.copy-editor-toolbar__actions form {
  margin: 0;
}

.copy-editor-toolbar__button {
  min-height: 2.35rem;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
}

.copy-editor-toolbar__button--primary,
.copy-editor-dialog__button--primary {
  background: rgb(var(--color-primary));
  color: white;
  border-color: rgb(var(--color-primary));
}

.copy-editor-toolbar__button--ghost {
  color: rgb(var(--color-muted));
}

.copy-editor-floating-button {
  position: fixed;
  z-index: 95;
  min-height: 2.35rem;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  box-shadow: 0 12px 32px rgb(var(--shadow-color) / 0.22);
}

.copy-editor-floating-button.hidden {
  display: none;
}

.copy-editor-dialog {
  width: min(560px, calc(100vw - 1.5rem));
  border: 0;
  border-radius: 1.6rem;
  background: transparent;
  padding: 0;
}

.copy-editor-dialog::backdrop {
  background: rgb(var(--shadow-color) / 0.38);
  backdrop-filter: blur(4px);
}

.copy-editor-dialog__panel {
  display: block;
  overflow: hidden;
  border: 1px solid rgb(var(--color-primary) / 0.14);
  border-radius: 1.6rem;
  background: rgb(var(--color-surface));
  box-shadow: 0 22px 50px rgb(var(--shadow-color) / 0.26);
}

.copy-editor-dialog__header,
.copy-editor-dialog__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.copy-editor-dialog__header {
  border-bottom: 1px solid rgb(var(--color-primary) / 0.1);
  background: rgb(var(--color-background-light) / 0.72);
}

.copy-editor-dialog__footer {
  border-top: 1px solid rgb(var(--color-primary) / 0.1);
}

.copy-editor-dialog__eyebrow {
  color: rgb(var(--color-primary));
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.copy-editor-dialog__title {
  margin-top: 0.25rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.copy-editor-dialog__icon-button {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0;
}

.copy-editor-dialog__body {
  padding: 1rem;
}

.copy-editor-dialog__field {
  display: grid;
  gap: 0.45rem;
  color: rgb(var(--color-muted));
  font-size: 0.85rem;
  font-weight: 600;
}

.copy-editor-dialog__field textarea {
  width: 100%;
  min-height: 9rem;
  resize: vertical;
  border-radius: 1rem;
  padding: 0.8rem;
  font-size: 1rem;
  font-weight: 500;
}

.copy-editor-dialog__meta {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  border-radius: 1rem;
  background: rgb(var(--color-background-light) / 0.72);
  padding: 0.9rem;
}

.copy-editor-dialog__meta span {
  display: block;
  margin-bottom: 0.25rem;
  color: rgb(var(--color-muted));
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.copy-editor-dialog__meta code {
  word-break: break-word;
}

.copy-editor-dialog__meta p {
  margin: 0;
}

.copy-editor-dialog__variables {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.copy-editor-dialog__variable {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgb(var(--color-primary) / 0.14);
  border-radius: 999px;
  background: rgb(var(--color-surface));
  padding: 0.35rem 0.55rem;
}

.copy-editor-dialog__variable code {
  color: rgb(var(--color-primary));
  font-size: 0.78rem;
  font-weight: 700;
}

.copy-editor-dialog__variable small {
  min-width: 0;
  overflow: hidden;
  color: rgb(var(--color-muted));
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-editor-dialog__button {
  min-height: 2.5rem;
  border-radius: 999px;
  padding: 0.6rem 1rem;
}

.copy-editor-review-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.copy-editor-review-list li {
  border-radius: 1rem;
  background: rgb(var(--color-background-light) / 0.78);
  padding: 0.75rem;
  font-size: 0.9rem;
}

.copy-editor-review-list li[data-tone="error"] {
  background: rgb(var(--color-danger-surface));
  color: rgb(var(--color-danger-text));
}

.copy-editor-review-list li[data-tone="warning"] {
  background: rgb(var(--color-warning-surface));
  color: rgb(var(--color-warning-text));
}

.copy-editor-review-list li[data-tone="success"] {
  background: rgb(var(--color-accent) / 0.1);
  color: rgb(var(--color-accent));
}

.napady-public-shell {
  background:
    linear-gradient(135deg, rgb(var(--color-primary) / 0.09), transparent 42%),
    linear-gradient(315deg, rgb(var(--color-accent) / 0.08), transparent 38%),
    rgb(var(--color-background-light));
}

.napady-dot-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgb(var(--color-primary) / 0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 28%, transparent 78%);
}

.napady-action-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 1.35rem;
  padding: 1.6rem;
  text-align: left;
  box-shadow: 0 16px 40px rgb(var(--shadow-color) / 0.18);
}

.napady-action-card--primary {
  position: relative;
  overflow: hidden;
  border: 0;
  background: linear-gradient(140deg, rgb(var(--color-primary)) 0%, rgb(var(--color-primary) / 0.82) 100%);
  color: rgb(43 31 18);
}

.napady-action-card--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgb(255 255 255 / 0.14) 46%, transparent 72%);
}

.napady-action-card > * {
  position: relative;
  z-index: 1;
}

.napady-action-icon {
  display: inline-flex;
  width: 3.1rem;
  height: 3.1rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.95rem;
}

.napady-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgb(var(--color-primary) / 0.13);
  border-radius: 999px;
  background: rgb(var(--color-surface));
  color: rgb(var(--color-text-main));
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.55rem 0.85rem;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.napady-chip:hover {
  border-color: rgb(var(--color-primary) / 0.32);
  background: rgb(var(--color-primary) / 0.06);
  transform: translateY(-1px);
}

.napady-chip.is-on {
  border-color: rgb(var(--color-primary));
  background: rgb(var(--color-primary) / 0.12);
  color: rgb(var(--color-primary));
}

.napady-reveal summary::-webkit-details-marker {
  display: none;
}

.napady-reveal[open] summary svg {
  transform: rotate(180deg);
}

.napady-idea-card {
  animation: napady-float-up 0.42s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.napady-idea-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgb(var(--shadow-color) / 0.18);
}

.napady-top-idea {
  position: relative;
  overflow: hidden;
}

.napady-top-idea::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgb(255 255 255 / 0.22) 44%, transparent 68%);
  animation: napady-sheen 3.4s ease-in-out infinite;
}

.napady-support-track {
  position: relative;
  height: 0.7rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(var(--color-background-light));
}

.napady-support-fill {
  display: block;
  height: 100%;
  min-width: 0.4rem;
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(var(--color-primary)), rgb(var(--color-accent)));
  animation: napady-grow 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.napady-vote-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  background: rgb(var(--color-primary) / 0.10);
  color: rgb(var(--color-primary));
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  animation: napady-breathe 2.4s ease-in-out infinite;
}

.napady-vote-card {
  position: relative;
  overflow: hidden;
}

.napady-vote-card--attention {
  border-color: rgb(var(--color-primary) / 0.28);
}

.napady-vote-card--attention::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgb(var(--color-primary) / 0.10) 48%, transparent 74%);
  animation: napady-sheen 3.8s ease-in-out infinite;
}

.napady-vote-card > * {
  position: relative;
  z-index: 1;
}

.napady-vote-card--attention .napady-vote-icon {
  animation: napady-wiggle 1.8s ease-in-out infinite;
}

.napady-vote-nudge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgb(var(--color-primary) / 0.12);
  border-radius: 1.1rem;
  background: rgb(var(--color-primary) / 0.08);
  color: rgb(var(--color-primary));
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 0.85rem;
}

.napady-locked-results {
  border: 1px dashed rgb(var(--color-primary) / 0.24);
  border-radius: 1.5rem;
  background:
    linear-gradient(135deg, rgb(var(--color-primary) / 0.08), transparent 42%),
    rgb(var(--color-background-light) / 0.74);
  padding: 2rem;
}

.napady-time-chip {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border: 1px solid rgb(var(--color-primary) / 0.12);
  border-radius: 1.1rem;
  background: rgb(var(--color-background-light) / 0.78);
  padding: 0.85rem 0.95rem;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.napady-time-chip:hover {
  border-color: rgb(var(--color-primary) / 0.34);
  transform: translateX(2px);
}

.napady-vibe {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  border: 1px solid rgb(var(--color-primary) / 0.10);
  border-radius: 999px;
  background: rgb(var(--color-background-light));
  padding: 0.4rem;
}

.napady-vibe-step {
  display: flex;
  height: 2.45rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgb(var(--color-muted));
  font-family: "Newsreader", serif;
  font-size: 1rem;
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.napady-vibe-step:hover {
  background: rgb(var(--color-primary) / 0.08);
  color: rgb(var(--color-primary));
}

.napady-float {
  animation: napady-float-up 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.napady-pulse {
  animation: napady-pulse-soft 2s ease-in-out infinite;
}

@keyframes napady-float-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes napady-pulse-soft {
  0%, 100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}

@keyframes napady-sheen {
  0%, 45% {
    transform: translateX(-100%);
  }

  70%, 100% {
    transform: translateX(100%);
  }
}

@keyframes napady-grow {
  from {
    transform: scaleX(0.35);
    transform-origin: left;
  }

  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@keyframes napady-breathe {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.035);
  }
}

@keyframes napady-wiggle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }

  35% {
    transform: rotate(-5deg) scale(1.04);
  }

  65% {
    transform: rotate(5deg) scale(1.04);
  }
}

@media (max-width: 640px) {
  .napady-dot-grid {
    background-size: 22px 22px;
    opacity: 0.55;
  }

  .napady-action-card {
    gap: 0.75rem;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 28px rgb(var(--shadow-color) / 0.14);
  }

  .napady-action-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.8rem;
  }

  .napady-chip {
    gap: 0.32rem;
    font-size: 0.75rem;
    padding: 0.42rem 0.62rem;
  }

  .napady-vote-badge {
    gap: 0.28rem;
    font-size: 0.68rem;
    padding: 0.28rem 0.5rem;
  }

  .napady-idea-card:hover {
    transform: none;
  }

  .napady-support-track {
    height: 0.55rem;
  }

  .napady-locked-results {
    border-radius: 1rem;
    padding: 1.1rem;
  }

  .napady-time-chip {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
    border-radius: 0.9rem;
    padding: 0.65rem 0.75rem;
  }

  .napady-vibe {
    gap: 0.28rem;
    padding: 0.3rem;
  }

  .napady-vibe-step {
    height: 2.1rem;
    font-size: 0.95rem;
  }

  .napady-vote-nudge {
    gap: 0.5rem;
    border-radius: 0.9rem;
    font-size: 0.82rem;
    padding: 0.7rem;
  }
}

.waitlist-planner-board {
  display: grid;
  grid-auto-columns: minmax(17rem, 1fr);
  grid-auto-flow: column;
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x proximity;
}

.waitlist-planner-column {
  min-height: 16rem;
  scroll-snap-align: start;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.waitlist-planner-column.is-drop-target {
  border-color: rgb(var(--color-primary) / 0.45);
  background: rgb(var(--color-primary) / 0.08);
  box-shadow: inset 0 0 0 1px rgb(var(--color-primary) / 0.12);
}

.waitlist-planner-list {
  min-height: 10rem;
}

.waitlist-planner-card {
  cursor: grab;
  transition: opacity 0.16s ease, transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.waitlist-planner-card:active {
  cursor: grabbing;
}

.waitlist-planner-card.is-dragging {
  opacity: 0.55;
  transform: rotate(1deg) scale(0.99);
  border-color: rgb(var(--color-primary) / 0.35);
}

.waitlist-planner-grip {
  cursor: grab;
}

.waitlist-planner-status[data-tone="saving"] {
  color: rgb(var(--color-primary));
}

.waitlist-planner-status[data-tone="success"] {
  color: rgb(var(--color-accent));
}

.waitlist-planner-status[data-tone="error"] {
  color: rgb(var(--color-danger-text));
}

@media (max-width: 640px) {
  .waitlist-planner-board {
    grid-auto-columns: minmax(15.5rem, 86vw);
    gap: 0.75rem;
  }

  .waitlist-planner-column {
    min-height: 13rem;
  }
}
