/* Форум и тикеты — дополнение к styles.css */

.communityPage {
  max-width: 800px;
  margin: 0 auto;
}

.communityLead {
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 20px;
  line-height: 1.55;
}

.communityHint {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
}

.communityField {
  margin-bottom: 14px;
}

.communityField label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  color: rgba(11, 18, 32, 0.85);
}

html[data-theme="dark"] .communityField label {
  color: rgba(245, 247, 255, 0.85);
}

.communityField input,
.communityField select,
.communityField textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
  min-height: 48px;
}

html[data-theme="dark"] .communityField input,
html[data-theme="dark"] .communityField select,
html[data-theme="dark"] .communityField textarea {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 247, 255, 0.92);
}

.communityField textarea {
  min-height: 140px;
  resize: vertical;
}

.communityRow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(11, 18, 32, 0.1);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease;
  font: inherit;
  color: inherit;
}

html[data-theme="dark"] .communityRow {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(18, 24, 38, 0.72);
}

.communityRow:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(11, 18, 32, 0.12);
}

.communityRow__title {
  font-weight: 800;
  font-size: 15px;
}

.communityRow__meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.communityTopicList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.communityEmpty {
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}

.communityPost {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}

html[data-theme="dark"] .communityPost {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(18, 24, 38, 0.5);
}

.communityPost__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}

.communityPost__head time {
  font-weight: 600;
}

.communityPost__body {
  line-height: 1.55;
  font-size: 15px;
}

.communityPost__body strong {
  font-weight: 800;
}

.communityAttach {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.communityAttach__img {
  max-width: 100%;
  border-radius: 12px;
  height: auto;
  display: block;
}

.communityAttach__video {
  max-width: 100%;
  border-radius: 12px;
  background: #000;
}

.communityAttach__file {
  align-self: flex-start;
}

.communityToolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}

.btn--small {
  padding: 8px 12px;
  font-size: 13px;
  min-height: 40px;
}

.communityNotice {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 219, 61, 0.18);
  border: 1px solid rgba(255, 219, 61, 0.45);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.45;
}

html[data-theme="dark"] .communityNotice {
  background: rgba(255, 219, 61, 0.12);
}

#communityToast.communityToast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 200;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(11, 18, 32, 0.92);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: min(420px, calc(100% - 28px));
  text-align: center;
}

#communityToast.communityToast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 560px) {
  .communityToolbar {
    flex-direction: column;
    align-items: stretch;
  }
}
