/* Прелоадер контейнер */
.preloader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    width: 100%;
}

.preloader {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Спиннер */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Текст загрузки */
.preloader-text {
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Анимация спиннера */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Анимация точек (дополнительный эффект) */
.preloader-text::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
    display: inline-block;
    width: 0;
    overflow: hidden;
    vertical-align: bottom;
}

@keyframes dots {
    0%, 20% { width: 0; }
    40% { width: 12px; }
    60% { width: 24px; }
    80%, 100% { width: 36px; }
}

/* Стили для кнопки */
.load-more-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin: 0 auto;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.load-more-btn .btn-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.load-more-btn:hover .btn-icon {
    transform: translateY(3px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .load-more-btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    .preloader {
        padding: 12px 25px;
    }

    .preloader-text {
        font-size: 14px;
    }
}

/* Прогресс-бар прелоадер */
.progress-preloader {
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Альтернативный прелоадер с текстом */
.loading-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #667eea;
    font-size: 16px;
}

.loading-dots {
    display: flex;
    gap: 5px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: bounce 0.6s alternate infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    to { transform: translateY(-5px); }
}