/* Наследуемые переменные из основных стилей */
:root {
  --primary-border-color: rgba(175,175,223,0.8);
  --primary-bg-color: rgba(0, 0, 0, 0.5);
  --primary-text-color: #e8eaed;
  --primary-font-family: 'TarnationSans-Regular';
  --primary-font-size: 110%;
  --primary-border-radius: 6px;
}

/* Анимации */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes buttonHoverPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes copySuccess {
  0% {
    background-color: rgba(50, 205, 50, 0.2);
  }
  100% {
    background-color: rgba(50, 205, 50, 0.1);
  }
}

/* Список */
.interactive-list {
  list-style: none;
  padding: 0px;
  margin: 0;
  background-color: var(--primary-bg-color);
}

.interactive-list__item {
  padding: 2px;
  border-bottom: 1px solid var(--primary-border-color);
  animation: slideInUp 0.4s ease-out forwards;
  opacity: 0;
}

.interactive-list__item:last-child {
  border-bottom: none;
}

.interactive-list__button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  background: none;
  border: none;
  color: var(--primary-text-color);
  font-family: var(--primary-font-family);
  font-size: var(--primary-font-size);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.interactive-list__button:hover {
  opacity: 0.8;
  padding-left: 12px;
}

.interactive-list__button:active {
  transform: scale(0.98);
}

.interactive-list__icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.interactive-list__button:hover .interactive-list__icon {
  transform: rotate(5deg) scale(1.1);
}

.interactive-list__title {
  text-align: left;
  flex: 1;
  transition: all 0.2s ease;
}

/* Модальное окно */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.modal-overlay--active {
  background-color: rgba(0, 0, 0, 0.7);
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--primary-bg-color);
  border: 1px solid var(--primary-border-color);
  border-radius: var(--primary-border-radius);
  padding: 16px;
  width: 450px;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1000;
  font-family: var(--primary-font-family);
  font-size: var(--primary-font-size);
  color: var(--primary-text-color);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(7px);
}

.modal-overlay--active .modal {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--primary-text-color);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: var(--primary-border-radius);
}

.modal__close:hover {
  opacity: 0.7;
  background-color: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.modal__title {
  margin: 0 0 16px 0;
  font-size: var(--primary-font-size);
  text-align: left;
  animation: slideInUp 0.4s ease-out 0.1s backwards;
}

.modal__content-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal__content-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--primary-border-radius);
  animation: slideInUp 0.4s ease-out forwards;
  opacity: 0;
  transition: all 0.2s ease;
}

.modal__content-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.modal__content-text {
  flex: 1;
  word-break: break-word;
  text-align: left;
  transition: all 0.2s ease;
}

.modal__copy-button {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--primary-border-color);
  color: var(--primary-text-color);
  border-radius: var(--primary-border-radius);
  padding: 6px 10px;
  font-family: var(--primary-font-family);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal__copy-button:hover {
  opacity: 0.8;
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.05);
}

.modal__copy-button:active {
  transform: scale(0.95);
}

.modal__copy-button--copied {
  background-color: rgba(50, 205, 50, 0.2);
  border-color: #32cd32;
  animation: copySuccess 0.4s ease;
}

/* Адаптивность */
@media (max-width: 600px) {
  .modal {
    width: 90%;
    max-height: 70vh;
  }
}

