/* Perfils que inspiren — estils específics (s'afegeixen a descobreix.css) */

/* Índex: intro + reixa de perfils */
.profiles-intro { max-width: 760px; margin: 0 auto 1.8rem; color: #fff; text-align: center; }
.profiles-intro h1 { font-size: 2.1rem; font-weight: 700; text-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.profiles-intro p { font-size: 1.1rem; margin-top: 0.6rem; opacity: 0.96; }

.profiles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}
.profile-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fffdfb; border-radius: 16px; padding: 1.7rem 1.2rem;
  text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform .15s, box-shadow .15s; border: 2px solid transparent;
}
.profile-card:hover { transform: translateY(-5px); box-shadow: 0 12px 26px rgba(0,0,0,0.16); border-color: #d4a574; }
.profile-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  padding: 3px; margin-bottom: 0.9rem; box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  font-size: 42px;
  /* anell de colors tipus Instagram */
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.profile-avatar .pa-inner {
  position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid #fffdfb;                 /* separació blanca com a Instagram */
  background: var(--pa-bg, #d4a574);         /* color del perfil (fons de l'emoji) */
  box-sizing: border-box;
}
.profile-avatar .pa-emoji { line-height: 1; }
.profile-avatar .pa-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.profile-card .p-name { font-family: 'Atma', sans-serif; font-weight: 700; font-size: 1.15rem; color: #7a3d0f; margin-bottom: 0.15rem; line-height: 1.25; }
.profile-card .p-handle { font-size: 0.9rem; font-weight: 700; color: #b8875a; margin-bottom: 0.65rem; }
.profile-card .p-tag { font-size: 0.95rem; color: #5a4636; line-height: 1.45; }

/* Pàgina individual: capçalera del perfil */
.profile-hero { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 1.6rem; }
.profile-hero .profile-avatar { width: 116px; height: 116px; font-size: 58px; margin-bottom: 1rem; padding: 4px; }
.profile-hero h1 { font-size: 1.9rem; color: #7a3d0f; margin-bottom: 0.15rem; }
.profile-hero .p-handle { font-size: 1.05rem; font-weight: 700; color: #b8875a; margin-bottom: 1.1rem; }

/* Botó Instagram */
.ig-button {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff; text-decoration: none; font-family: 'Atma', sans-serif; font-weight: 600;
  padding: 0.75rem 1.6rem; border-radius: 30px; font-size: 1.02rem;
  box-shadow: 0 4px 14px rgba(188,24,136,0.35); transition: transform .15s, box-shadow .15s;
}
.ig-button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(188,24,136,0.45); color: #fff; }
.ig-button .ig-glyph { font-size: 1.15rem; line-height: 1; }

/* Llista "Què hi trobaràs" */
.find-list { list-style: none; margin: 1rem 0 0.5rem; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.find-list li { display: flex; gap: 0.85rem; background: #f7f0e8; border-radius: 12px; padding: 0.9rem 1.1rem; }
.find-list .fi-emoji { font-size: 1.5rem; line-height: 1.25; flex-shrink: 0; }
.find-list .fi-text { font-size: 1rem; color: #3f342b; }
.find-list .fi-text strong { color: #8b4513; }

/* Caixa "comparteix aquesta fitxa" */
.share-box { background: #fbeef4; border-left: 5px solid #dc2743; }
.share-box .label { color: #bc1888; }
.share-url { font-weight: 700; color: #8b4513; word-break: break-all; }

/* Logo Instagram dins dels botons */
.ig-button svg.ig-logo { width: 20px; height: 20px; display: block; flex-shrink: 0; }
.follow-cta { margin-top: 0.9rem; text-align: center; }

/* Recomanacions en franja horitzontal (com "Novetats" de la portada) */
.books-strip {
  display: flex; gap: 1.1rem; overflow-x: auto;
  margin: 1.4rem 0 0.5rem; padding: 0.4rem 0.25rem 1rem;
  scroll-snap-type: x proximity;
}
.books-strip::-webkit-scrollbar { height: 8px; }
.books-strip::-webkit-scrollbar-thumb { background: rgba(139,69,19,0.35); border-radius: 8px; }
.books-strip::-webkit-scrollbar-track { background: transparent; }
.books-strip .book-card { flex: 0 0 160px; width: 160px; scroll-snap-align: start; }

/* Navegació entre perfils (anterior / següent) */
.profile-flow { display: flex; gap: 0.8rem; margin: 1.9rem 0 1.4rem; }
.profile-flow a {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 0.7rem;
  background: #fffdfb; border: 2px solid rgba(139,69,19,0.15); border-radius: 14px;
  padding: 0.8rem 1.05rem; text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.profile-flow a:hover { transform: translateY(-3px); border-color: #d4a574; box-shadow: 0 10px 22px rgba(0,0,0,0.13); }
.profile-flow .flow-next { justify-content: flex-end; text-align: right; }
.profile-flow .flow-arrow { font-size: 1.2rem; color: #b8875a; flex-shrink: 0; }
.profile-flow .flow-info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.profile-flow .flow-label { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #b8875a; }
.profile-flow .flow-name { font-family: 'Atma', sans-serif; font-weight: 700; color: #7a3d0f; font-size: 1rem; }
@media (max-width: 520px) {
  .profile-flow { flex-direction: column; }
  .profile-flow .flow-next { justify-content: flex-start; text-align: left; }
}
