/* ===== ОСНОВНЫЕ СТИЛИ КНОПОК ===== */
.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.link:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

.header__back-icon {
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.header__back-text {
  white-space: nowrap;
}

.btn__loader {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn--loading .header__back-text,
.btn--loading .header__back-icon {
  visibility: hidden;
}

.btn--loading .btn__loader {
  display: block;
}

/* ===== ПЕРВИЧНАЯ КНОПКА ===== */
.btn--primary {
  cursor: pointer;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn--primary:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.btn--primary:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* ===== АНИМАЦИИ ===== */
@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }

  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== OUTLINE КНОПКА ===== */
.header__back-link {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
  padding: 10px 20px;
}

.header__back-link:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

/* ===== КНОПКА НАЗАД ===== */
.link--back {
  border-color: rgba(255, 255, 255, 0.2);
  color: #b0b0b0;
}

.link--back:hover {
  border-color: #667eea;
  color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

/* ===== БЛОЧНАЯ КНОПКА ===== */
.btn--block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  border-radius: 12px;
  border: none;
  gap: 10px;
  transition: all 0.3s ease;
}

/* ===== КНОПКА ОТПРАВКИ ===== */
.btn--submit {}

.btn__icon {}

/* ===== СОЦИАЛЬНЫЕ КНОПКИ ===== */
.btn--social {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;

}

.btn--social:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn--social:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.btn--vk:hover {
  background: #4c75a3;
  border-color: #4c75a3;
}

.btn--google:hover {
  background: #db4437;
  border-color: #db4437;
}

/* ===== СОСТОЯНИЯ ===== */
.btn:disabled {
  /* padding: 8px 16px;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: not-allowed;
  transform: none;
  box-shadow: none; */
  color: var(--color-text-white);
  background-color: var(--color-text-green);
}

/* ===== КНОПКИ ДЕЙСТВИЙ В КОММЕНТАРИЯХ ===== */
.comment__like,
.comment__reply,
.comment__delete,
.comment__report {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Лайк */
.comment__like:hover {
  background: rgba(255, 71, 87, 0.1);
  color: #ff4757;
  border-color: #ff4757;
}

.comment__like.active {
  background: rgba(255, 71, 87, 0.15);
  color: #ff4757;
  border-color: #ff4757;
}

.comment__like.active i {
  font-weight: 900;
}

/* Ответить */
.comment__reply:hover {
  background: rgba(102, 126, 234, 0.1);
  color: var(--color-primary-start);
  border-color: var(--color-primary-start);
}

/* Удалить */
.comment__delete:hover {
  background: rgba(255, 71, 87, 0.1);
  color: #ff4757;
  border-color: #ff4757;
}

/* Пожаловаться */
.comment__report {
  background: transparent;
  border: 1px solid rgba(255, 71, 87, 0.3);
  color: #ff4757;
}

.comment__report:hover {
  background: rgba(255, 71, 87, 0.15);
  border-color: #ff4757;
  transform: translateY(-1px);
}

.comment__report.reported {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(128, 128, 128, 0.1);
  border-color: rgba(128, 128, 128, 0.3);
  color: #888;
}

/* Иконки в кнопках */
.comment__like i,
.comment__reply i,
.comment__delete i,
.comment__report i {
  font-size: 0.85rem;
}

/* Адаптив для мобильных */

@media (max-width: 768px) {
  .link {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .btn--submit {
    padding: 14px;
  }

}

@media (max-width: 576px) {

  .comment__like,
  .comment__reply,
  .comment__delete,
  .comment__report {
    padding: 4px 10px;
    font-size: 0.75rem;
  }

  .comment__like span,
  .comment__reply span,
  .comment__delete span,
  .comment__report span {
    display: none;
  }

  .comment__like i,
  .comment__reply i,
  .comment__delete i,
  .comment__report i {
    font-size: 1rem;
    margin: 0;
  }
}