/* Donate Widget CSS для nakuhonke.ru */
/* Горизонтальная версия без вертикальной прокрутки */

/* Контейнер */
.donate-widget-container {
    margin: 40px auto;
    max-width: 800px;
    text-align: center;
}

/* Кнопка-триггер */
.donate-trigger-wrapper {
    display: inline-block;
    transition: transform 0.3s ease;
}

.donate-trigger-wrapper:hover {
    transform: translateY(-3px);
}

.donate-trigger-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.25);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.donate-trigger-btn:hover {
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.35);
}

.donate-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.donate-text {
    font-size: 20px;
    margin-bottom: 4px;
}

.donate-subtext {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

/* Модальное окно - ГОРИЗОНТАЛЬНОЕ */
.donate-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.donate-modal-container {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 900px; /* Широкое горизонтальное окно */
    max-height: 600px; /* Фиксированная высота, не небоскреб */
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden; /* Убираем любую прокрутку */
    display: flex;
    flex-direction: column;
}

/* Контент - горизонтальное расположение */
.donate-modal-content {
    display: flex;
    flex: 1;
    padding: 0;
    overflow: hidden; /* Важно: убираем прокрутку */
}

/* Левая колонка */
.donate-left-column {
    flex: 1;
    padding: 40px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px;
}

/* Правая колонка */
.donate-right-column {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px;
}

/* Аватар */
.donate-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
}

.donate-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #667eea;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

/* Заголовки и текст */
.donate-title {
    text-align: center;
    margin: 0 0 15px 0;
    color: #333;
    font-size: 28px;
    line-height: 1.2;
}

.donate-description {
    text-align: center;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
    font-size: 16px;
}

.donate-humour {
    text-align: center;
    color: #888;
    margin: 0 0 30px 0;
    font-style: italic;
}

/* Основная кнопка DonationAlerts */
.donate-main-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: white !important;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 0 15px 0;
    box-shadow: 0 10px 25px rgba(0, 176, 155, 0.25);
    text-decoration: none;
    text-align: center;
    gap: 12px;
}

.donate-main-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 176, 155, 0.35);
    color: white;
}

.btn-icon {
    font-size: 24px;
}

.btn-text {
    flex: 1;
    text-align: center;
}

.btn-arrow {
    font-size: 24px;
    transition: transform 0.2s;
}

.donate-main-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* Примечание о безопасности */
.donate-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.secure-icon {
    font-size: 16px;
}

/* Правая колонка - стили */
.alternative-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
}

.alt-icon {
    font-size: 24px;
}

/* Номер карты */
.card-number-container {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 16px;
    padding: 25px;
    color: white;
    margin: 0 0 20px 0;
    position: relative;
    overflow: hidden;
}

.card-number-display {
    font-family: 'Courier New', monospace;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0 0 20px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    word-break: break-all;
    text-align: center;
}

.copy-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    backdrop-filter: blur(5px);
    transition: all 0.2s;
}

.copy-card-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.copy-icon {
    font-size: 18px;
}

.card-hint {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin: 10px 0 25px 0;
}

/* Разделитель */
.donate-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #999;
}

.donate-divider::before,
.donate-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.donate-divider span {
    padding: 0 15px;
    font-size: 14px;
}

/* Особенности */
.donate-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.feature-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    color: #333;
    font-size: 16px;
    margin-bottom: 4px;
}

.feature-text small {
    color: #666;
    font-size: 14px;
}

/* Кнопка закрытия */
.donate-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s;
    z-index: 10;
    line-height: 1;
    padding: 0;
}

.donate-close-btn:hover {
    background: #e9ecef;
    color: #333;
    transform: rotate(90deg);
}

/* Адаптивность */
@media (max-width: 768px) {
    /* На мобилках делаем вертикальное расположение */
    .donate-modal-content {
        flex-direction: column;
        overflow-y: auto; /* На мобилках разрешаем вертикальный скролл */
        max-height: 80vh;
    }
    
    .donate-modal-container {
        max-width: 95%;
        max-height: 90vh;
    }
    
    .donate-left-column,
    .donate-right-column {
        min-width: auto;
        padding: 30px 25px;
    }
    
    .donate-trigger-btn {
        padding: 18px 30px;
        font-size: 16px;
    }
    
    .donate-avatar {
        width: 100px;
        height: 100px;
    }
    
    .donate-title {
        font-size: 24px;
    }
    
    .card-number-display {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .donate-left-column,
    .donate-right-column {
        padding: 25px 20px;
    }
    
    .donate-trigger-btn {
        padding: 15px 25px;
    }
    
    .donate-main-btn {
        padding: 18px;
        font-size: 16px;
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-text {
        order: 2;
    }
    
    .btn-icon {
        order: 1;
    }
    
    .btn-arrow {
        order: 3;
    }
}