* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}
.container { max-width: 600px; margin: 0 auto; }

header { text-align: center; margin-bottom: 24px; }
header h1 { font-size: 28px; color: #2c3e50; margin-bottom: 4px; }
header p { color: #7f8c8d; font-size: 16px; }

.topic-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.topic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
#region-badge {
  background: #3498db;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.switcher { display: flex; gap: 8px; }
.switch-btn {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}
.switch-btn.active {
  background: #2980b9;
  color: white;
}
.topic-text {
  font-size: 22px;
  font-weight: 600;
  color: #2980b9;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  text-align: center;
}

.topic-actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.topic-react-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid #e1e5eb;
  background: #ffffff;
  padding: 6px 12px;
  font-size: 13px;
  color: #34495e;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}
.topic-react-btn:hover {
  background: #f0f7ff;
  border-color: #3498db;
  transform: translateY(-1px);
}
.topic-react-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.submit-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.submit-card textarea {
  width: 100%;
  height: 60px;
  padding: 14px;
  font-size: 16px;
  border: 1px solid #e1e5eb;
  border-radius: 8px;
  resize: none;
  margin-bottom: 12px;
}
.submit-card button {
  width: 100%;
  background: #3498db;
  color: white;
  border: none;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}
.submit-card .hint {
  font-size: 13px;
  color: #95a5a6;
  margin-top: 8px;
  text-align: center;
}

.replies {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.replies h2 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 16px;
  font-weight: 600;
}
#replies-list {
  min-height: 120px;
}
.reply-item {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 16px;
  position: relative;
}
.reply-item::before {
  content: "💬";
  position: absolute;
  top: 12px;
  left: -28px;
  font-size: 18px;
  color: #3498db;
}

footer {
  text-align: center;
  margin-top: 40px;
  color: #95a5a6;
  font-size: 14px;
}