/* ========================================
   TAVSIYE COMMENTS - MODERN REDESIGN (DARK)
   ======================================== */

:root {
  --tc-bg-dark: #1a1d26;
  --tc-item-bg: transparent;
  --tc-text: #e1e1e1;
  --tc-text-muted: #848d97;
  --tc-accent: #ff6a00;
  --tc-border-color: rgba(255, 255, 255, 0.05);
  --tc-hover-bg: rgba(255, 255, 255, 0.03);
}

#tc-root {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--tc-text);
  line-height: 1.5;
  margin-top: 30px;
  background: var(--tc-bg-dark);
  padding: 25px;
  border-radius: 12px;
}

#tc-root * {
  box-sizing: border-box;
}

/* --- EDİTÖR --- */
.tc-editor {
  margin-bottom: 30px;
}

.tc-text {
  width: 100%;
  background: #ffffff;
  color: #1a1d26;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  min-height: 100px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: all 0.2s;
}

.tc-text:focus {
  outline: none;
  border-color: var(--tc-accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

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

.tc-send {
  background: #2b2e36;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all .2s;
}

.tc-send:hover {
  background: #3a3f4b;
  transform: translateY(-1px);
}

/* --- YORUM LİSTESİ --- */
.tc-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.tc-item-wrap {
  display: block;
  width: 100%;
}

.tc-item {
  display: flex;
  gap: 16px;
  position: relative;
  padding: 10px 0;
}

.tc-left {
  flex-shrink: 0;
}

.tc-avatar-img,
.tc-avatar-letter {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.tc-avatar-letter {
  background: #313644;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.tc-right {
  flex-grow: 1;
  min-width: 0;
}

.tc-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tc-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}

.tc-badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 800;
  color: #fff;
  background: #555;
}

.tc-badge.admin {
  background: #ff4a4a;
}

.tc-badge.editor {
  background: #8e24aa;
}

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

/* --- DAHA FAZLA YORUM BUTONU --- */
.tc-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding-bottom: 20px;
}

.tc-load-more-wrap:has(.tc-load-more[hidden]) {
  display: none;
}

.tc-load-more {
  background: #2b2e36;
  color: #fff;
  border: 1px solid var(--tc-border-color);
  padding: 12px 32px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tc-load-more:hover {
  background: #353b47;
  border-color: var(--tc-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.tc-load-more:active {
  transform: translateY(0);
}

.tc-load-more svg {
  transition: transform 0.3s ease;
}

.tc-load-more:hover svg {
  transform: translateY(2px);
}

.tc-load-more:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

[hidden] {
  display: none !important;
}

.tc-content {
  color: #ced4da;
  font-size: 0.95rem;
  margin-bottom: 12px;
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* Aksiyonlar */
.tc-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tc-action-btn {
  background: transparent;
  border: none;
  color: #949ba3;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  padding: 4px 0;
  transition: all .2s;
}

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

.tc-action-btn svg {
  opacity: 0.8;
}

.tc-action-btn.delete {
  color: #ff4a4a;
  opacity: 0.8;
}

.tc-action-btn.delete:hover {
  opacity: 1;
  color: #ff3333;
}

/* Yanıtlar - Görseldeki gibi girintili */
.tc-children {
  margin-top: 10px;
  padding-left: 20px;
  /* Az girinti */
}

@media (min-width: 768px) {
  .tc-children {
    padding-left: 64px;
    /* Avatar genişliği + gap kadar girinti */
  }
}

/* Mobilde tam genişlik */
@media (max-width: 768px) {
  #tc-root {
    padding: 15px;
  }

  .tc-avatar-img,
  .tc-avatar-letter {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .tc-children {
    padding-left: 15px;
  }
}

/* Sabit Yorum */
.tc-item.pinned {
  border: 1px solid rgba(255, 215, 0, 0.15);
  background: rgba(255, 215, 0, 0.03);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.tc-action-btn.pin {
  color: #ffd700;
}

.tc-need-login {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  color: #888;
  border: 1px dashed var(--tc-border-color);
}