/* ============================================
   Страница "Поддержать проект" (Донат)
   ============================================ */

/* Заголовок страницы */
.donate-header {
    text-align: center;
    padding: 2rem 0 3rem;
    position: relative;
}

.donate-header-icon {
    font-size: 4rem;
    color: #ff6b9d;
    margin-bottom: 1rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

.donate-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    margin-bottom: 0.5rem;
}

.donate-subtitle {
    font-size: 1.2rem;
    color: rgba(201, 209, 255, 0.9);
}

/* Контейнер */
.donate-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    padding: 0 1rem 3rem;
}

/* Левая колонка */
.donate-main-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Карточка благодарности */
.donate-thanks-card {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15) 0%, rgba(255, 107, 157, 0.05) 100%);
    border: 2px solid rgba(255, 107, 157, 0.4);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.2);
}

.donate-thanks-card h2 {
    font-size: 1.5rem;
    color: #ff6b9d;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.donate-thanks-card p {
    font-size: 1.05rem;
    color: rgba(201, 209, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.donate-thanks-card p:last-child {
    margin-bottom: 0;
}

.donate-thanks-card strong {
    color: #ffd700;
}

/* Форма доната */
.donate-form-card {
    background: linear-gradient(135deg, rgba(25, 25, 72, 0.95) 0%, rgba(0, 0, 51, 0.95) 100%);
    border: 2px solid rgba(120, 140, 255, 0.6);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(120, 140, 255, 0.2);
}

/* Поле username */
.username-input {
    width: 100%;
    background: rgba(25, 25, 72, 0.6);
    border: 2px solid rgba(120, 140, 255, 0.4);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: #c9d1ff;
    transition: all 0.3s ease;
}

.username-input:focus {
    outline: none;
    border-color: rgba(120, 140, 255, 0.8);
    box-shadow: 0 0 15px rgba(120, 140, 255, 0.3);
    background: rgba(25, 25, 72, 0.8);
}

.username-input::placeholder {
    color: rgba(201, 209, 255, 0.5);
}

.username-hint {
    font-size: 0.85rem;
    color: rgba(201, 209, 255, 0.7);
    margin-top: 0.5rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.username-hint i {
    color: #ffd700;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* Информация для анонимов */
.donate-anonymous-info {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 2px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.anonymous-info-icon {
    font-size: 3rem;
    color: #4ade80;
    margin-bottom: 1rem;
}

.donate-anonymous-info h3 {
    font-size: 1.3rem;
    color: #4ade80;
    margin-bottom: 0.75rem;
}

.donate-anonymous-info p {
    font-size: 0.95rem;
    color: rgba(201, 209, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.btn-register-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(74, 222, 128, 0.3);
}

.btn-register-inline:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 7px 20px rgba(74, 222, 128, 0.5);
    transform: translateY(-2px);
}

/* Кнопка доната */
.btn-donate {
    width: 100%;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff1493 100%);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.btn-donate:hover {
    background: linear-gradient(135deg, #ff1493 0%, #c71585 100%);
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.6);
    transform: translateY(-2px);
}

.btn-donate-icon {
    font-size: 1.5rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.btn-donate-text {
    flex: 1;
}

.btn-donate-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-donate:hover .btn-donate-arrow {
    transform: translateX(5px);
}

/* Требуется авторизация */
.donate-auth-required {
    background: linear-gradient(135deg, rgba(25, 25, 72, 0.95) 0%, rgba(0, 0, 51, 0.95) 100%);
    border: 2px solid rgba(120, 140, 255, 0.6);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.donate-auth-icon {
    font-size: 5rem;
    color: #ffd700;
    margin-bottom: 1.5rem;
}

.donate-auth-required h3 {
    font-size: 1.8rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.donate-auth-required p {
    font-size: 1.1rem;
    color: rgba(201, 209, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.donate-auth-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-donate-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-donate-auth.primary {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #000;
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.3);
}

.btn-donate-auth.primary:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 10px 25px rgba(74, 222, 128, 0.5);
    transform: translateY(-2px);
}

.btn-donate-auth.secondary {
    background: transparent;
    color: #c9d1ff;
    border-color: rgba(120, 140, 255, 0.6);
}

.btn-donate-auth.secondary:hover {
    background: rgba(120, 140, 255, 0.15);
    border-color: rgba(120, 140, 255, 0.9);
    transform: translateY(-2px);
}

/* Правая колонка */
.donate-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Информационная карточка */
.donate-info-card {
    background: linear-gradient(135deg, rgba(25, 25, 72, 0.6) 0%, rgba(0, 0, 51, 0.6) 100%);
    border: 1px solid rgba(120, 140, 255, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.donate-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.donate-info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: rgba(201, 209, 255, 0.9);
    padding: 0.75rem;
    background: rgba(25, 25, 72, 0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.donate-info-list li:hover {
    background: rgba(120, 140, 255, 0.1);
    transform: translateX(5px);
}

.donate-info-list li i {
    font-size: 1.3rem;
    color: #ffd700;
    min-width: 24px;
    text-align: center;
}

/* Стили секций */
.donate-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Ссылка в навигации */
.donate-link {
    color: #ff6b9d !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.donate-link:hover {
    color: #ff1493 !important;
    text-shadow: 0 0 8px rgba(255, 107, 157, 0.6);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .donate-container {
        grid-template-columns: 1fr;
    }

    .donate-sidebar-column {
        order: -1;
    }
}

@media (max-width: 768px) {
    .donate-header h1 {
        font-size: 2rem;
    }

    .donate-header-icon {
        font-size: 3rem;
    }

    .donate-thanks-card {
        padding: 1.5rem;
    }

    .btn-donate {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
    }

    .donate-auth-buttons {
        flex-direction: column;
    }

    .btn-donate-auth {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Статистика донатов
   ============================================ */

.donate-stats-section {
    max-width: 1200px;
    margin: 3rem auto 2rem;
    padding: 2rem 0;
}

.donate-stats-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    margin-bottom: 2rem;
}

.donate-stats-title i {
    margin-right: 0.5rem;
    color: #ff6b9d;
}

/* Общая статистика */
.donate-total-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.total-stat-card {
    background: linear-gradient(135deg, rgba(25, 25, 72, 0.6), rgba(0, 0, 51, 0.6));
    border: 1px solid rgba(120, 140, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.total-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.total-stat-icon {
    font-size: 2.5rem;
    color: #ff6b9d;
    min-width: 60px;
    text-align: center;
}

.total-stat-content {
    flex: 1;
}

.total-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.25rem;
}

.total-stat-label {
    font-size: 0.9rem;
    color: rgba(201, 209, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Сетка статистики */
.donate-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.donate-stats-card {
    background: linear-gradient(135deg, rgba(25, 25, 72, 0.6), rgba(0, 0, 51, 0.6));
    border: 1px solid rgba(120, 140, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.donate-stats-card:hover {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.15);
}

.stats-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(120, 140, 255, 0.2);
}

.stats-card-title i {
    margin-right: 0.5rem;
    color: #ff6b9d;
}

/* Топ донатеров */
.top-donators-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.donator-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(25, 25, 72, 0.4);
    border: 1px solid rgba(120, 140, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.donator-item:hover {
    background: rgba(25, 25, 72, 0.6);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateX(5px);
}

/* Топ 3 места */
.donator-item.top-1 {
    border-color: rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(25, 25, 72, 0.4));
}

.donator-item.top-2 {
    border-color: rgba(192, 192, 192, 0.6);
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(25, 25, 72, 0.4));
}

.donator-item.top-3 {
    border-color: rgba(205, 127, 50, 0.6);
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(25, 25, 72, 0.4));
}

.donator-rank {
    min-width: 40px;
    text-align: center;
    font-size: 1.5rem;
}

.rank-gold {
    color: #ffd700;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.rank-silver {
    color: #c0c0c0;
    filter: drop-shadow(0 0 8px rgba(192, 192, 192, 0.6));
}

.rank-bronze {
    color: #cd7f32;
    filter: drop-shadow(0 0 8px rgba(205, 127, 50, 0.6));
}

.rank-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(120, 140, 255, 0.8);
}

.donator-info {
    flex: 1;
}

.donator-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #c9d1ff;
    margin-bottom: 0.25rem;
}

.donator-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.donator-amount {
    color: #ffd700;
    font-weight: 600;
}

.donator-count {
    color: rgba(201, 209, 255, 0.6);
}

/* Последние донаты */
.recent-donations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recent-donation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(25, 25, 72, 0.3);
    border: 1px solid rgba(120, 140, 255, 0.15);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.recent-donation-item:hover {
    background: rgba(25, 25, 72, 0.5);
    border-color: rgba(255, 107, 157, 0.3);
}

.donation-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.donation-user i {
    color: #ff6b9d;
    font-size: 0.9rem;
}

.donation-username {
    font-weight: 600;
    color: #c9d1ff;
}

.donation-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.donation-amount {
    color: #ffd700;
    font-weight: 600;
}

.donation-time {
    color: rgba(201, 209, 255, 0.5);
    font-size: 0.85rem;
}

/* Нет данных */
.no-data-message {
    text-align: center;
    padding: 2rem;
    color: rgba(201, 209, 255, 0.5);
}

.no-data-message i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.no-data-message p {
    margin: 0;
    font-size: 1rem;
}

/* Адаптивность статистики */
@media (max-width: 1024px) {
    .donate-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .donate-total-stats {
        grid-template-columns: 1fr;
    }

    .donate-stats-title {
        font-size: 1.5rem;
    }

    .total-stat-value {
        font-size: 1.5rem;
    }

    .stats-card-title {
        font-size: 1.2rem;
    }

    .donator-name {
        font-size: 1rem;
    }

    .donation-details {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.25rem;
    }
}
