/* Moderators page styles */

/* Philosophy Section */
.moderators-philosophy {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.philosophy-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-content h2 {
  font-size: 32px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.philosophy-lead {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.philosophy-content p {
  font-size: 16px;
  color: var(--text-tertiary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.philosophy-note {
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 24px;
  font-size: 14px;
}

/* Moderators Demo Section */
.moderators-demo-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.mod-demo-container {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 48px;
}

.mod-demo-chat,
.mod-demo-panel {
  flex: 1;
}

.mod-demo-arrow {
  font-size: 24px;
  color: var(--green);
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(5px); }
}

/* Demo Chat Window */
.mod-demo-window {
  background: #36393f;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mod-window-header {
  background: #202225;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mod-window-content {
  padding: 16px;
  min-height: 200px;
  position: relative;
}

.mod-chat-message {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.mod-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}

.mod-chat-body {
  flex: 1;
}

.mod-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.mod-chat-name {
  font-weight: 600;
  color: white;
  font-size: 14px;
}

.mod-badge img {
  width: 16px;
  height: 16px;
}

.mod-chat-text {
  color: #dcddde;
  font-size: 14px;
  line-height: 1.4;
}

.mod-reported-message {
  background: rgba(237, 66, 69, 0.1);
  border-left: 3px solid #ed4245;
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
}

.mod-demo-action {
  padding: 16px;
  display: flex;
  justify-content: center;
}

.mod-report-btn {
  background: #ed4245;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.mod-report-btn:hover {
  background: #d63638;
  transform: translateY(-1px);
}

/* Moderator Panel */
.mod-panel-window {
  background: #2f3136;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mod-panel-header {
  background: #2a2d31;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.mod-panel-header i {
  font-size: 20px;
}

/* Report Notification */
.mod-report-notification {
  background: linear-gradient(135deg, rgba(237, 66, 69, 0.2), rgba(237, 66, 69, 0.1));
  border-left: 4px solid #ed4245;
  margin: 16px;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
}

.mod-demo-container.demo-active .mod-report-notification {
  opacity: 1;
  transform: translateY(0);
  animation: notificationDrop 0.5s ease;
}

@keyframes notificationDrop {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.mod-notification-icon {
  width: 36px;
  height: 36px;
  background: #ed4245;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.mod-notification-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mod-notification-title {
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.mod-notification-desc {
  color: #b9bbbe;
  font-size: 12px;
}

/* Report Card */
.mod-report-card {
  background: #36393f;
  border-radius: 8px;
  padding: 16px;
}

.mod-report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mod-report-type {
  color: #faa61a;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mod-report-id {
  color: #72767d;
  font-size: 12px;
}

.mod-report-messages {
  background: #2f3136;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
}

.mod-report-msg {
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.mod-report-msg:last-child {
  margin-bottom: 0;
}

.mod-report-user {
  color: #b9bbbe;
  font-weight: 600;
}

.mod-report-text {
  color: #dcddde;
}

.mod-vote-section {
  margin-bottom: 16px;
}

.mod-vote-question {
  color: white;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
}

.mod-vote-buttons {
  display: flex;
  gap: 12px;
}

.mod-vote-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.mod-vote-yes {
  background: #00c956;
  color: white;
}

.mod-vote-yes:hover {
  background: #00b34d;
}

.mod-vote-no {
  background: #40444b;
  color: #dcddde;
}

.mod-vote-no:hover {
  background: #4a4e57;
}

.mod-vote-progress {
  padding-top: 12px;
  border-top: 1px solid #40444b;
}

.mod-vote-count {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.mod-vote-label {
  color: #72767d;
  font-size: 12px;
}

.mod-vote-number {
  color: white;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.mod-vote-of {
  color: #72767d;
  font-size: 12px;
}

.mod-vote-bar {
  height: 6px;
  background: #40444b;
  border-radius: 3px;
  overflow: hidden;
}

.mod-vote-fill {
  height: 100%;
  background: linear-gradient(90deg, #00c956, #00a847);
  border-radius: 3px;
  width: 0%;
  transition: width 0.5s ease;
}

/* Verdict - inline grey container */
.mod-verdict {
  background: #40444b;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.4s ease;
  color: #dcddde;
  font-size: 13px;
}

.mod-verdict i {
  color: #00c956;
  font-size: 14px;
}

.mod-verdict span {
  color: #dcddde;
}

.mod-demo-note {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mod-demo-note i {
  color: var(--green);
}

/* Demo Chat - uses hero-window styles but needs some overrides */
.mod-demo-chat .hero-window {
  max-width: 100%;
}

.mod-demo-chat .window-content {
  min-height: 180px;
  padding: 12px;
  position: relative;
}

.mod-demo-chat .hero-chat-message {
  transition: all 0.3s ease;
}

.mod-demo-chat .hero-chat-message.deleted .mod-reported-text {
  display: none;
}

/* Deleted by community moderators text */
.mod-deleted-text {
  display: none;
  align-items: center;
  gap: 6px;
  color: #72767d;
  font-size: 13px;
  font-style: italic;
}

.mod-deleted-text i {
  font-size: 12px;
}

.mod-deleted-text.show {
  display: flex;
}

/* Rectangular avatars for moderators demo */
.mod-demo-chat .hero-chat-avatar {
  border-radius: 8px;
}

.mod-demo-chat .hero-chat-avatar img {
  border-radius: 8px;
}

.mod-badge {
  display: flex;
  align-items: center;
}

.mod-badge img {
  width: 16px;
  height: 16px;
}


/* Panel content wrapper */
.mod-panel-content {
  padding: 16px;
}

/* Report badge row */
.mod-report-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mod-report-badge .mod-report-type {
  background: rgba(250, 166, 26, 0.15);
  color: #faa61a;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
}

.mod-report-badge .mod-report-id {
  color: #72767d;
  font-size: 12px;
}

/* Vote progress update */
.mod-vote-progress .mod-vote-label {
  color: #72767d;
  font-size: 13px;
  margin-bottom: 8px;
  display: block;
}

.mod-vote-progress .mod-vote-label span {
  color: white;
  font-weight: 600;
}

/* Disabled vote buttons */
.mod-vote-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Verdict show state (interactive) */
.mod-verdict.show {
  opacity: 1;
}

/* Reset button */
.mod-reset-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-tertiary);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  transition: all 0.2s ease;
}

.mod-reset-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

/* Benefits Section */
.moderators-benefits {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.benefit-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 8px 32px rgba(0, 201, 86, 0.1);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.benefit-icon i {
  font-size: 32px;
  color: var(--green);
}

.benefit-card h4 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.benefit-card p {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* Signup Section */
.moderators-signup {
  padding: 80px 0;
  background: var(--bg-primary);
}

.mod-signup-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  margin-top: 48px;
}

.signup-requirements h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.requirements-list {
  list-style: none;
}

.requirements-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.requirements-list li:last-child {
  border-bottom: none;
}

.requirements-list i {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(0, 201, 86, 0.2), rgba(0, 201, 86, 0.1));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}

.requirements-list strong {
  display: block;
  color: var(--text-primary);
  font-size: 15px;
  margin-bottom: 4px;
}

.requirements-list span {
  color: var(--text-tertiary);
  font-size: 13px;
}

.signup-perks {
  margin-top: 32px;
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 24px;
}

.signup-perks h4 {
  color: var(--text-primary);
  font-size: 16px;
  margin-bottom: 16px;
}

.signup-perks ul {
  list-style: none;
}

.signup-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 8px 0;
}

.signup-perks li i {
  color: var(--green);
  font-size: 12px;
}

/* Signup Form */
.signup-form-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
}

.moderator-form .form-group {
  margin-bottom: 20px;
}

.moderator-form label {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.moderator-form label .optional {
  color: var(--text-tertiary);
  font-weight: 400;
}

.moderator-form input,
.moderator-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.moderator-form input:focus,
.moderator-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 201, 86, 0.1);
}

.moderator-form input::placeholder,
.moderator-form textarea::placeholder {
  color: var(--text-tertiary);
}

.moderator-form textarea {
  resize: vertical;
  min-height: 80px;
}

.referrals-container {
  display: flex;
  gap: 12px;
}

.referral-input {
  flex: 1;
}

.form-hint {
  display: block;
  color: var(--text-tertiary);
  font-size: 12px;
  margin-top: 8px;
}

.submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  margin-top: 24px;
}

.submit-btn:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 119, 237, 0.3);
}

/* CTA Section */
.moderators-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1d24 0%, var(--bg-primary) 100%);
  text-align: center;
}

.moderators-cta h2 {
  font-size: 36px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.moderators-cta p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 1024px) {
  .mod-demo-container {
    flex-direction: column;
  }

  .mod-demo-arrow {
    transform: rotate(90deg);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mod-signup-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .referrals-container {
    flex-direction: column;
  }

  .mod-vote-buttons {
    flex-direction: column;
  }
}
