﻿.community-card,
.community-form-card,
.community-post-card {
  border-radius: var(--radius-xl);
}

.avatar-xxs {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d6e5ff;
}

.community-comment {
  border: 1px solid #d9e8ff;
  background: #fbfdff;
  border-radius: 0.8rem;
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.7rem;
}

.community-reply {
  margin-inline-start: 1.2rem;
  border-color: #c9deff;
  background: #f4f9ff;
}

.community-children {
  margin-inline-start: 0.9rem;
  border-inline-start: 2px solid #dce9ff;
  padding-inline-start: 0.65rem;
  margin-bottom: 0.6rem;
}

.community-children-flat {
  margin-inline-start: 0;
  padding-inline-start: 0;
  border-inline-start: 0;
  margin-bottom: 0.6rem;
}

.community-depth-0 {
  margin-inline-start: 0;
}

.community-depth-1 {
  margin-inline-start: 1.2rem;
}

.community-depth-2 {
  margin-inline-start: 2rem;
}

.community-depth-3 {
  margin-inline-start: 2.8rem;
}

.community-children-depth-1 {
  margin-inline-start: 0.9rem;
}

.community-children-depth-2 {
  margin-inline-start: 1.5rem;
}

.community-children-depth-3 {
  margin-inline-start: 2rem;
}

.js-load-more-replies {
  text-decoration: none;
  padding-inline: 0;
}

.community-image-card {
  border: 1px solid #d7e5ff;
  border-radius: 0.75rem;
  padding: 0.4rem;
  background: #fff;
}

.community-image-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0.55rem;
  background: #eef4ff;
}

.swal-image-popup {
  max-width: 95vw;
}

.swal-image-tools {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  margin-bottom: 0.55rem;
}

.swal-image-stage {
  width: 100%;
  height: min(75vh, 680px);
  border-radius: 0.8rem;
  border: 1px solid #dbe7ff;
  background: #f3f7ff;
  overflow: hidden;
  position: relative;
  touch-action: none;
}

.swal-image-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  cursor: grab;
  transform-origin: center center;
}

.community-image-marked-remove .community-image-card {
  opacity: 0.55;
  border-style: dashed;
}

.community-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1060;
}

.community-fab .btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.45rem;
  padding: 0;
  line-height: 1;
}

.community-fab .dropdown-menu {
  border-radius: 0.8rem;
  border: 1px solid #dbe7ff;
  box-shadow: 0 14px 25px rgba(15, 31, 70, 0.14);
}

.community-report-card {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.95rem 1rem;
  border: 1px solid #ffe0a8;
  border-radius: 1rem;
  background:
    radial-gradient(180px 80px at 100% 0, rgba(255, 193, 7, 0.12), transparent 70%),
    linear-gradient(180deg, #fffdf7, #fffaf0);
}

.community-report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.community-report-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #7a4b00;
  margin-bottom: 0.15rem;
}

.community-report-text {
  font-size: 0.84rem;
  line-height: 1.75;
  color: #8b6b2d;
}

.community-report-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: end;
}

.community-report-label {
  font-size: 0.78rem;
  color: #7a5b23;
  margin-bottom: 0.35rem;
}

.community-report-select,
.community-report-input {
  border-color: #f1d18d;
  background: rgba(255, 255, 255, 0.92);
}

.community-report-select:focus,
.community-report-input:focus {
  border-color: #e0b44c;
  box-shadow: 0 0 0 0.2rem rgba(224, 180, 76, 0.16);
}

.community-report-submit {
  white-space: nowrap;
}

.community-inline-report {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0.35rem 0.5rem;
  border: 1px solid #ffe2ad;
  border-radius: 18px;
  background: #fffaf2;
}

.community-inline-report-label {
  font-size: 0.76rem;
  color: #946f23;
  font-weight: 600;
}

.community-inline-report-select {
  min-width: 132px;
  border-color: #f0d194;
  background: #fff;
}

@media (max-width: 767.98px) {
  .community-depth-1 {
    margin-inline-start: 0.6rem;
  }

  .community-depth-2 {
    margin-inline-start: 1rem;
  }

  .community-depth-3 {
    margin-inline-start: 1.35rem;
  }

  .community-children-depth-1 {
    margin-inline-start: 0.5rem;
  }

  .community-children-depth-2,
  .community-children-depth-3 {
    margin-inline-start: 0.85rem;
  }

  .community-image-card img {
    height: 130px;
  }

  .community-fab {
    left: 12px;
    bottom: 12px;
  }

  .community-report-head,
  .community-report-grid {
    grid-template-columns: 1fr;
  }

  .community-report-submit {
    width: 100%;
  }

  .community-inline-report {
    width: 100%;
    border-radius: 0.85rem;
    padding: 0.55rem 0.6rem;
  }

  .community-inline-report-select {
    min-width: 0;
    width: 100%;
  }
}
