/* GoGG Minimalist Comments Section */
.comments-section {
  width: 100%;
  max-width: 100%;
  margin: 24px auto 16px;
  padding: 18px 16px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 10px;
  box-sizing: border-box;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #c9d1d9;
}

.comments-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid #21262d;
  padding-bottom: 12px;
}

.comments-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.comments-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f0f6fc;
  margin: 0;
  letter-spacing: -0.2px;
}

.comments-count-badge {
  background: #21262d;
  color: #8b949e;
  border: 1px solid #30363d;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.comments-subtitle {
  font-size: 0.78rem;
  color: #8b949e;
  margin: 0;
}

/* Comment Form */
.comments-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.comment-input-row {
  display: flex;
  gap: 8px;
}

.comment-nickname-input {
  width: 160px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.82rem;
  color: #c9d1d9;
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.comment-nickname-input:focus {
  border-color: #58a6ff;
}

.comment-textarea {
  width: 100%;
  min-height: 64px;
  max-height: 180px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #c9d1d9;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.comment-textarea:focus {
  border-color: #58a6ff;
}

.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comment-char-count {
  font-size: 0.72rem;
  color: #6e7681;
}

.comment-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #238636;
  border: 1px solid rgba(240, 246, 252, 0.1);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.comment-submit-btn:hover:not(:disabled) {
  background: #2ea043;
  border-color: rgba(240, 246, 252, 0.2);
}

.comment-submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #21262d;
  border-color: rgba(255, 255, 255, 0.1);
  color: #8b949e;
}

/* Comments List */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-card {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  transition: border-color 0.15s ease;
}

.comment-card:hover {
  border-color: #30363d;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #21262d;
  border: 1px solid #30363d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  user-select: none;
}

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

.comment-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 4px;
}

.comment-author {
  font-size: 0.84rem;
  font-weight: 600;
  color: #f0f6fc;
}

.comment-device-badge {
  font-size: 0.72rem;
  color: #8b949e;
}

.comment-time {
  font-size: 0.72rem;
  color: #6e7681;
  margin-left: auto;
}

.comment-body {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #c9d1d9;
  word-break: break-word;
  white-space: pre-wrap;
  margin: 0;
}

.comments-empty {
  text-align: center;
  padding: 20px 12px;
  color: #8b949e;
  font-size: 0.82rem;
  background: #161b22;
  border-radius: 6px;
  border: 1px dashed #30363d;
}

.comment-toast {
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 10px;
  display: none;
}
.comment-toast.error {
  display: block;
  background: rgba(255, 123, 114, 0.12);
  border: 1px solid rgba(255, 123, 114, 0.35);
  color: #ff7b72;
}
.comment-toast.success {
  display: block;
  background: rgba(46, 160, 67, 0.12);
  border: 1px solid rgba(46, 160, 67, 0.35);
  color: #3fb950;
}

/* Pagination */
.comments-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #21262d;
  user-select: none;
}

.comments-page-btn {
  background: #161b22;
  border: 1px solid #30363d;
  color: #8b949e;
  border-radius: 6px;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  font-family: inherit;
}

.comments-page-btn:hover:not(:disabled) {
  background: #21262d;
  color: #c9d1d9;
  border-color: #8b949e;
}

.comments-page-btn.active {
  background: #1f6feb;
  border-color: #388bfd;
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}

.comments-page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.comments-page-ellipsis {
  color: #6e7681;
  font-size: 0.78rem;
  padding: 0 3px;
}

/* Subtle Reset Data Button in Footer */
.reset-data-btn {
  display: inline-block;
  background: transparent;
  border: none;
  color: #484f58;
  font-size: 0.68rem;
  font-family: inherit;
  opacity: 0.35;
  cursor: pointer;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.2px;
  transition: opacity 0.2s ease, color 0.2s ease;
  user-select: none;
}

.reset-data-btn:hover {
  opacity: 0.85;
  color: #ff7b72;
  text-decoration: underline;
}

