/* Comments — game_tgn_0036 VOLTAGE RACK */

.g36-detail-prose .g36-comments-section {
  padding: 22px 24px 24px;
  border: 1px solid rgba(200, 245, 66, 0.35);
  background: var(--g36-card, #22261a);
}

.g36-detail-prose .g36-comments-section h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g36-text, #f2f0e6);
  margin: 0 0 16px;
}

.g36-comments-section {
  margin-top: 8px;
}

.g36-comments-head {
  margin: 0 0 1rem;
  font-family: var(--g36-font);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.g36-comment-form {
  background: var(--g36-surface, #1e2216);
  border: 1px solid rgba(200, 245, 66, 0.28);
  border-radius: 0;
  padding: 1rem;
  margin-bottom: 1.5rem;
  clip-path: none;
}

.g36-comment-form-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.g36-comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #0c0e08;
  background: var(--g36-lime, #c8f542);
  border: 2px solid rgba(200, 245, 66, 0.45);
  clip-path: var(--clip-edge, polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)));
}

.g36-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g36-comment-author {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--g36-text, #f2f0e6);
}

.g36-rating-input {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.g36-rating-star {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--g36-star-empty, #556644);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.g36-rating-star.active,
.g36-rating-star:hover {
  color: var(--g36-star-full, #e0794a);
}

.g36-comment-textarea {
  width: 100%;
  min-height: 90px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--g36-text, #f2f0e6);
  background: var(--g36-bg, #12140f);
  border: 1px solid rgba(200, 245, 66, 0.28);
  border-radius: 0;
  resize: vertical;
  outline: none;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.g36-comment-textarea:focus {
  border-color: var(--g36-lime, #c8f542);
  box-shadow: 0 0 0 3px rgba(200, 245, 66, 0.15);
}

.g36-btn-post-comment {
  min-height: 44px;
  padding: 0 20px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0c0e08;
  background: var(--g36-lime, #c8f542);
  border: none;
  border-radius: 0;
  cursor: pointer;
  clip-path: var(--clip-edge, polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)));
}

.g36-btn-post-comment:hover {
  filter: brightness(1.06);
}

.g36-comment-login-prompt {
  padding: 1.25rem 1rem;
  background: var(--g36-surface, #1e2216);
  border: 1px solid rgba(200, 245, 66, 0.28);
  border-radius: 0;
  text-align: center;
  margin-bottom: 1.5rem;
}

.g36-comment-login-prompt[hidden] {
  display: none !important;
}

.g36-comment-login-prompt__icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 8px;
  line-height: 1;
}

.g36-comment-login-prompt__title {
  margin: 0 0 6px;
  font-family: var(--g36-font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--g36-text, #f2f0e6);
}

.g36-comment-login-prompt__text {
  margin: 0 0 14px;
  font-size: 0.875rem;
  color: var(--g36-text2, #a8a494);
  line-height: 1.5;
}

.g36-comment-login-prompt__btn {
  min-width: 140px;
}

.g36-comment-login-prompt__footer {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--g36-text2, #a8a494);
}

.g36-comment-login-prompt__footer a {
  color: var(--g36-lime, #c8f542);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.g36-comment-form[hidden] {
  display: none !important;
}

.g36-comment-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(200, 245, 66, 0.22);
  margin-top: 4px;
}

.g36-comment-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(200, 245, 66, 0.12);
}

.g36-comment-item:last-child {
  border-bottom: none;
}

.g36-comment-item--folded {
  display: none;
}

.g36-comment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.g36-comment-actions .g36-btn-load-comments {
  margin: 0;
}

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

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

.g36-comment-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--g36-text, #f2f0e6);
}

.g36-comment-time {
  font-size: 0.75rem;
  color: var(--g36-muted, #94a3b8);
}

.g36-comment-rating {
  color: var(--g36-star-full, #e0794a);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.g36-comment-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--g36-text2, #a8a494);
  word-break: break-word;
}

.g36-comments-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--g36-text2, #a8a494);
  border: 1px dashed rgba(200, 245, 66, 0.2);
  background: rgba(200, 245, 66, 0.03);
}

.g36-comments-empty[hidden] {
  display: none !important;
}

.g36-comments-empty span {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.g36-btn-load-comments {
  display: block;
  width: fit-content;
  min-width: 160px;
  min-height: 44px;
  margin: 1rem auto 0;
  padding: 0 24px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g36-lime, #c8f542);
  background: transparent;
  border: 1px solid rgba(200, 245, 66, 0.45);
  border-radius: 0;
  cursor: pointer;
  clip-path: var(--clip-edge, polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)));
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.g36-btn-load-comments--expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
  padding: 0 20px;
}

.g36-btn-load-comments--expand .fa {
  font-size: 0.875rem;
}

.g36-btn-load-comments[hidden] {
  display: none !important;
}

.g36-comment-actions .g36-btn-load-comments[hidden] {
  display: none !important;
}

.g36-btn-load-comments:hover {
  color: #0c0e08;
  background: var(--g36-lime, #c8f542);
  border-color: var(--g36-lime, #c8f542);
}

#commentsLoading.g36-loading {
  text-align: center;
  padding: 1.5rem;
  color: var(--g36-muted, #94a3b8);
}

#commentsLoading.g36-loading[hidden] {
  display: none !important;
}

#commentsLoading .g36-loading-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(200, 245, 66, 0.2);
  border-top-color: var(--g36-lime, #c8f542);
  border-radius: 50%;
  animation: g36-detail-spin 0.7s linear infinite;
  margin-bottom: 8px;
}

@keyframes g36-detail-spin {
  to { transform: rotate(360deg); }
}

/* Toast */
.g36-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 40000;
  max-width: min(420px, 90vw);
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.28s ease;
  pointer-events: none;
}

.g36-toast.show {
  transform: translateX(-50%) translateY(0);
}

.g36-toast.success {
  color: #c8f542;
  background: #0d1a14;
  border-color: #c8f542;
}

.g36-toast.error {
  color: #ff6b6b;
  background: #1a1010;
  border-color: #ff6b6b;
}

.g36-toast.warning {
  color: #ffea00;
  background: #1a1810;
  border-color: #ffea00;
}

@media (max-width: 767px) {
  .g36-detail-prose .g36-comments-section {
    padding: 18px 16px 20px;
  }

  .g36-comment-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8125rem;
  }

  .g36-rating-star {
    width: 40px;
    height: 40px;
  }

  .g36-btn-post-comment {
    width: 100%;
  }

  .g36-toast {
    font-size: 0.8125rem;
    padding: 10px 16px;
  }
}
