/* === Custom design tokens & utilities === */

.nav-link, .nav-link-mobile {
  color: rgba(42, 39, 36, 0.65);
  transition: all 0.18s ease;
}
.nav-link:hover, .nav-link-mobile:hover { color: #1a1816; }
.nav-link.active {
  background-color: #1a1816;
  color: #fafaf8;
}
.nav-link-mobile.active { color: #d4654a; font-weight: 600; }

/* Masonry feed */
.masonry {
  column-count: 1;
  column-gap: 1rem;
}
@media (min-width: 640px)  { .masonry { column-count: 2; } }
@media (min-width: 900px)  { .masonry { column-count: 3; } }
@media (min-width: 1200px) { .masonry { column-count: 4; } }
.masonry > * {
  break-inside: avoid;
  margin-bottom: 1rem;
  display: block;
}

/* Outfit card */
.outfit-card {
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  background: white;
  border: 1px solid #e8e6dd;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.outfit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(26, 24, 22, 0.25);
}

/* SVG garment cards (no external images needed) */
.garment-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Tag chip */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: #f4f3ee;
  color: #2a2724;
  border: 1px solid #e8e6dd;
}
.chip-active {
  background: #1a1816;
  color: #fafaf8;
  border-color: #1a1816;
}
.chip-accent {
  background: #f5d8cf;
  color: #a8442d;
  border-color: #f5d8cf;
}

/* Heart like animation */
@keyframes heartpop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.liked { animation: heartpop 0.35s ease; }

/* Modal */
.modal-bg {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(26, 24, 22, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fade 0.18s ease;
}
.modal-panel {
  background: #fafaf8;
  border-radius: 22px;
  max-width: 980px; width: 100%;
  max-height: 90vh; overflow: auto;
  animation: pop 0.22s ease;
}
@keyframes fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop   { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

/* Chat */
.bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble-user { background: #1a1816; color: #fafaf8; border-bottom-right-radius: 4px; }
.bubble-ai   { background: white; color: #1a1816; border: 1px solid #e8e6dd; border-bottom-left-radius: 4px; }

/* Subtle scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #e8e6dd; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #d4d1c5; }

/* Bottom safe area on mobile */
@media (max-width: 768px) {
  main { padding-bottom: 5rem; }
}

/* Empty state */
.empty {
  text-align: center;
  padding: 4rem 1rem;
  color: rgba(42, 39, 36, 0.55);
  border: 1.5px dashed #e8e6dd;
  border-radius: 18px;
}

/* Loading dots */
.dots span {
  display: inline-block;
  width: 6px; height: 6px;
  margin: 0 1px;
  border-radius: 50%;
  background: currentColor;
  animation: dot 1.2s infinite;
}
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
