/* Social pages: nav, feed, post cards, profiles */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1120px; margin: 0 auto; padding: 18px 16px;
}
.nav-logo img { width: 170px; height: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.nav-links a, .nav-links button {
  color: var(--purple); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 6px 0;
  font: 700 11px "Arimo", sans-serif; letter-spacing: .24em; text-transform: uppercase;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links button:hover { border-bottom-color: var(--purple); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--purple); }
.nav-links .nav-in { border: 1px solid var(--purple); padding: 8px 14px; }

.page { max-width: 560px; margin: 0 auto; padding: 8px 16px 72px; }
.page-title { text-align: center; margin: 12px 0 34px; }
.page-title h1 { margin: 0 0 6px; }
.feed { display: flex; flex-direction: column; gap: 44px; }
.empty { border: 1px dashed var(--sand); padding: 36px 16px; text-align: center; font-size: 14px; line-height: 1.6; opacity: .85; grid-column: 1 / -1; }
.empty a { color: inherit; }
.load-more { display: block; margin: 40px auto 0; }

/* post card */
.post { background: transparent; }
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--purple); color: var(--cream); text-decoration: none;
  font: 400 19px "Noto Serif Display", Georgia, serif;
}
.who { display: flex; flex-direction: column; min-width: 0; }
.who .name { color: var(--purple); font-weight: 700; text-decoration: none; font-size: 15px; }
.who .name:hover { text-decoration: underline; }
.who .meta { font-size: 12px; opacity: .65; overflow-wrap: anywhere; }
.post-photo { display: block; }
.post-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 88 / 107; background: #fff; object-fit: cover;
  box-shadow: 0 14px 26px rgba(79,69,104,.18), 0 2px 4px rgba(79,69,104,.12);
}
.post:nth-child(odd) .post-photo img { transform: rotate(-.8deg); }
.post:nth-child(even) .post-photo img { transform: rotate(.7deg); }
.post-actions { display: flex; align-items: center; gap: 22px; margin: 20px 0 10px; }
.post-actions .like, .post-actions .comment-link {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: var(--purple); font: 14px "Arimo", sans-serif; text-decoration: none;
}
.post-actions svg { width: 24px; height: 24px; fill: none; stroke: var(--purple); stroke-width: 1.6; stroke-linejoin: round; transition: transform .15s, fill .15s; }
.like[aria-pressed="true"] svg { fill: #e86fa8; stroke: #e86fa8; }
.like:active svg { transform: scale(1.2); }
.like:disabled { cursor: progress; }

.comments { border-top: 1px solid var(--line); padding-top: 12px; }
.comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.comment-list li { font-size: 14px; line-height: 1.5; position: relative; padding-right: 26px; overflow-wrap: anywhere; }
.c-name { font-weight: 700; color: var(--purple); text-decoration: none; margin-right: 6px; }
.c-name:hover { text-decoration: underline; }
.c-time { font-size: 11px; opacity: .55; margin-left: 6px; }
.c-del { position: absolute; right: 0; top: 0; background: none; border: 0; color: var(--purple); opacity: .45; cursor: pointer; font-size: 16px; }
.c-del:hover { opacity: 1; color: var(--danger); }
.no-comments { opacity: .65; }
.more-comments { display: inline-block; font-size: 13px; color: var(--purple); opacity: .75; margin-top: 8px; }
.comment-form { display: flex; gap: 8px; margin-top: 12px; }
.comment-form input {
  flex: 1; min-width: 0; font: 14px "Arimo", sans-serif; color: var(--purple);
  border: 1px solid var(--line); background: var(--cream); border-radius: 2px; padding: 10px 12px;
}
.comment-form button { padding: 10px 14px; }
.comments .hint a { color: inherit; }

/* profile */
.profile-head { text-align: center; padding: 10px 0 30px; }
.profile-head .avatar { width: 84px; height: 84px; font-size: 40px; margin: 0 auto 14px; }
.profile-head h1 { margin: 0; font-size: clamp(26px, 5vw, 38px); letter-spacing: .08em; padding: 0; }
.profile-head .handle { font-size: 13px; letter-spacing: .1em; opacity: .7; margin: 6px 0 12px; }
.profile-head .bio { max-width: 420px; margin: 0 auto 14px; line-height: 1.6; font-size: 15px; }
.profile-head .stats { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; opacity: .75; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 20px; max-width: 900px; margin: 0 auto; }
.grid a { display: block; color: inherit; text-decoration: none; }
.grid img {
  display: block; width: 100%; aspect-ratio: 88 / 107; object-fit: cover; background: #fff;
  box-shadow: 0 8px 18px rgba(79,69,104,.16), 0 1px 3px rgba(79,69,104,.12); transition: transform .2s;
}
.grid a:nth-child(odd) img { transform: rotate(-1.4deg); }
.grid a:nth-child(even) img { transform: rotate(1.1deg); }
.grid a:hover img { transform: rotate(0) translateY(-3px); }
.grid .g-stats { font-size: 12px; margin-top: 10px; opacity: .7; }
.wide { max-width: 980px; }

.edit-profile { max-width: 420px; margin: 0 auto 36px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.edit-profile label { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; display: flex; flex-direction: column; gap: 8px; }
.edit-profile input, .edit-profile textarea {
  font: 15px "Arimo", sans-serif; color: var(--purple); letter-spacing: normal; text-transform: none;
  border: 1px solid var(--line); background: var(--cream); border-radius: 2px; padding: 11px 12px; resize: none;
}
.form-msg { font-size: 13px; min-height: 18px; margin: 0; }
.form-msg.error { color: var(--danger); }

/* Pro blue tick */
.tick { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-left: 4px; flex: none; }
.who .name + .tick { vertical-align: -3px; }
.c-name + .tick { width: 14px; height: 14px; margin: 0 6px 0 -2px; vertical-align: -2px; }
.profile-head h1 .tick { width: .62em; height: .62em; vertical-align: .05em; margin-left: .1em; }
.pro-label { font-size: 10px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: #2f80ed; margin: 8px 0 0; }
.name-row { display: flex; align-items: center; min-width: 0; }
.name-row .tick { vertical-align: 0; }
