/* 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;
  min-height: 44px;
  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 */
/* Demo map preview (left) — the filter as it would appear on the map */
.mod-map-window {
  background: #1c1f24;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mod-map-canvas {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(160deg, #dfe8d5 0%, #cfdcc2 100%);
}

.mod-map-street {
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 4px;
}

.mod-map-street.s1 { left: -10%; top: 32%; width: 130%; height: 10px; transform: rotate(-8deg); }
.mod-map-street.s2 { left: 18%; top: -10%; width: 9px; height: 130%; transform: rotate(12deg); }
.mod-map-street.s3 { left: -10%; top: 68%; width: 130%; height: 7px; transform: rotate(5deg); }

.mod-map-water {
  position: absolute;
  right: -15%;
  top: -20%;
  width: 60%;
  height: 80%;
  background: rgba(155, 195, 225, 0.55);
  border-radius: 48% 0 0 42%;
}

.mod-map-filterpin {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

/* The pending filter photo — same dusk scene as the review frame */
.mod-map-filterphoto,
.mod-review-photo {
  background:
    radial-gradient(ellipse at 30% 18%, rgba(255, 214, 150, 0.85) 0%, transparent 52%),
    linear-gradient(180deg, #2b3a67 0%, #7a4a63 45%, #d98a4b 75%, #3a2a3a 100%);
}

.mod-map-filterphoto {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 3px dashed rgba(32, 48, 31, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.mod-map-filtername {
  font-size: 12px;
  font-weight: 600;
  color: #20301f;
  background: rgba(255, 255, 255, 0.85);
  padding: 3px 10px;
  border-radius: 999px;
}

.mod-map-filterpin.published .mod-map-filterphoto {
  border: 3px solid #4a7c59;
  box-shadow: 0 0 0 4px rgba(74, 124, 89, 0.25), 0 6px 18px rgba(0, 0, 0, 0.25);
}

.mod-map-filterpin.removed {
  opacity: 0.25;
  filter: grayscale(1);
}

.mod-map-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #b9c0a8;
  background: #1c1f24;
}

.mod-map-status i { color: #d9b84a; }
.mod-map-status.approve i { color: #7fd19a; }
.mod-map-status.deny i { color: #e08a8a; }

/* Moderator review frame (right) — mirrors the app's moderator-review UI */
.mod-review-frame {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 9 / 15;
  border-radius: 24px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.mod-review-photo {
  position: absolute;
  inset: 0;
}

.mod-review-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 14px 24px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.mod-review-progress {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

.mod-review-place {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.mod-review-place i {
  color: #90ee90;
  font-size: 13px;
}

.mod-review-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 14px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 35%, rgba(0, 0, 0, 0.55) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

.mod-review-requester {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mod-review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  flex-shrink: 0;
}

.mod-review-reqinfo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mod-review-reqlabel {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
}

.mod-review-reqname {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.mod-review-tally {
  display: flex;
  gap: 8px;
}

.mod-review-tally-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.mod-review-tally-item.approve { color: #b6f5c4; }
.mod-review-tally-item.deny { color: #ffb4b4; }

.mod-review-actions {
  display: flex;
  gap: 10px;
}

.mod-review-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 0;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mod-review-btn.approve {
  background: linear-gradient(135deg, rgba(74, 124, 89, 0.9) 0%, rgba(90, 140, 105, 0.9) 100%);
  border: 1px solid rgba(144, 238, 144, 0.3);
  box-shadow: 0 2px 8px rgba(74, 124, 89, 0.3);
}

.mod-review-btn.approve:hover {
  background: linear-gradient(135deg, rgba(90, 140, 105, 1) 0%, rgba(106, 156, 121, 1) 100%);
  border-color: rgba(144, 238, 144, 0.5);
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.4);
}

.mod-review-btn.deny {
  background: linear-gradient(135deg, rgba(150, 60, 60, 0.9) 0%, rgba(168, 72, 72, 0.9) 100%);
  border: 1px solid rgba(255, 144, 144, 0.3);
  box-shadow: 0 2px 8px rgba(150, 60, 60, 0.3);
}

.mod-review-btn.deny:hover {
  background: linear-gradient(135deg, rgba(168, 72, 72, 1) 0%, rgba(184, 84, 84, 1) 100%);
  border-color: rgba(255, 144, 144, 0.5);
  box-shadow: 0 4px 12px rgba(150, 60, 60, 0.4);
}

.mod-review-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.mod-review-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mod-review-banner.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.mod-review-banner.approve {
  background: linear-gradient(135deg, rgba(74, 124, 89, 0.95) 0%, rgba(90, 140, 105, 0.95) 100%);
  border: 1px solid rgba(144, 238, 144, 0.5);
  box-shadow: 0 8px 24px rgba(74, 124, 89, 0.5);
}

.mod-review-banner.deny {
  background: linear-gradient(135deg, rgba(150, 60, 60, 0.95) 0%, rgba(168, 72, 72, 0.95) 100%);
  border: 1px solid rgba(255, 144, 144, 0.5);
  box-shadow: 0 8px 24px rgba(150, 60, 60, 0.5);
}

.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);
}

/* 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);
  min-height: 44px;
  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: 16px;
  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-review-actions {
    flex-direction: column;
  }

  .moderators-philosophy,
  .moderators-demo-section,
  .moderators-benefits,
  .moderators-signup,
  .moderators-cta {
    padding: 48px 0;
  }

  .philosophy-content h2 {
    font-size: clamp(24px, 6vw, 32px);
  }

  .moderators-cta h2 {
    font-size: clamp(26px, 6.5vw, 36px);
  }
}
