/* Стили для отзывов */

.mod-form {
  width: 50%;
  outline: none;
  padding: 20px;
  flex-wrap: wrap;
  color: #fff;
  display: flex;
  border: none;
  gap: 12px;
  margin: .8px;
  background-color: rgba(51, 51, 51, 0.3);
  outline: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 10px;
  flex-direction: column;
  align-content: center;
}

.mod-form label {
  display: block;
  font-weight: bold;
}

.mod-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 15px;
  justify-content: center;
  align-items: center;
  display: flex;
}

.paste-hint {
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 5px;
  font-style: italic;
}

.mod-form input, .mod-form textarea {
  width: auto;
}

.mod-form input[type="number"] {
  width: 50px;
}

.mod-container {
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  gap: 15px;
}

.umods-list {
  padding: 20px;
  overflow-y: auto;
  margin: .9px;
  /* background-color: rgba(18, 18, 18, 0.3); */
  outline: 1px solid rgba(255, 255, 255, 0.2);
  /* backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px); */
  width: 50%;
  display: flex;
  gap: 20px;
  height: 62vh;
  border-radius: 10px;
  flex-direction: column;
}

.delete-mod-button {
  background-color: var(--redopas);
  color: white;
  padding: 5px 10px;
  border: none;
  margin-top: 10px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all .3s ease-in-out;
}

.delete-mod-button:hover {
  background-color: var(--red);
}

.mod {
    display: flex;
    flex-direction: row;
    padding: 20px;
    color: #fff;
    background-color: transparent;
    border-radius: 8px;
}

.mod-middle {
  width: 100%;
  gap: 5px;
  display: flex;
  flex-direction: column;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.google-drive-link {
  text-decoration: none;
  display: flex;
  gap: 10px;
  background-color: var(--darklite);
  color: white;
  font-size: 12px;
  margin-top: 10px;
  padding: 5px 10px 5px 10px;
  border-radius: 5px;
  text-align: center;
  transition: all .3s ease-in-out;
  width: fit-content;
}

.google-drive-link:hover {
  background-color: var(--bbb);
}

.username {
  font-weight: bold;
  font-size: 12px;
  color: var(--dslite);
}

.mod_form_text, .rating {
  color: #fff;
  font-size: 18px;
}

.mod_text {
  min-height: 20px;
  font-size: 12px;
  white-space: pre-line;        /* Сохраняет символы переноса строк (\n) */
  word-wrap: break-word;        /* Разбивает длинные слова, если они не помещаются */
  overflow-wrap: break-word;    /* Современный аналог word-wrap */
  max-width: 100%;              /* Можно задать максимальную ширину контейнера */
  word-break: break-word; 
  font-weight: 200;
}

.star-container {
  display: flex;
}

.star {
  width: 12px;
  background-size: contain; /* Подгоняет размер фона */
  background-repeat: no-repeat; /* Не повторять фон */
}

.star.filled {
  background-image: url('https://reduxhub.ru/assets/img/heart1.svg');
}

/* Пустая звезда */
.star.empty {
  background-image: url('https://reduxhub.ru/assets/img/heart0.svg');
}

.mod_textarea {
  height: 150px;
}

.mod-footer {
    display: flex;
    justify-content: space-between;
}

.mod-date {
    font-size: 12px;
    color: #666;
}

.rating-area {
  overflow: hidden;
  width: 265px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.rating-area:not(:checked) > input {
  display: none;
}

.rating-area:not(:checked) > label {
  float: right;
  width: 42px;
  padding: 0;
  cursor: pointer;
  font-size: 32px;
  line-height: 32px;
  color: lightgrey;
  text-shadow: 0px 0px 8px #fff;
}

.rating-area:not(:checked) > label:before {
  content: '❤';
}

.rating-area > input:checked ~ label {
  color: var(--red);
  text-shadow: 0px 0px 8px var(--red);
}

.rating-area:not(:checked) > label:hover,
.rating-area:not(:checked) > label:hover ~ label {
  color: var(--red);
}

.rating-area > input:checked + label:hover,
.rating-area > input:checked + label:hover ~ label,
.rating-area > input:checked ~ label:hover,
.rating-area > input:checked ~ label:hover ~ label,
.rating-area > label:hover ~ input:checked ~ label {
  color: var(--red);
  text-shadow: 0px 0px 8px var(--red);
}

.rate-area > label:active {
  position: relative;
}

.statusCont{
  display: flex;
  gap: 5px;
  flex-direction: column;
}

.statusCont p{
  margin: 0;
  font-size: 12px;
}

.info-imgPrev{
  object-fit: cover;
  width: 100%;
  border-radius: 15px;
}

.loh-block2 {
  max-width: 200px;
}

.copy-text {
  background-color: #000000;
  padding: 5px 10px 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  user-select: none;
}

#upload-mod-btn:disabled {
  background-color: #58585871;  /* Цвет для неактивной кнопки */
  cursor: not-allowed;     /* Изменение курсора */
  opacity: 0.5;            /* Уменьшаем непрозрачность */
}