/* ============================================================================
   components/social/social.css — Saved / Collections / Hashtag / Activity /
   Achievements + repost kartı + bağlantılandırma
   UNIO tasarım dili korunur: aynı değişkenler, aynı yuvarlaklık, aynı gölge.
   ============================================================================ */

.soc-screen { padding: 0 0 110px; }

/* ── başlık ── */
.soc-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  position: sticky; top: 0; z-index: 5;
}
.soc-back {
  border: 0; background: none; cursor: pointer; font-family: inherit;
  font-size: 26px; line-height: 1; color: var(--text);
  width: 32px; height: 32px; display: grid; place-items: center;
}
.soc-head__t { display: flex; flex-direction: column; line-height: 1.3; }
.soc-head__t strong { font-size: 17px; font-weight: 800; }
.soc-head__t span { font-size: 12.5px; color: var(--muted); }

.soc-bar { display: flex; gap: 8px; padding: 12px 14px; flex-wrap: wrap; }

.soc-tabs { display: flex; gap: 6px; padding: 10px 14px 0; }
.soc-tab {
  border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--muted); cursor: pointer; padding: 8px 4px;
  border-bottom: 2px solid transparent;
}
.soc-tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }

/* ── durumlar ── */
.soc-skel { display: grid; gap: 10px; padding: 14px; }
.soc-skel__row {
  height: 88px; border-radius: 14px; background: var(--line);
  animation: socPulse 1.4s infinite;
}
@keyframes socPulse { 0%,100% { opacity: .55 } 50% { opacity: .9 } }

/* ── Boş ekran — TEK tasarım dili (Sprint 10.5) ──
   Uygulamada iki ayrı boş ekran deseni vardı: bildirimlerdeki `.empty-card`
   (yumuşak mor kare içinde SVG ikon) ve sosyal ekranlardaki `.soc-empty`
   (çıplak emoji). Yan yana konduklarında ikisi farklı uygulamadan gelmiş
   gibi görünüyordu. Ölçüler `.empty-ic` ile birebir eşitlendi. */
.soc-empty {
  display: grid; place-items: center; gap: 7px;
  padding: 54px 26px; text-align: center;
}
.soc-empty__ic, .soc-empty-i {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--purple-soft); color: var(--purple-deep);
  display: grid; place-items: center; margin: 0 auto 7px;
}
.soc-empty__ic svg, .soc-empty-i svg { width: 26px; height: 26px; }
.soc-empty strong { font-size: 15.5px; }
.soc-empty p { font-size: 13.5px; color: var(--muted); max-width: 300px; margin: 0; line-height: 1.5; }

