/* Checklist display page styles */

.page-checklist {
  background: var(--color-bg, #0a0a0f);
  color: var(--color-text, #f0f0f0);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.checklist-main {
  flex: 1;
  padding: 48px 20px 80px;
}

.checklist-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

/* Event header */
.event-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.event-header-left {
  flex: 1;
  min-width: 0;
}

.event-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  margin: 0 0 10px;
  background: linear-gradient(135deg, #e0f7f7 0%, #a8edea 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.event-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(240, 240, 240, 0.7);
  text-transform: capitalize;
}

.event-tag--lineup {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.12) 0%, rgba(0, 232, 200, 0.10) 100%);
  border: 1px solid rgba(192, 132, 252, 0.35);
  color: rgba(225, 200, 255, 0.9);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

.weather-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(240, 240, 240, 0.5);
  margin: 0;
  line-height: 1.5;
}

.weather-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Progress ring */
.event-header-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pack-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.progress-ring-wrap {
  position: relative;
}

.progress-ring {
  transform: rotate(-90deg);
}

.ring-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

.ring-fill {
  stroke: url(#ringGrad);
  stroke: #a8edea;
  transition: stroke-dashoffset 0.4s ease;
}

.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #f0f0f0;
}

.progress-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: rgba(240, 240, 240, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Share buttons */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 7px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(240, 240, 240, 0.65);
  cursor: pointer;
  transition: all 0.15s;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(240, 240, 240, 0.85);
}

.share-btn--saved {
  background: rgba(0, 232, 200, 0.10);
  border-color: rgba(0, 232, 200, 0.30);
  color: #00e8c8;
  cursor: default;
}
.share-btn--saved:hover {
  background: rgba(0, 232, 200, 0.10);
  border-color: rgba(0, 232, 200, 0.30);
  color: #00e8c8;
}

.save-error {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 80, 80, 0.10);
  border: 1px solid rgba(255, 80, 80, 0.25);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255, 130, 130, 0.95);
  margin-top: 6px;
  width: 100%;
}

.share-btn--wa:hover {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.35);
  color: #25d366;
}

.share-btn--tw:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.30);
  color: #f0f0f0;
}

.share-btn--ig:hover {
  background: rgba(253, 72, 135, 0.12);
  border-color: rgba(253, 72, 135, 0.4);
  color: #fd4887;
}

/* Affiliate notice */
.affiliate-notice {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 200, 100, 0.07);
  border: 1px solid rgba(255, 200, 100, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255, 200, 100, 0.75);
  margin-bottom: 32px;
}

.affiliate-notice svg {
  flex-shrink: 0;
  color: rgba(255, 200, 100, 0.75);
}

/* Category groups */
.checklist-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cat-group {
  /* no extra padding */
}

.cat-title {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(192, 132, 252, 0.7);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(192, 132, 252, 0.2), transparent);
}

.cat-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Individual pack item */
.pack-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: none;
}

.pack-item:last-child {
  border-bottom: none;
}

.pack-item:hover {
  background: none;
}

.pack-item.is-packed {
  opacity: 0.45;
}

/* Checkbox */
.item-check-wrap {
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.item-checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  transition: all 0.2s;
  color: transparent;
}

.item-checkbox:checked + .item-checkmark {
  background: linear-gradient(135deg, #c084fc, #a8edea);
  border-color: transparent;
  color: #0a0a0f;
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.3);
}

.item-checkbox:focus-visible + .item-checkmark {
  outline: 2px solid #c084fc;
  outline-offset: 2px;
}

/* Item body */
.item-body {
  padding: 0 12px;
}

.item-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #f0f0f0;
  margin-bottom: 2px;
  line-height: 1.3;
}

.item-reason {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(240, 240, 240, 0.38);
  line-height: 1.4;
}

/* Buy button — pill style with cart icon */
.item-buy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #a8edea;
  text-decoration: none;
  padding: 5px 10px 5px 7px;
  border: 1px solid rgba(168, 237, 234, 0.18);
  border-radius: 100px;
  background: rgba(168, 237, 234, 0.04);
  transition: all 0.18s;
  white-space: nowrap;
}

.item-buy-btn svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.item-buy-btn:hover {
  background: rgba(168, 237, 234, 0.1);
  border-color: rgba(168, 237, 234, 0.4);
  color: #d0faf8;
  box-shadow: 0 0 12px rgba(168, 237, 234, 0.1);
  transform: translateY(-1px);
}

/* Edit + Delete buttons on custom items */
.item-edit-btn,
.item-delete-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(240, 240, 240, 0.3);
  cursor: pointer;
  transition: all 0.15s;
  opacity: 0;
}

.pack-item:hover .item-edit-btn,
.pack-item:hover .item-delete-btn {
  opacity: 1;
}

.item-edit-btn:hover {
  background: rgba(168, 237, 234, 0.12);
  border-color: rgba(168, 237, 234, 0.4);
  color: #a8edea;
}

.item-delete-btn:hover {
  background: rgba(255, 80, 80, 0.12);
  border-color: rgba(255, 80, 80, 0.4);
  color: #ff7070;
}

