/* Sims4Mods — features styles
   Save buttons, swatches, outfit builder, wishlist */

:root {
  --pink: #ff6ec7;
  --pink-2: #ff85d3;
  --pink-soft: rgba(255, 110, 199, 0.15);
  --pink-glow: rgba(255, 110, 199, 0.25);
  --grad-1: linear-gradient(135deg, #ff6ec7 0%, #b48cff 100%);
  --grad-2: linear-gradient(135deg, #ff6ec7 0%, #ff85d3 50%, #b48cff 100%);
  --bg: #0c0a10;
  --bg-2: #15121c;
  --bg-3: #1f1a2a;
  --bg-4: #2a2438;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f3f7;
  --text-dim: #b8b3c4;
  --text-mute: #6e6a7a;
}

/* ===== SAVE BUTTON (heart on cards) ===== */
.save-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: white;
  font-size: 16px;
  padding: 0;
}
.save-btn .save-icon {
  font-size: 18px;
  line-height: 1;
  color: white;
  transition: all 0.2s;
}
.save-btn:hover {
  background: rgba(255, 110, 199, 0.8);
  border-color: var(--pink);
  transform: scale(1.1);
}
.save-btn.saved {
  background: var(--pink);
  border-color: var(--pink);
}
.save-btn.saved .save-icon {
  color: white;
}
/* Heart character is rendered directly by the .save-icon span in the markup;
   no ::before needed (that was duplicating the heart as a second icon). */
.save-btn.saved:hover {
  background: var(--pink-2);
}

/* For save button on item detail (not icon-only) */
.btn.save-btn {
  width: auto;
  height: auto;
  border-radius: 100px;
  padding: 11px 18px;
  position: static;
  font-weight: 600;
  font-size: 13px;
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: none;
}
.btn.save-btn:hover { background: var(--pink-soft); color: var(--pink); border-color: var(--pink); }
.btn.save-btn.saved { background: var(--pink-soft); color: var(--pink); border-color: var(--pink); }
.btn.save-btn.saved:hover { background: var(--pink); color: white; }

/* ===== COLOR SWATCHES (item detail) ===== */
.swatches {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.swatches-label {
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-right: 4px;
}
.swatch {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.swatch:hover { transform: scale(1.15); border-color: var(--pink); }
.swatch-name {
  font-size: 11px;
  color: var(--text-dim);
  padding: 4px 8px;
  background: var(--bg-3);
  border-radius: 6px;
  border: 1px solid var(--border);
}



/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.page-numbers { display: flex; gap: 4px; align-items: center; }
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
  cursor: pointer;
}
.page-btn:hover { background: var(--bg-3); color: var(--text); border-color: var(--border-hover); text-decoration: none; }
.page-btn.active { background: var(--grad-1); color: white; border-color: transparent; }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.page-ellipsis { color: var(--text-mute); padding: 0 4px; }

/* ===== SORT FORM (browse header) ===== */
.browse-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.sort-form { display: flex; align-items: center; gap: 10px; }
.sort-select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 16px;            /* 16px prevents iOS zoom on focus */
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.sort-select:hover, .sort-select:focus { border-color: var(--pink); outline: none; }
@media (max-width: 600px) {
  .browse-head { flex-direction: column; align-items: stretch; }
  .sort-form { justify-content: space-between; }
}

