/* Загрузочный экран в стиле KurilaBot */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

.loading-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 400px;
    width: 100%;
    padding: 40px 20px;
    margin: 0 auto;
}

/* Заголовок и логотип */
.loading-header {
    margin-bottom: 40px;
    text-align: center;
}

.loading-logo {
    font-size: 4rem;
    color: #00ffff;
    margin-bottom: 20px;
    animation: logoPulse 2s ease-in-out infinite;
    display: block;
    text-align: center;
}

.loading-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    display: block;
}

.loading-subtitle {
    font-size: 1.2rem;
    color: #888888;
    margin-bottom: 0;
    text-align: center;
    display: block;
}

/* Прогресс бар */
.loading-progress {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #333333;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #ff00ff, #00ff00);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 1.5s ease-in-out infinite;
}

.progress-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #00ffff;
    text-align: center;
}

/* Статус загрузки */
.loading-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 1rem;
    color: #cccccc;
    text-align: center;
    flex-wrap: wrap;
}

.loading-status i {
    color: #00ffff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.loading-status span {
    text-align: center;
    word-wrap: break-word;
}

/* Анимированные точки */
.loading-animation {
    margin-bottom: 30px;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: #00ffff;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite both;
}

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

/* Советы */
.loading-tips {
    margin-top: 20px;
    text-align: center;
}

.tip-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: #cccccc;
    font-size: 0.9rem;
    animation: tipFade 3s ease-in-out infinite;
    text-align: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.tip-item i {
    color: #00ffff;
    font-size: 1rem;
    flex-shrink: 0;
}

.tip-item span {
    text-align: center;
    word-wrap: break-word;
    flex: 1;
}

/* Фоновые элементы */
.loading-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 40px;
    height: 40px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

/* Анимации */
@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

@keyframes tipFade {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .loading-content {
        padding: 30px 15px;
        max-width: 90%;
        width: 90%;
        text-align: center;
    }
    
    .loading-logo {
        font-size: 3rem;
        text-align: center;
    }
    
    .loading-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .loading-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .loading-status {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .tip-item {
        font-size: 0.8rem;
        padding: 12px 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .progress-text {
        font-size: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .loading-content {
        padding: 20px 10px;
        max-width: 95%;
        width: 95%;
        text-align: center;
    }
    
    .loading-logo {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .loading-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .loading-subtitle {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .loading-status {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .tip-item {
        font-size: 0.7rem;
        padding: 10px 12px;
        text-align: center;
    }
    
    .progress-text {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .loading-dots span {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 360px) {
    .loading-content {
        padding: 15px 8px;
        text-align: center;
    }
    
    .loading-logo {
        font-size: 2rem;
        text-align: center;
    }
    
    .loading-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .loading-subtitle {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .loading-header {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .loading-progress {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .loading-status {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .tip-item {
        text-align: center;
        flex-direction: column;
    }
}
/* Темная тема (уже применена) */
.loading-container {
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
}

/* Эффект частиц */
.loading-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(0, 255, 0, 0.1) 0%, transparent 50%);
    animation: backgroundShift 10s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

