/* css/loader.css - Cloud Loader Styles */

/* ==================== CLOUD LOADER ==================== */
.cloud-loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0B0F1A 0%, #1a1f3c 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.cloud-loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.cloud-loader {
    text-align: center;
    position: relative;
}

/* Cloud Container */
.cloud-container {
    position: relative;
    width: 200px;
    height: 120px;
    margin: 0 auto 30px;
    animation: cloud-float 3s ease-in-out infinite;
}

@keyframes cloud-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Main Cloud */
.cloud-main {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 60px;
    filter: drop-shadow(0 10px 20px rgba(103, 61, 230, 0.3));
}

.cloud-base {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(180deg, #8F6BFF 0%, #673DE6 100%);
    border-radius: 40px;
    animation: cloud-pulse 2s ease-in-out infinite;
}

.cloud-circle {
    position: absolute;
    background: linear-gradient(135deg, #B88FFF 0%, #8F6BFF 100%);
    border-radius: 50%;
}

.cloud-circle-1 {
    width: 60px;
    height: 60px;
    top: -20px;
    left: 5px;
    animation: cloud-pulse 2s ease-in-out infinite 0.2s;
}

.cloud-circle-2 {
    width: 70px;
    height: 70px;
    top: -35px;
    left: 35px;
    animation: cloud-pulse 2s ease-in-out infinite 0.4s;
}

.cloud-circle-3 {
    width: 50px;
    height: 50px;
    top: -15px;
    right: 5px;
    animation: cloud-pulse 2s ease-in-out infinite 0.6s;
}

/* Small Clouds */
.cloud-small {
    position: absolute;
    filter: drop-shadow(0 5px 10px rgba(103, 61, 230, 0.2));
    animation: cloud-float-small 4s ease-in-out infinite;
}

.cloud-small-1 {
    top: 20px;
    left: -30px;
    transform: scale(0.6);
    animation-delay: 0.5s;
}

.cloud-small-2 {
    top: 10px;
    right: -25px;
    transform: scale(0.5);
    animation-delay: 1s;
}

@keyframes cloud-float-small {
    0%, 100% { transform: scale(0.6) translateY(0); }
    50% { transform: scale(0.6) translateY(-10px); }
}

.cloud-small-2 {
    animation: cloud-float-small-2 4s ease-in-out infinite;
}

@keyframes cloud-float-small-2 {
    0%, 100% { transform: scale(0.5) translateY(0); }
    50% { transform: scale(0.5) translateY(-8px); }
}

.cloud-base-small {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 25px;
    background: linear-gradient(180deg, #A88BFF 0%, #7B5BE6 100%);
    border-radius: 25px;
}

.cloud-circle-small {
    position: absolute;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #C4A8FF 0%, #A88BFF 100%);
    border-radius: 50%;
    top: -15px;
    left: 18px;
}

@keyframes cloud-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Loader Text */
.loader-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.loader-text span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-dots {
    display: flex;
    gap: 5px;
    margin-left: 5px;
}

.loader-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: dot-bounce 1.4s ease-in-out infinite;
}

.loader-dots span:nth-child(1) { animation-delay: 0s; }
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-10px); opacity: 1; }
}

/* Hosting Badge */
.hosting-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background: rgba(103, 61, 230, 0.15);
    border: 1px solid rgba(103, 61, 230, 0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: badge-glow 2s ease-in-out infinite;
}

.hosting-badge i {
    font-size: 18px;
    animation: icon-spin 3s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(103, 61, 230, 0.2); }
    50% { box-shadow: 0 0 20px rgba(103, 61, 230, 0.4); }
}

@keyframes icon-spin {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Progress Bar */
.loader-progress {
    width: 200px;
    height: 3px;
    background: rgba(103, 61, 230, 0.2);
    border-radius: 3px;
    margin: 20px auto 0;
    overflow: hidden;
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    animation: progress-load 2.5s ease-out forwards;
}

@keyframes progress-load {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Responsive */
@media (max-width: 768px) {
    .cloud-container {
        transform: scale(0.8);
    }
    
    .loader-text {
        font-size: 20px;
    }
    
    .hosting-badge {
        padding: 8px 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .cloud-container {
        transform: scale(0.6);
    }
}