/* =========================
   СТИЛИ ДЛЯ СТРАНИЦЫ ДОНАТОВ
========================= */

/* =========================
   ОСНОВНЫЕ СТИЛИ ДЛЯ ДОНАТОВ
========================= */
/* =========================
   СЕКЦИЯ ПОДДЕРЖКИ ПРОЕКТА
========================= */
.support-section {
  background: linear-gradient(135deg, #f9fbff 0%, #eaf4ff 100%);
  border-left: 5px solid #0077cc;
  margin: 2rem 0;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 119, 204, 0.1);
  text-align: center;
}

body.dark .support-section {
  background: linear-gradient(135deg, #1b2635 0%, #253547 100%);
  border-left-color: #66ccff;
  box-shadow: 0 8px 25px rgba(102, 204, 255, 0.08);
}

.support-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #004c99;
}

body.dark .support-section h2 {
  color: #66ccff;
}

.support-text p {
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

body.dark .support-text p {
  color: #e0e0e0;
}

.support-main-btn {
  display: inline-block;
  background: linear-gradient(135deg, #0077cc, #005fa3);
  color: #fff !important; /* Принудительно белый текст */
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 119, 204, 0.3);
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  max-width: 90%;
  border: none;
  cursor: pointer;
}

.support-main-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #005fa3, #004d80);
  box-shadow: 0 6px 20px rgba(0, 119, 204, 0.4);
  color: #fff !important; /* Белый текст при наведении */
}

.support-note {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

body.dark .support-note {
  color: #ccc;
}

/* Контейнер для карточек с донатами */
.donation-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Карточки донатов */
.donation-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 500px;
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
}

