/* Wish Page Styles — extends Bitifyware home.css tokens */

.wish-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #faf9f6 0%, #f5f3ed 100%);
}

.wish-header-inner {
  max-width: 720px;
}

.wish-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.wish-header h1 {
  font-size: clamp(2rem, 3.6vw, 2.95rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  font-weight: 650;
  color: var(--text);
}

.wish-header .lead {
  font-size: 1.06rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 620px;
}

/* Main Workspace */
.wish-main {
  padding: 48px 0 80px;
}

.wish-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 36px;
  align-items: start;
}

/* Form Card */
.wish-form-card {
  position: sticky;
  top: 92px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 18px 40px -24px rgba(20, 20, 19, 0.14);
}

.wish-form-head {
  margin-bottom: 24px;
}

.wish-form-head h2 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.wish-form-head p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Alerts */
.wish-alert {
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.wish-alert[hidden] {
  display: none;
}

.wish-alert-success {
  background: #eff7f1;
  border: 1px solid #c6e2ce;
  color: #1d5432;
}

.wish-alert-error {
  background: #fdf2ef;
  border: 1px solid #f2c5b8;
  color: #8f2d18;
}

/* Form Fields */
.wish-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wish-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.wish-label,
.wish-fieldset legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.wish-req {
  color: var(--accent);
  margin-inline-start: 3px;
}

.wish-opt {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.wish-counter {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Segmented Type Switcher */
.wish-segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: 11px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.wish-seg-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  text-align: center;
}

.wish-seg-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wish-seg-option:hover {
  color: var(--text);
}

.wish-seg-option.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(20, 20, 19, 0.08);
}

/* Existing Product Selector */
.wish-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.wish-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.wish-product-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wish-product-card strong {
  font-size: 0.92rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wish-product-card .wish-radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #c9c7c0;
  background: var(--surface);
  flex-shrink: 0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.wish-product-card span {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.wish-product-card:hover {
  border-color: #c9c7c0;
  background: var(--surface);
}

.wish-product-card.selected {
  border-color: var(--text);
  background: var(--surface);
  box-shadow: 0 4px 12px -6px rgba(20, 20, 19, 0.18);
}

.wish-product-card.selected .wish-radio-dot {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3.5px var(--accent);
}

/* Inputs & Textareas */
.wish-input,
.wish-textarea,
.wish-select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  line-height: 1.5;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.wish-input::placeholder,
.wish-textarea::placeholder {
  color: #9b9992;
}

.wish-input:hover,
.wish-textarea:hover,
.wish-select:hover {
  border-color: #c9c7c0;
}

.wish-input:focus,
.wish-textarea:focus,
.wish-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.16);
}

.wish-input.is-invalid,
.wish-textarea.is-invalid,
.wish-select.is-invalid {
  border-color: #c7462d;
  box-shadow: 0 0 0 3px rgba(199, 70, 45, 0.14);
}

.wish-textarea {
  resize: vertical;
  min-height: 120px;
}

.wish-row-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.wish-help {
  margin: 6px 0 0;
  font-size: 0.79rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.wish-field-section[hidden] {
  display: none;
}

.wish-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.wish-submit-btn {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.16s ease, transform 0.12s ease, opacity 0.16s ease;
}

.wish-submit-btn:active {
  transform: translateY(1px);
}

.wish-submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Community Wishlist Board */
.wish-board {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wish-board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wish-board-head h2 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.wish-board-head p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.wish-count-pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Filter Bar */
.wish-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wish-filter-btn {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wish-filter-btn:hover {
  border-color: #c9c7c0;
  color: var(--text);
}

.wish-filter-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* Wish Cards List */
.wish-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wish-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.wish-card:hover {
  border-color: #d3d1c9;
  box-shadow: 0 10px 24px -18px rgba(20, 20, 19, 0.18);
}

.wish-card[hidden] {
  display: none;
}

.wish-card.is-new {
  animation: wishFadeIn 0.35s ease;
}

@keyframes wishFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wish-vote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 58px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.wish-vote-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: #fdf6f3;
}

.wish-vote-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.wish-vote-btn.voted {
  border-color: var(--accent);
  background: #fdf2ed;
  color: var(--accent);
}

.wish-vote-arrow {
  font-size: 0.72rem;
  line-height: 1;
}

.wish-vote-count {
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.1;
}

.wish-card-body {
  min-width: 0;
}

.wish-card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.wish-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.5;
}

.wish-badge-product {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--text);
}

.wish-badge-new-product {
  background: #fdf2ed;
  border: 1px solid #f0cfc3;
  color: #a4492b;
}

.wish-badge-status {
  border: 1px solid transparent;
}

.wish-status-open {
  background: #f3f2ee;
  color: #5c5b57;
}

.wish-status-reviewing {
  background: #fef6e7;
  color: #8f5b0c;
}

.wish-status-planned {
  background: #eef4fc;
  color: #27589c;
}

.wish-status-in_progress {
  background: #fdf2ed;
  color: #b44d2d;
}

.wish-status-shipped {
  background: #edf7f0;
  color: #1f6138;
}

.wish-card-title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  word-break: break-word;
}

.wish-card-desc {
  margin: 0 0 12px;
  font-size: 0.89rem;
  color: var(--text-muted);
  white-space: pre-line;
  word-break: break-word;
}

.wish-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.wish-meta-dot::before {
  content: "·";
  margin-inline-end: 12px;
  color: #c9c7c0;
}

/* Empty State */
.wish-empty {
  padding: 44px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed #d6d4cd;
  border-radius: var(--radius);
  color: var(--text-muted);
}

.wish-empty[hidden] {
  display: none;
}

.wish-empty h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--text);
}

.wish-empty p {
  margin: 0;
  font-size: 0.9rem;
}

/* Active nav item highlight */
.nav-links a.nav-active {
  color: var(--text);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 960px) {
  .wish-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .wish-form-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .wish-header {
    padding: 40px 0 28px;
  }

  .wish-form-card {
    padding: 22px 18px;
  }

  .wish-product-grid,
  .wish-row-two {
    grid-template-columns: 1fr;
  }

  .wish-card {
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 15px 14px;
    gap: 12px;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.85rem;
    flex-wrap: wrap;
  }
}
