/* =====================================================
   AMTHosting - Cloud Loader Styles
   ===================================================== */

.cloud-loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 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;
}

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

@keyframes cloudFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Main Cloud */
.cloud-main {
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 160px;
    height: 60px;
}

.cloud-base {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    border-radius: 40px;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.cloud-circle {
    position: absolute;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.cloud-circle-1 {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 10px;
}

.cloud-circle-2 {
    width: 80px;
    height: 80px;
    top: -45px;
    left: 40px;
}

.cloud-circle-3 {
    width: 55px;
    height: 55px;
    top: -25px;
    right: 10px;
}

/* Small Clouds */
.cloud-small {
    position: absolute;
    animation: smallCloudFloat 4s ease-in-out infinite;
}

.cloud-small-1 {
    top: 10px;
    left: -30px;
    animation-delay: 0.5s;
}

.cloud-small-2 {
    top: 20px;
    right: -40px;
    animation-delay: 1s;
}

@keyframes smallCloudFloat {
    0%, 100% { transform: translateX(0) scale(0.8); }
    50% { transform: translateX(10px) scale(0.9); }
}

.cloud-base-small {
    width: 50px;
    height: 25px;
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    border-radius: 25px;
    position: relative;
    bottom: 0;
    opacity: 0.8;
}

.cloud-circle-small {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    border-radius: 50%;
    position: absolute;
    top: -18px;
    left: 8px;
    opacity: 0.8;
}

/* Loader Text */
.loader-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.loader-dots {
    display: flex;
    gap: 4px;
}

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

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

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

@keyframes dotPulse {
    0%, 60%, 100% { transform: scale(1); opacity: 0.5; }
    30% { transform: scale(1.5); opacity: 1; }
}

/* Progress Bar */
.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 auto;
    overflow: hidden;
}

.loader-progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    animation: progressAnimation 2s ease-in-out infinite;
}

@keyframes progressAnimation {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Hosting Badge */
.hosting-badge {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

.hosting-badge i {
    font-size: 18px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}