/* ====================================
   🔄 LOADING SPINNER STYLES
   ==================================== */

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    grid-column: 1 / -1;
}

/* ====================================
   SPINNER CIRCLE
   ==================================== */
.spinner-circle {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--neon-cyan, #00FFFF);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner-small .spinner-circle {
    width: 30px;
    height: 30px;
    border-width: 3px;
}

.loading-spinner-large .spinner-circle {
    width: 70px;
    height: 70px;
    border-width: 5px;
}

/* ====================================
   SPINNER TEXT
   ==================================== */
.spinner-text {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
}

/* ====================================
   ANIMATIONS
   ==================================== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ====================================
   SKELETON LOADER
   ==================================== */
.skeleton-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.skeleton-title {
    width: 80%;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.skeleton-text {
    width: 100%;
    height: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.skeleton-button {
    width: 120px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-top: 1rem;
}

@keyframes skeletonPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ====================================
   INLINE SPINNER (FOR BUTTONS)
   ==================================== */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 0.5rem;
}

/* ====================================
   FULLSCREEN LOADING
   ==================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay .spinner-circle {
    width: 80px;
    height: 80px;
    border-width: 6px;
}

.loading-overlay .spinner-text {
    font-size: 1.2rem;
    color: #fff;
}

/* ====================================
   PROGRESS BAR
   ==================================== */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-bar-animated .progress-bar-fill {
    animation: progressBarAnimation 1.5s ease-in-out infinite;
}

@keyframes progressBarAnimation {
    0% {
        width: 0%;
        margin-left: 0%;
    }
    50% {
        width: 50%;
        margin-left: 25%;
    }
    100% {
        width: 0%;
        margin-left: 100%;
    }
}

/* ====================================
   DOTS LOADER
   ==================================== */
.dots-loader {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 2rem;
}

.dots-loader-dot {
    width: 12px;
    height: 12px;
    background: var(--neon-cyan);
    border-radius: 50%;
    animation: dotsBounce 1.4s ease-in-out infinite;
}

.dots-loader-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dots-loader-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dotsBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