/* Inline edit input */
.custom-edit-input {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(168, 237, 234, 0.4);
  border-radius: 6px;
  padding: 2px 8px;
  outline: none;
  width: 100%;
  max-width: 260px;
}

/* Add your own item section */
.add-custom-section {
  margin: 32px 0 0;
}

.toggle-custom-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(240, 240, 240, 0.5);
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
  justify-content: center;
}

.toggle-custom-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(240, 240, 240, 0.75);
  border-color: rgba(255, 255, 255, 0.25);
}

.add-custom-form {
  display: none;
  align-items: center;
  gap: 10px;
}

.custom-item-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #f0f0f0;
  outline: none;
  transition: border-color 0.15s;
}

.custom-item-input::placeholder {
  color: rgba(240, 240, 240, 0.35);
}

.custom-item-input:focus {
  border-color: rgba(168, 237, 234, 0.5);
}

.custom-add-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #a8edea, #c084fc);
  color: #0a0a0f;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.custom-add-btn:hover { opacity: 0.85; }

/* Custom items — teal accent instead of purple */
.cat-group[data-category="Your Items"] .cat-title {
  color: rgba(168, 237, 234, 0.65);
}

.cat-group[data-category="Your Items"] .cat-title::after {
  background: linear-gradient(to right, rgba(168, 237, 234, 0.15), transparent);
}

.item-buy-btn:hover {
  background: rgba(168, 237, 234, 0.12);
  border-color: rgba(168, 237, 234, 0.5);
  color: #a8edea;
}

/* Actions */
.checklist-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #a8edea, #c084fc);
  color: #0a0a0f;
  border: none;
  border-radius: 10px;
  padding: 11px 22px;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}

.btn-secondary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(240, 240, 240, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 11px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(240, 240, 240, 0.75);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Responsive */
@media (max-width: 540px) {
  .event-header {
    flex-direction: column;
  }
  .event-header-right {
    align-self: flex-end;
  }
  .item-buy-btn {
    display: none; /* Show as separate row on mobile? Skip for v1 */
  }
}

/* Email CTA section — top of checklist, after affiliate notice */
.email-cta-section {
  display: flex;
  justify-content: center;
  padding: 20px 0 32px;
}

.email-cta-inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.email-cta-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(240, 240, 240, 0.65);
}

.email-cta-form {
  display: flex;
  gap: 10px;
  width: 100%;
}

.email-checklist-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #f0f0f0;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 11px 16px;
  outline: none;
  transition: border-color 0.15s;
}

.email-checklist-input::placeholder { color: rgba(240, 240, 240, 0.35); }
.email-checklist-input:focus { border-color: rgba(0, 232, 200, 0.5); }

.btn-email-send {
  background: linear-gradient(135deg, #a8edea 0%, #c084fc 100%);
  color: #0a0a0f;
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-email-send:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.btn-email-send:disabled { opacity: 0.55; cursor: not-allowed; }

.email-cta-success {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #00e8c8;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.email-cta-error {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ff6b6b;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}

@media (max-width: 480px) {
  .email-cta-form { flex-direction: column; }
  .btn-email-send { width: 100%; justify-content: center; }
}

/* Waitlist capture — bottom of /checklist/:slug pages, monetizes viral share loop */
.checklist-waitlist-section {
  display: flex;
  justify-content: center;
  padding: 24px 0 12px;
}

.checklist-waitlist-inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.checklist-waitlist-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(240, 240, 240, 0.65);
}

.checklist-waitlist-form { width: 100%; }

.checklist-waitlist-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

#checklist-waitlist-email {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #f0f0f0;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 11px 16px;
  outline: none;
  transition: border-color 0.15s;
}
#checklist-waitlist-email::placeholder { color: rgba(240, 240, 240, 0.35); }
#checklist-waitlist-email:focus { border-color: rgba(0, 232, 200, 0.5); }

.btn-checklist-waitlist {
  background: linear-gradient(135deg, #a8edea 0%, #c084fc 100%);
  color: #0a0a0f;
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-checklist-waitlist:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.btn-checklist-waitlist.loading { opacity: 0.6; cursor: wait; }
.btn-checklist-waitlist:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-checklist-waitlist-loading { display: none; }
.btn-checklist-waitlist.loading .btn-checklist-waitlist-text { display: none; }
.btn-checklist-waitlist.loading .btn-checklist-waitlist-loading { display: inline-flex; align-items: center; }

.checklist-waitlist-msg {
  min-height: 18px;
  font-size: 13px;
  margin-top: 8px;
}
.checklist-waitlist-msg.success { color: #00e8c8; }
.checklist-waitlist-msg.error { color: #ff6b6b; }

.checklist-waitlist-success {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #00e8c8;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  justify-content: center;
}

/* Mobile-first sticky submit on small screens (per acceptance criterion) */
@media (max-width: 600px) {
  .checklist-waitlist-section {
    position: sticky;
    bottom: 0;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10;
  }
  .checklist-waitlist-inner { max-width: 100%; }
  .checklist-waitlist-header { font-size: 13px; text-align: center; justify-content: center; }
  .checklist-waitlist-row { gap: 8px; }
  .btn-checklist-waitlist { padding: 11px 16px; }
}
