/* ============================================================
   FAFO.bio — assets/css/social.css
   Neon cyberpunk social action buttons
   ============================================================ */

/* ---- Action bar ---- */
.social-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  padding: 8px 0 4px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--c-text3);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  line-height: 1;
}
.social-btn:hover { background: var(--c-bg3); color: var(--c-text2); }

/* Like — neon red */
.like-btn .liked-state   { display: none; }
.like-btn .unliked-state { display: block; }
.like-btn.liked .liked-state   { display: block; }
.like-btn.liked .unliked-state { display: none; }
.like-btn.liked { color: var(--neon-red, #ff3c3c); }
.like-btn.liked:hover { background: rgba(255,60,60,0.1); }
.like-btn:hover { color: var(--neon-red, #ff3c3c); }

@keyframes heartPop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.5); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.like-btn.popping .liked-state { animation: heartPop 0.35s ease; }

/* Save — neon green */
.save-btn:hover { color: var(--neon-green, #00dc64); background: rgba(0,220,100,0.08); }
.save-btn.saved { color: var(--neon-green, #00dc64); }
.save-btn.saved:hover { background: rgba(0,220,100,0.1); }

@keyframes diskPop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.4); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* Comment — neon blue */
.comment-btn:hover { color: var(--neon-blue, #288cff); background: rgba(40,140,255,0.08); }


.comments-section {
  border-top: 1px solid var(--c-border);
  padding-top: 12px;
  margin-top: 4px;
}

.comments-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }

/* Single comment */
.comment-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.comment-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  overflow: hidden;
}
.comment-avatar img { width:100%;height:100%;object-fit:cover; }
.comment-body { flex: 1; min-width: 0; }
.comment-bubble {
  background: var(--c-bg3);
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  padding: 8px 12px;
  display: inline-block;
  max-width: 100%;
}
.comment-username {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 2px;
}
.comment-text { font-size: 13px; color: var(--c-text2); line-height: 1.5; word-break: break-word; }
.comment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-left: 4px;
}
.comment-action-btn {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-text3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.comment-action-btn:hover { color: var(--c-text); }
.comment-time { font-size: 10px; color: var(--c-text3); }

/* Replies */
.comment-replies {
  margin-top: 8px;
  margin-left: 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reply-composer {
  display: none;
  margin-top: 6px;
  margin-left: 36px;
}
.reply-composer.open { display: flex; gap: 6px; }

/* Comment composer */
.comment-composer {
  display: flex;
  gap: 8px;
  align-items: center;
}
.comment-composer__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  overflow: hidden;
}
.comment-composer__avatar img { width:100%;height:100%;object-fit:cover; }
.comment-input-wrap { flex: 1; display: flex; gap: 6px; align-items: center; }
.comment-input {
  flex: 1;
  background: var(--c-bg3);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  font-size: 13px;
  color: var(--c-text);
  outline: none;
}
.comment-input:focus { border-color: var(--c-yellow); }
.comment-input::placeholder { color: var(--c-text3); }
.comment-submit-btn {
  background: var(--c-yellow);
  color: #111;
  border: none;
  border-radius: var(--radius-full);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* ---- Save modal ---- */
.save-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 500px) {
  .save-modal-backdrop { align-items: center; }
}
.save-modal {
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
}
@media (min-width: 500px) {
  .save-modal { border-radius: var(--radius-xl); }
}
.save-modal__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.save-modal__close {
  background: none; border: none;
  color: var(--c-text3); font-size: 20px; cursor: pointer;
}
.collection-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.collection-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--c-bg3);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.15s;
}
.collection-option:hover { border-color: var(--c-yellow); }
.collection-option.saved { border-color: var(--c-yellow); background: rgba(232,196,74,0.08); }
.collection-option__emoji { font-size: 20px; }
.collection-option__name { font-size: 14px; font-weight: 700; color: var(--c-text); flex: 1; }
.collection-option__count { font-size: 11px; color: var(--c-text3); }
.collection-option__check { font-size: 16px; color: var(--c-yellow); }

.new-collection-form { border-top: 1px solid var(--c-border); padding-top: 14px; }
.new-collection-form__title {
  font-size: 13px; font-weight: 700; color: var(--c-text3);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}
.new-coll-row { display: flex; gap: 8px; }
.emoji-input { width: 48px; text-align: center; font-size: 18px; }