/* ── koleksiyon ızgarası ── */
.col-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px; padding: 14px;
}
.col-card {
  border: 0; background: none; padding: 0; cursor: pointer; font-family: inherit;
  display: grid; gap: 6px; text-align: left;
}
.col-card__cover {
  display: grid; place-items: center;
  aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line);
}
.col-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.col-card__ph { display: grid; place-items: center; color: var(--muted-2); }
.col-card__ph svg { width: 28px; height: 28px; }
.col-card__t {
  font-size: 14px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.col-card__n { font-size: 12px; color: var(--muted); }
.col-desc { padding: 0 14px 6px; font-size: 13.5px; color: var(--muted); }

/* ── hashtag ── */
.htag-rel { display: flex; gap: 7px; padding: 0 14px 12px; overflow-x: auto; scrollbar-width: none; }
.htag-rel::-webkit-scrollbar { display: none; }
.htag-chip {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--bg);
  color: var(--brand); border-radius: 999px; padding: 6px 12px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.htag-chip:hover { border-color: var(--brand); }

/* ── aktivite ── */
.act-list { list-style: none; margin: 0; padding: 0; }
.act-row {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
/* İkon kutuları artık SVG taşıyor (Sprint 10.5): boyut font-size ile değil,
   svg genişliğiyle belirlenir. Emoji kaldırıldığında font-size ölçüsü
   anlamsız kalıyordu. */
.act-ic {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); color: var(--muted);
}
.act-ic svg { width: 16px; height: 16px; }
.act-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.act-label { font-size: 13px; font-weight: 700; }
.act-text {
  font-size: 13px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.act-time { flex: 0 0 auto; font-size: 12px; color: var(--muted); }

/* ── başarımlar ── */
.ach-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 11px; padding: 14px;
}
.ach-card {
  display: grid; gap: 5px; padding: 14px 12px;
  border: 1px solid var(--line); border-radius: 15px;
  background: var(--card); text-align: center;
  opacity: .58;
}
.ach-card.is-on {
  opacity: 1;
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: color-mix(in srgb, var(--brand) 5%, var(--card));
}
.ach-ic { display: grid; place-items: center; color: var(--brand); }
.ach-ic svg { width: 22px; height: 22px; }
.ach-card.locked .ach-ic { color: var(--muted-2); }
.ach-t { font-size: 13.5px; font-weight: 700; }
.ach-d { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.ach-when { font-size: 11px; color: var(--brand); font-weight: 600; }
.ach-bar {
  display: block; height: 4px; border-radius: 3px;
  background: var(--line); overflow: hidden; margin-top: 3px;
}
.ach-bar > span { display: block; height: 100%; background: var(--brand); }

/* ── repost kartı ── */
.fcard-repost-by {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 18px 0;
  font-size: 12.5px; color: var(--muted); font-weight: 600;
}
.fcard-repost-by button {
  border: 0; background: none; font: inherit; font-weight: 700;
  color: var(--text); cursor: pointer; padding: 0;
}
.fcard-repost-by svg { width: 14px; height: 14px; }
.fcard-repost-by .fcard-time { margin-left: auto; font-weight: 400; }
.fcard-quote { padding-top: 8px; }

/* İçteki gönderi çerçeveli: alıntı olduğu bir bakışta anlaşılsın. */
.fcard-inner {
  margin: 10px 14px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
}
.fcard-inner .fcard-head { padding: 12px 14px 0; }
.fcard-inner .fcard-media { margin-top: 10px; }
.fcard-inner .fcard-text { padding: 10px 14px; }

/* ── bağlantılandırma ── */
.lnk-mention, .lnk-tag {
  color: var(--brand); text-decoration: none; font-weight: 600;
}
.lnk-mention:hover, .lnk-tag:hover { text-decoration: underline; }

/* ── hareket azaltma ── */
@media (prefers-reduced-motion: reduce) {
  .soc-skel__row { animation: none; }
}

/* ── geniş ekran ── */
@media (min-width: 900px) {
  .col-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .ach-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}

/* ── profil giriş şeridi ── */
.soc-links {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; padding: 0 14px 4px;
}
.soc-link {
  display: grid; gap: 5px; justify-items: center;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); padding: 12px 6px;
  font: inherit; font-size: 11.5px; font-weight: 600; color: var(--text);
  cursor: pointer; text-align: center;
}
.soc-link:hover { border-color: var(--brand); color: var(--brand); }
.soc-link__ic { display: grid; place-items: center; color: var(--brand); }
.soc-link__ic svg { width: 20px; height: 20px; }
@media (max-width: 380px) {
  .soc-links { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════ Sprint 10A — takip istekleri + paylaşım sayfası ═══════════ */

/* ── Takip istekleri ── */
.fr-list { display: flex; flex-direction: column; gap: 8px; }
.fr-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px;
}
.fr-av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.fr-who { min-width: 0; flex: 1; cursor: pointer; }
.fr-name { font-size: 14px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-sub { font-size: 12px; color: var(--muted); }
.fr-acts { display: flex; gap: 6px; flex: 0 0 auto; }
.fr-done { font-size: 12px; color: var(--muted); }

/* ── Paylaşım sayfası (bottom sheet) ── */
.sh-layer { position: fixed; inset: 0; z-index: 60; }
.sh-backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .45); }
.sh-sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 86vh; display: flex; flex-direction: column;
  background: var(--card); border-radius: 20px 20px 0 0;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  animation: sh-up .22s ease-out;
}
@keyframes sh-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sh-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line);
  margin: 4px auto 10px; }
