/* Стили для страницы загрузки */

.loading-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    padding: 2rem;
    text-align: center;
}

/* Логотип приложения */
.app-logo {
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

.logo-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #007bff;
    animation: bounce 2s infinite;
    text-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.app-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #333;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.app-subtitle {
    font-size: 1.1rem;
    margin: 0;
    color: #6c757d;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Анимация загрузки */
.loading-animation {
    margin-bottom: 3rem;
    animation: fadeIn 1.5s ease-out 0.5s both;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 123, 255, 0.2);
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    animation: dots 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

/* Информация о пользователе */
.user-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 2.5s ease-out 1.5s both;
}

.welcome-text {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: #6c757d;
    font-weight: 400;
}

.user-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #007bff;
    text-shadow: 0 1px 2px rgba(0, 123, 255, 0.1);
    letter-spacing: 0.5px;
}

/* Кнопка повторной попытки */
.retry-button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    -webkit-tap-highlight-color: transparent;
}

.retry-button:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.retry-button:active {
    transform: translateY(0);
}

/* Дополнительные анимации для плавности */
.loading-container * {
    transition: all 0.3s ease;
}

/* Анимация появления элементов */
.loading-container > * {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.loading-container > *:nth-child(1) { animation-delay: 0.1s; }
.loading-container > *:nth-child(2) { animation-delay: 0.3s; }
.loading-container > *:nth-child(3) { animation-delay: 0.5s; }
.loading-container > *:nth-child(4) { animation-delay: 0.7s; }

/* Анимации */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes dots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Темная тема для Telegram */
.tg-theme-dark .loading-container {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #f8f9fa;
}

.tg-theme-dark .app-title {
    color: #f8f9fa;
}

.tg-theme-dark .app-subtitle {
    color: #adb5bd;
}

.tg-theme-dark .status-text {
    color: #adb5bd;
}

.tg-theme-dark .welcome-text {
    color: #adb5bd;
}

/* Светлая тема для Telegram */
.tg-theme-light .loading-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
}

.tg-theme-light .app-title {
    color: #333;
}

.tg-theme-light .app-subtitle {
    color: #6c757d;
}

.tg-theme-light .status-text {
    color: #6c757d;
}

.tg-theme-light .welcome-text {
    color: #6c757d;
}
