/* styles/about-project.css */
/* Стилі для кнопок донату та "Про проект" */

/* === Контейнер для кнопок === */

/* Базові стилі кнопок */
.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: white;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-btn:active {
  transform: translateY(0);
}

.about-modal {
  background: white;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(5%);
  transition: transform 0.1s ease-out;
  display: flex;
  flex-direction: column;
}

/* Кнопка закриття */
.about-modal-close {
  position: absolute;
  top: 4px;
  right: 4px;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  color: #686E8D;
  transition: all 0.2s ease;
  z-index: 10;
}

.about-modal-close:hover {
  color: #333;
}


.about-modal-illustration {
  min-height: 280px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #ffffff;
  padding: 0 24px;
}

.about-modal-illustration img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.about-modal-body {
  padding: 24px;
  box-sizing: border-box;
  flex-shrink: 0; 
}


.about-modal-body h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.about-modal-description {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: #686E8D;
  margin-bottom: 16px;
}

.about-modal-description:last-of-type {
  margin-bottom: 24px;
}

.about-modal-description a {
  color: #0033FF;
  text-decoration: none;
  transition: all 0.1s ease;
}

.about-modal-description a:hover {
  color: #0033FF;
  text-decoration: underline 2px;
}

/* Футер */
.about-modal-footer {
  padding-top: 24px;
  border-top: 1px solid #d2d2d7;
}

.about-modal-credits {
  font-size: 14px;
  font-weight: 300;
  color: #686E8D;
  margin: 0 0 8px 0;
  line-height: 1.6;
}

.about-modal-credits a {
  color: #686E8D;
  text-decoration: underline 1.5px;
  transition: all 0.1s ease;
}

.about-modal-credits a:hover {
  color: #686E8D;
  text-decoration: none;
}

.about-modal-copyright {
  font-size: 14px;
  font-weight: 300;
  color: #686E8D;
  margin: 0;
  line-height: 1.6;
}

/* Анімація появи на малих екранах */
@media (max-width: 768px) {
  .about-modal {
    transform: translateY(100%);
  }

  .modal-overlay.visible .about-modal {
    transform: translateY(0);
  }
}