/* Felines Love Comments — Google Blogger Style */

.comments-section {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  font-family: var(--font-body);
}

.comments-header {
  margin-bottom: var(--space-lg);
}

.comments-header h3 {
  font-size: var(--fs-h3);
  color: var(--color-text-heading);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.comments-count-badge {
  background: var(--color-gold);
  color: #0f0f0f;
  font-size: var(--fs-tiny);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

/* Form Styles */
.comment-form-container {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-card);
}

.comment-form-container.replying {
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
  background: var(--color-surface);
  border-color: var(--color-gold);
}

.comment-form-title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  color: var(--color-text-heading);
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cancel-reply {
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  color: var(--color-gold);
  background: none;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cancel-reply:hover {
  text-decoration: underline;
}

.comment-input-group {
  margin-bottom: var(--space-md);
}

.comment-input-group label {
  display: block;
  font-size: var(--fs-small);
  margin-bottom: var(--space-xs);
  color: var(--color-text-muted);
}

.comment-input {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.2);
}

textarea.comment-input {
  resize: vertical;
  min-height: 100px;
}

.comment-submit-btn {
  background: var(--color-gold);
  color: #0f0f0f;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--fs-small);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.comment-submit-btn:hover {
  background: var(--color-gold-light);
  transform: translateY(-1px);
}

.comment-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.comment-status {
  font-size: var(--fs-small);
  margin-top: var(--space-sm);
}

.comment-status.error {
  color: var(--color-coral);
}

.comment-status.success {
  color: var(--color-sage);
}

/* Comment Thread Styles */
.comments-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-item {
  margin-bottom: var(--space-lg);
  animation: fadeIn 0.4s ease-out;
}

.comment-body {
  display: flex;
  gap: var(--space-md);
}

.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  text-transform: uppercase;
}

.comment-content-wrapper {
  flex-grow: 1;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.comment-author {
  font-weight: 600;
  color: var(--color-text-heading);
  font-size: 1rem;
}

.comment-date {
  font-size: var(--fs-tiny);
  color: var(--color-text-muted);
}

.comment-text {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-actions {
  display: flex;
  gap: var(--space-md);
}

.comment-reply-btn {
  background: none;
  border: none;
  color: var(--color-gold);
  font-size: var(--fs-tiny);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.comment-reply-btn:hover {
  color: var(--color-gold-light);
  text-decoration: underline;
}

/* Nested Replies */
.comment-replies {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0 calc(48px + var(--space-md));
  border-left: 2px solid var(--color-border);
  padding-left: var(--space-md);
}

@media (max-width: 600px) {
  .comment-replies {
    margin-left: var(--space-md);
  }
}

/* Skeleton Loading */
.comment-skeleton {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface);
  animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-content {
  flex-grow: 1;
}

.skeleton-line {
  height: 12px;
  background: var(--color-surface);
  margin-bottom: 8px;
  border-radius: 4px;
  animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.long { width: 100%; }

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
