/* ============================================================
   TALAN.PRO — Comments Tool Styles
   ============================================================ */

/* ── Background ── */
.orb { opacity: 0.13; }

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #b388ff, transparent 70%);
  top: -200px; right: -100px;
  animation: orb-float-1 20s ease-in-out infinite;
}

.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #4fc3f7, transparent 70%);
  bottom: -100px; left: -80px;
  animation: orb-float-2 18s ease-in-out infinite;
}

/* ── Layout ── */
.comments-layout {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* ── Compose Card ── */
.compose-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
}

.compose-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.compose-title-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-violet-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.compose-name {
  width: 100%;
  padding: var(--space-3) var(--space-5);
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.compose-name:focus {
  border-color: rgba(179, 136, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(179, 136, 255, 0.08);
}

.compose-name::placeholder { color: var(--text-muted); }

.compose-divider {
  height: 1px;
  background: var(--glass-border);
  border: none;
  margin: var(--space-4) 0;
}

.compose-textarea {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: var(--font-sans);
  line-height: 1.7;
  resize: none;
  outline: none;
  min-height: 120px;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  caret-color: var(--accent-violet);
  display: block;
}

.compose-textarea:focus {
  border-color: rgba(179, 136, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(179, 136, 255, 0.08);
}

.compose-textarea::placeholder { color: var(--text-muted); }

/* Bottom row: char count + button */
.compose-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.compose-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-blue));
  border: none;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-base), opacity var(--duration-fast);
  box-shadow: 0 0 20px rgba(179, 136, 255, 0.3);
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 32px rgba(179, 136, 255, 0.5);
}

.submit-btn:active:not(:disabled) { transform: scale(0.97); }

.submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.submit-btn svg { transition: transform var(--duration-fast) var(--ease-spring); }
.submit-btn:hover:not(:disabled) svg { transform: translateX(2px); }

/* ── Comments Feed ── */
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.feed-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.feed-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 var(--space-2);
  background: var(--accent-violet-dim);
  border: 1px solid rgba(179,136,255,0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--accent-violet);
}

.feed-refresh {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.feed-refresh:hover {
  background: var(--glass-bg-hover);
  color: var(--text-secondary);
}

.feed-refresh svg {
  transition: transform 0.5s var(--ease-out);
}

#commentsFeed {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feed-refresh.spinning svg { transform: rotate(360deg); }

/* Comment list */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Single comment */
.comment-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  transition: background var(--duration-fast), border-color var(--duration-fast);
  animation: fadeInUp 0.35s var(--ease-out) both;
}

.comment-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

.comment-card.is-own {
  border-color: rgba(179, 136, 255, 0.2);
  background: rgba(179, 136, 255, 0.04);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.comment-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
  border: 1px solid var(--glass-border);
}

.comment-meta {
  flex: 1;
  min-width: 0;
}

.comment-author {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comment-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 1px;
}

.comment-own-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  background: var(--accent-violet-dim);
  border: 1px solid rgba(179,136,255,0.2);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  color: var(--accent-violet);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  flex-shrink: 0;
}

.comment-body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.75;
  word-break: break-word;
  white-space: pre-wrap;
}

/* States */
.feed-loading {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.skeleton-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-line {
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  margin-bottom: var(--space-3);
}

.skeleton-line.short  { width: 35%; }
.skeleton-line.medium { width: 60%; }
.skeleton-line.long   { width: 90%; }

.feed-empty {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  color: var(--text-muted);
}

.feed-empty-icon { font-size: 48px; margin-bottom: var(--space-3); opacity: 0.4; }
.feed-empty-text { font-size: var(--text-sm); }

.feed-error {
  text-align: center;
  padding: var(--space-8);
  color: #ff6464;
  font-size: var(--text-sm);
  background: rgba(255,100,100,0.05);
  border: 1px solid rgba(255,100,100,0.15);
  border-radius: var(--radius-xl);
}

@media (max-width: 600px) {
  .compose-card { padding: var(--space-5); }
}
