/* ===================================================
 * PACK LOADING SYSTEM - Clean Loading Placeholders
 * Verhindert dass User leere/texturlose 3D Models sieht
 * =================================================== */

/* === PACK LOADING CONTAINER === */
.pack-loading-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    border-radius: 15px;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

.pack-loading-container.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* === CLEAN LOADING SPINNER === */
.pack-loading-spinner {
    width: 48px;
    height: 48px;
    position: relative;
    margin-bottom: 1rem;
}

/* Nur Logo - clean und größer */
.pack-loading-icon {
    width: 48px;
    height: 48px;
    animation: simpleRotate 2s linear infinite;
    opacity: 0.9;
    position: relative;
    margin: 0 auto;
    background: url('/images/logo-1.png') center/contain no-repeat;
    background-size: 100% 100%;
}

/* === SIMPLE ANIMATIONS === */
@keyframes simpleRotate {
    0% { 
        transform: rotate(0deg);
    }
    100% { 
        transform: rotate(360deg);
    }
}

/* === PREMIUM LOADING TEXT === */
.pack-loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.5px;
    margin: 0;
    opacity: 0.8;
}

/* === KEIN PROGRESS MEHR - ULTRA SIMPLE === */
.pack-loading-progress {
    display: none; /* Komplett entfernt für maximale Simplizität */
}

/* === SPEZIFISCHE LOADING STATES === */

/* Gratis Pack Container - initial versteckt bis geladen */
#freePackContainer {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-20px) !important;
    transition: 
        opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Gratis Pack Container - sichtbar wenn geladen */
#freePackContainer.loaded {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Inhalt des Containers - gestaffeltes Einblenden */
#freePackContainer .pack-preview-combined {
    opacity: 0;
    transform: translateY(10px);
    transition: 
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.3s; /* Startet nach Container-Animation */
}

#freePackContainer.loaded .pack-preview-combined {
    opacity: 1;
    transform: translateY(0);
}

/* Gratis Pack Preview Loading */
.pack-preview-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 15px;
    z-index: 999;
}

/* Pack Opening Loading (Vollbild) */
.pack-opening-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    z-index: 10001;
}

/* === LOADING SUCCESS ANIMATION === */
.pack-loading-success {
    animation: packLoadSuccess 0.8s ease-out forwards;
}

@keyframes packLoadSuccess {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.3) drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

/* === MINIMALISTIC ALTERNATIVE === */
.pack-loading-minimal {
    background: rgba(0, 0, 0, 0.05);
    border: 2px dashed rgba(255, 215, 0, 0.3);
}

.pack-loading-minimal .pack-loading-spinner {
    width: 40px;
    height: 40px;
}

.pack-loading-minimal .pack-loading-text {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* === EINHEITLICHES PREMIUM DESIGN === */
/* Alle Raritäten verwenden das gleiche elegante weiße Design für Konsistenz */

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .pack-loading-spinner {
        width: 50px;
        height: 50px;
    }
    
    .pack-loading-icon {
        font-size: 20px;
    }
    
    .pack-loading-text {
        font-size: 0.8rem;
    }
}
