/* ============================================================
   comments.css — стили компонента comments (BEM)
   Сущность: modules/comments.tpl
   ============================================================ */


/* === PHP-plugin контент: переименование невозможно === */

.quote_block {
  background: rgba(90, 185, 234, 0.06);
  border-left: 2px solid rgba(90, 185, 234, 0.35);
  border-radius: 6px;
  padding: 10px 14px;
}

.title_quote {
  margin-bottom: 20px;
}

.quote p {
  color: #d5dfea;
}

.comments-tree-list {
  padding: 0;
  margin: 0;
  margin-bottom: 25px;
}

/* === ROW (бывший .row-comments) === */

.comments__row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  margin-bottom: 50px;
}

@media (max-width: 767px) {
  .comments__row {
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
}

/* === ROW FLEX (бывший .row-flex из ech.css) === */

.comments__row-flex,
.comments__row-flex > div {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex: 1 1 auto;
}

.comments__row-flex > div {
  margin: 0;
}

/* === COL AVATAR (бывший .comments-3) === */

.comments__col-avatar {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  -ms-flex: 0 0 25%;
  flex: 0 0 25%;
  max-width: 25%;
}

@media (max-width: 767px) {
  .comments__col-avatar {
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 100%;
  }
}

/* === COL BODY (бывший .comments-9) === */

.comments__col-body {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  -ms-flex: 0 0 75%;
  flex: 0 0 75%;
  max-width: 75%;
}

@media (max-width: 767px) {
  .comments__col-body {
    -ms-flex: 0 0 75%;
    flex: 0 0 75%;
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .comments__col-body {
    padding-left: 0;
  }
}

/* === AVATAR (бывший img.ava из ech.css + inline styles) === */

.comments__avatar {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

/* === SMALL (бывший .f90 из ech.css) === */

.comments__small {
  font-size: 90%;
}

/* === MENU BTN (бывший btn btn-light btn-sm text-muted + inline height:28px) === */

.comments__menu-btn {
  display: inline-block;
  font-weight: 400;
  color: #96afc0;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(90, 185, 234, 0.14);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 6px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  height: 28px;
}

@media (prefers-reduced-motion: reduce) {
  .comments__menu-btn { transition: none; }
}

.comments__menu-btn:hover {
  color: #fff;
  background-color: rgba(90, 185, 234, 0.10);
  border-color: rgba(90, 185, 234, 0.38);
}

.comments__menu-btn:focus {
  color: #fff;
  background-color: rgba(90, 185, 234, 0.10);
  border-color: rgba(90, 185, 234, 0.38);
  outline: 0;
}

.comments__menu-btn:not(:disabled):not(.disabled):active {
  color: #fff;
  background-color: rgba(90, 185, 234, 0.15);
  border-color: rgba(90, 185, 234, 0.50);
}

/* === DATE (бывший inline style="color: #bfc6e2;") === */

.comments__date {
  color: #96afc0;
}

/* === HEART (бывший inline style="font-weight: bold;" + text-danger) === */

.comments__heart {
  font-weight: bold;
  color: #dc3545 !important;
}

/* === AUTHOR (бывший .ttlec + mt-3 text-truncate) === */

.comments__author {
  margin-top: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === AVATAR CARD (бывший card mb-3 w-100) === */

.comments__avatar-card {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background: hsla(240, 7%, 12%, 0.88);
  padding: 25px 10px;
  box-shadow: 0px -1px 4px rgb(200 196 196 / 8%), 0px 4px 4px rgb(200 196 196 / 25%);
  background-clip: border-box;
  border-radius: 10px;
  margin-bottom: 1rem;
  width: 100%;
}

/* === AVATAR BODY (бывший card-body p-2 pt-3) === */

.comments__avatar-body {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-height: 1px;
  padding: 0.5rem;
  padding-top: 1rem;
}

/* === BUBBLE (бывший card arrow left w-100 mb-3) === */

.comments__bubble {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background: hsla(240, 7%, 12%, 0.88);
  padding: 25px 10px;
  box-shadow: 0px -1px 4px rgb(200 196 196 / 8%), 0px 4px 4px rgb(200 196 196 / 25%);
  background-clip: border-box;
  border-radius: 10px;
  width: 100%;
  margin-bottom: 1rem;
}

/* === BUBBLE BODY (бывший card-body p-2) === */

.comments__bubble-body {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-height: 1px;
  padding: 0.5rem;
}

/* === MENU (бывший float-right cbtn d-md-inline) === */

.comments__menu {
  float: right;
}

@media (min-width: 768px) {
  .comments__menu { display: inline; }
}

/* === MENU RIGHT (бывший dropdown-menu-right) === */

.comments__menu--right {
  right: 0;
  left: auto;
}

/* === MENU ITEM (бывший dropdown-item) === */

.comments__menu-item {
  display: block;
  width: 100%;
  padding: 0.45rem 1.5rem;
  clear: both;
  font-weight: 400;
  color: #96afc0;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.comments__menu-item:hover,
.comments__menu-item:focus {
  color: #fff;
  background-color: rgba(90, 185, 234, 0.08);
  text-decoration: none;
}

/* === CONTENT (бывший py-3 pr-5 pl-3) === */

.comments__content {
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-right: 3rem;
  padding-left: 1rem;
}

/* === BUBBLE FOOTER (бывший card-footer p-2) === */

.comments__bubble-footer {
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(90, 185, 234, 0.15);
}

/* === FOOTER LIST (бывший list-inline m-0 float-left) === */

.comments__footer-list {
  padding-left: 0;
  list-style: none;
  margin: 0;
  float: left;
}

/* === FOOTER ITEM (бывший list-inline-item) === */

.comments__footer-item {
  display: inline-block;
}

.comments__footer-item:not(:last-child) {
  margin-right: 0.5rem;
}

/* === RATING BTN (бывший p-0 pl-1 pr-1 btn btn-sm btn-light float-right) === */

.comments__rating-btn {
  display: inline-block;
  font-weight: 400;
  color: #adb7be;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(90, 185, 234, 0.14);
  padding: 0 0.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 6px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  float: right;
}

@media (prefers-reduced-motion: reduce) {
  .comments__rating-btn { transition: none; }
}