.sh-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sh-head h3 { font-size: 17px; font-weight: 800; color: var(--text); }
.sh-x { margin-left: auto; background: none; border: 0; font-size: 18px;
  color: var(--muted); cursor: pointer; padding: 4px 8px; }
.sh-search {
  width: 100%; padding: 10px 12px; border-radius: 12px; font-size: 14px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  margin-bottom: 10px;
}
.sh-people {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px; padding: 2px 2px 4px;
  /* Kaydırılabilir TEK alan burasıdır ve KÜÇÜLEBİLİR olmalı; aksi hâlde
     alttaki gönder ve sistem satırları sayfanın dışına taşıp kesiliyordu. */
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
}
.sh-head, .sh-search, .sh-note-row, .sh-sys, .sh-hint, .sh-grip { flex: 0 0 auto; }
.sh-person {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer; padding: 4px 0; position: relative;
}
.sh-person img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 2px solid transparent; transition: border-color .15s;
}
.sh-person.on img { border-color: var(--brand); }
.sh-p-name {
  font-size: 11px; line-height: 1.25; color: var(--text); max-width: 74px;
  text-align: center; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sh-tick {
  position: absolute; top: 0; right: 6px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center;
}
.sh-tick svg { width: 10px; height: 10px; }
.sh-note-row { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
/* Gönder düğmesi SIKIŞMAZ: metin kesiliyordu ("Gönde|r"). */
.sh-note-row .btn { flex: 0 0 auto; white-space: nowrap; padding: 10px 16px; }
.sh-note {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; font-size: 14px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
}
.sh-sys {
  display: flex; gap: 8px; margin-top: 12px;
  border-top: 1px solid var(--line); padding-top: 12px;
}
.sh-sys-btn {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 8px; font-size: 12px; color: var(--text); cursor: pointer;
  font-family: inherit;
}
.sh-sys-btn svg { width: 18px; height: 18px; }
.sh-sys-btn span { line-height: 1.2; text-align: center; }
.sh-sys-btn:focus-visible, .sh-person:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sh-empty { text-align: center; padding: 26px 12px; color: var(--muted); font-size: 14px; }

/* ── Sohbetteki paylaşılan gönderi kartı (Instagram düzeni) ──
   Üstte yazar (avatar + ad + tarih), ortada görsel, altında ilk satırlar,
   en altta "Gönderiyi aç". Yatay şerit yerine dikey kart: gönderi bir
   ekli dosya değil, içeriğin kendisi gibi görünmeli. */
.msg-post {
  display: flex; flex-direction: column; gap: 0; width: 232px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; cursor: pointer;
}
.msg-post:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.msg-post-head { display: flex; align-items: center; gap: 7px; padding: 9px 10px; }
.msg-post-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.msg-post-who {
  font-size: 12px; font-weight: 700; color: var(--text); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.msg-post-date { font-size: 11px; color: var(--muted); margin-left: auto; flex: 0 0 auto; }
.msg-post-img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  background: var(--bg);
}
.msg-post-x {
  font-size: 12px; color: var(--text); padding: 9px 10px 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.msg-post-foot { padding: 9px 10px; border-top: 1px solid var(--line); margin-top: 9px; }
.msg-post-open { font-size: 12px; font-weight: 700; color: var(--brand); }

/* Gönder satırı her zaman görünür; kişi seçilmeden pasif durur. */
.sh-note-row .btn[disabled], .sh-note[disabled] { opacity: .45; cursor: not-allowed; }
.sh-hint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; }

/* Arkadaşlarım sekmeleri */
.fr-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.fr-tab {
  flex: 1 1 0; min-width: 0; padding: 9px 6px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fr-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.fr-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
