/* src/assets/css/includes/comments.css */

.tc-root {
  max-width: 800px;
  margin: 40px auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-family: inherit;
  overflow: hidden;
  transition: all 0.3s ease;
}

.tc-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--bg-card);
}

.tc-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
}

.tc-ps-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.tc-avg-big {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-color);
  line-height: 1;
}

.tc-ps-stars-wrap {
  display: flex;
  flex-direction: column;
}

.tc-stars-fs {
  color: #f4b400;
  letter-spacing: 2px;
  font-size: 1.1rem;
}

.tc-total-v {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.tc-user-rate-box {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-body);
}

.tc-rate-text {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tc-stars-input {
  font-size: 2rem;
  color: var(--border-color);
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.tc-s {
  transition: color 0.2s, transform 0.2s;
}

.tc-s:hover {
  transform: scale(1.1);
}

.tc-s.active, .tc-s.hover-active {
  color: #f4b400;
}

.tc-editor-box {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.tc-editor-box textarea {
  width: 100%;
  min-height: 80px;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  background: var(--bg-body);
  color: var(--text-color);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.tc-editor-box textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.tc-editor-actions {
  text-align: right;
  margin-top: 12px;
}

.tc-post-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.3s, transform 0.1s;
}

.tc-post-btn:hover {
  background: #1557b0;
}

.tc-post-btn:active {
  transform: scale(0.98);
}

.tc-post-btn:disabled {
  background: #a0c1f2;
  cursor: not-allowed;
}

.tc-feed {
  max-height: 600px;
  overflow-y: auto;
  background: var(--bg-card);
}

/* Custom Scrollbar for Feed */
.tc-feed::-webkit-scrollbar {
  width: 6px;
}
.tc-feed::-webkit-scrollbar-track {
  background: var(--bg-body);
}
.tc-feed::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.tc-card {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s;
}

.tc-card:last-child {
  border-bottom: none;
}

.tc-card:hover {
  background: var(--bg-body);
}

.tc-card.reply {
  margin-left: 56px;
  border-left: 2px solid var(--border-color);
  background: var(--bg-body);
}

.tc-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.tc-card-pfp {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.tc-card-pfp-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.tc-card-meta {
  flex-grow: 1;
}

.tc-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tc-admin-badge {
  background: var(--blue);
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tc-card-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tc-card-rating {
  color: #f4b400;
  font-size: 0.8rem;
}

.tc-card-body {
  margin: 4px 0 12px 48px;
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
  white-space: pre-wrap;
}

.tc-actions {
  margin-left: 48px;
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  align-items: center;
}

.tc-action-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tc-action-btn:hover {
  color: var(--blue);
}

.tc-action-btn.delete:hover {
  color: #d93025;
}

.tc-like-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  background-color: var(--bg-body);
}

.tc-like-btn svg {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tc-like-btn:hover {
  background-color: #e8f0fe;
  color: var(--blue);
}

.tc-like-btn:active svg {
  transform: scale(0.8);
}

@keyframes popLike {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.tc-like-btn.active-like {
  color: #1a73e8;
  background-color: #e8f0fe;
}

.tc-like-btn.active-like svg {
  animation: popLike 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.tc-like-btn.active-dislike {
  color: #d93025;
  background-color: #fce8e6;
}

.tc-like-btn.active-dislike svg {
  animation: popLike 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.tc-like-num {
  min-width: 10px;
}

.tc-inline-box {
  margin: 16px 0 0 48px;
  display: none;
}

.tc-inline-box.active {
  display: block;
}