body.dark .donation-card {
  background: #2a2a2a;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.donation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

body.dark .donation-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* Карточка ЮMoney (компактная) */
.yoomoney-card {
  min-height: 180px !important;
  height: auto !important;
  padding: 1.5rem !important;
}

.yoomoney-card .donation-qr-container {
  display: none;
}

/* =========================
   МЕТОДЫ ОПЛАТЫ
========================= */

.donation-method {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.yoomoney-card .donation-method {
  margin-bottom: 0;
}

/* Иконки донатов */
.donation-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f8ff;
  border-radius: 12px;
  flex-shrink: 0;
  border: 2px solid #e3f2fd;
}

body.dark .donation-icon {
  background: #1e2a3a;
  border-color: #2a3a4a;
}

/* SVG иконки */
.donation-icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.yoomoney-card .donation-icon-img {
  width: 75px;
  height: 75px;
}

body.dark .donation-icon-img {
  filter: brightness(1.2);
}

.donation-icon:hover .donation-icon-img {
  filter: brightness(1);
  transform: scale(1.1);
}

/* Информация о методе оплаты */
.donation-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.donation-info h3 {
  margin: 0 0 0.8rem 0;
  color: #0077cc;
  font-size: 1.3rem;
}

body.dark .donation-info h3 {
  color: #66ccff;
}

/* Адреса для копирования */
.donation-address {
  background: #f8f9fa;
  padding: 1.2rem;
  border-radius: 10px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  word-break: break-all;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.donation-address:hover {
  background: #e9ecef;
  border-color: #0077cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body.dark .donation-address {
  background: #2a2a2a;
  color: #66ccff;
}

body.dark .donation-address:hover {
  background: #333;
  border-color: #66ccff;
  box-shadow: 0 4px 12px rgba(102, 204, 255, 0.1);
}

.copy-hint {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
  font-family: Arial, sans-serif;
  font-style: italic;
}

body.dark .copy-hint {
  color: #ccc;
}

.network-info {
  font-size: 0.85rem;
  color: #666;
  margin: 0.3rem 0 0 0;
  font-style: italic;
}

body.dark .network-info {
  color: #ccc;
}

/* =========================
   ОСОБЕННОСТИ ДЛЯ СПОНСОРОВ
========================= */
.support-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.feature-icon {
  font-size: 2rem;
}

.feature-text {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

body.dark .feature-text {
  color: #ccc;
}

/* =========================
   QR-КОДЫ
========================= */

.donation-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 2px solid #f0f0f0;
}

body.dark .donation-qr-container {
  border-top-color: #444;
}

.donation-qr {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 220px;
  height: 220px;
}

body.dark .donation-qr {
  background: #333;
  border-color: #555;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.donation-qr img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.donation-qr img:hover {
  transform: scale(1.05);
}

.qr-caption {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin: 0;
  font-weight: 500;
  min-height: 1.2em;
}

body.dark .qr-caption {
  color: #ccc;
}

/* =========================
   УВЕДОМЛЕНИЯ
========================= */

/* Уведомления о копировании */
.copy-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4CAF50;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-weight: 600;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.copy-notification.show {
  transform: translateX(0);
  opacity: 1;
}

/* Уведомление для криптовалюты */
.crypto-notice {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 6rem !important;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

body.dark .crypto-notice {
  background: #2d2a1e;
  border-color: #555127;
}

.crypto-notice h4 {
  color: #856404;
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
}

body.dark .crypto-notice h4 {
  color: #ffd54f;
}

.crypto-notice ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #666;
  line-height: 1.6;
}

body.dark .crypto-notice ul {
  color: #ccc;
}

.crypto-notice li {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.crypto-notice li:last-child {
  margin-bottom: 0;
}

/* =========================
   РАССТОЯНИЯ МЕЖДУ СЕКЦИЯМИ
========================= */

/* Основные отступы для секций */
main .section {
  margin: 4rem 0 !important;
  padding: 2.5rem !important;
}

/* Большой отступ после криптовалюты */
#crypto {
  margin-bottom: 8rem !important;
}

/* =========================
   СТИЛИ ДЛЯ КАРТОЧЕК ДРУГИХ СПОСОБОВ ПОДДЕРЖКИ
========================= */
.donation-btn {
  align-self: center;
  margin-top: auto;
  background: linear-gradient(135deg, #0077cc, #005fa3);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.donation-btn:hover {
  background: linear-gradient(135deg, #005fa3, #004d80);
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 119, 204, 0.3);
}

body.dark .donation-btn {
  background: linear-gradient(135deg, #66ccff, #3399cc);
}

body.dark .donation-btn:hover {
  background: linear-gradient(135deg, #3399cc, #0077cc);
}

/* =========================
   АДАПТИВНОСТЬ
========================= */

@media (max-width: 1024px) {
  .donation-cards-container {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  
  .donation-qr {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .donation-cards-container {
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }
  
  .donation-card {
    min-height: 450px;
    padding: 1.5rem;
  }
  
  .donation-method {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  
  .donation-icon {
    width: 80px;
    height: 80px;
  }
  
  .donation-icon-img {
    width: 35px;
    height: 35px;
  }
  
  .donation-qr {
    width: 180px;
    height: 180px;
    padding: 1rem;
  }
  
  .donation-address {
    padding: 1rem;
    font-size: 0.85rem;
  }
  
  .crypto-notice {
    padding: 1.5rem;
    margin-top: 2rem !important;
  }
  
  .yoomoney-card {
    min-height: 160px !important;
    padding: 1.2rem !important;
  }
  
  main .section {
    margin: 3rem 0 !important;
    padding: 2rem !important;
  }
  
  #crypto {
    margin-bottom: 6rem !important;
  }
}

@media (max-width: 480px) {
  .donation-card {
    min-height: 400px;
    padding: 1.2rem;
    margin-bottom: 2.5rem !important;
  }

  .donation-cards-container {
    gap: 1.2rem !important;
    row-gap: 3.5rem !important;
  }
  
  .donation-qr {
    width: 160px;
    height: 160px;
  }
  
  .donation-icon-img {
    width: 30px;
    height: 30px;
  }
  
  .donation-address {
    font-size: 0.8rem;
    padding: 0.8rem;
  }
  
  .crypto-notice {
    padding: 1rem;
    margin-top: 1.5rem !important;
  }
  
  .copy-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    text-align: center;
    font-size: 0.9rem;
    padding: 12px 20px;
  }
  
  main .section {
    margin: 2.5rem 0 !important;
    padding: 1.5rem !important;
  }
  
  #crypto {
    margin-bottom: 5rem !important;
  }
}

@media (max-width: 360px) {
  .donation-qr {
    width: 140px;
    height: 140px;
  }
  
  .donation-address {
    font-size: 0.75rem;
  }
}
