/* ===================================================
 * PACK SYSTEM ANIMATIONS - 3D Pack Opening & Effekte
 * Extrahiert aus cards-album.ejs für bessere Organisation
 * =================================================== */

/* === PACK CONTAINER SYSTEM === */
.pack-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem !important;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        rgba(255, 140, 0, 0.05) 100%) !important;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    min-height: 150px;
}

.pack-container:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.pack-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: packFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.pack-icon i {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.pack-content {
    text-align: center;
    width: 100%;
}

/* === PACK TIMER === */
.pack-timer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pack-timer-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timer-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.timer-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === GEM SKIP BUTTON === */
.gem-skip-btn {
    background: linear-gradient(145deg, #ec4899, #8b5cf6);
    border: none;
    border-radius: 8px;
    pointer-events: auto; /* Immer klickbar */
    color: #4a0a3a;
    font-family: 'Unbounded', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
    margin: 0;
    transform: translateY(-2px);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3), 0 -1px 0 rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 0 #7c3aed, 0 3px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    user-select: none;
    -webkit-user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gem-skip-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 0 #7c3aed, 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.gem-skip-btn:active {
    transform: translateY(0px);
    box-shadow: 0 1px 0 #7c3aed, 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.gem-skip-btn .gem-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.gem-skip-btn .skip-price {
    font-weight: 700;
}

/* Button rot wackeln bei nicht genug Gems */
.gem-skip-btn.insufficient-gems-shake {
    animation: shakeButtonRed 0.5s ease-in-out;
    background: linear-gradient(145deg, #ff4444, #cc0000);
    box-shadow: 0 2px 0 #990000, 0 3px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* Button Fade-Out Animation beim Timer-Ablauf */
.gem-skip-btn.fade-out {
    animation: buttonFadeOut 0.3s ease-out forwards;
}

@keyframes shakeButtonRed {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

@keyframes buttonFadeOut {
    from {
        opacity: 1;
        transform: translateY(-2px) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-2px) scale(0.8);
    }
}

/* === PACK READY ANIMATIONS === */


@keyframes packReady {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}



@keyframes glow {
    from { text-shadow: 0 0 10px rgba(0, 255, 136, 0.5); }
    to { text-shadow: 0 0 20px rgba(0, 255, 136, 0.8); }
}



.
/* === PACK UPGRADE INDICATORS === */
.pack-upgrade-indicator {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    min-width: 140px;
    text-align: center;
}

.upgrade-level {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.upgrade-level.bronze { color: #CD7F32; }
.upgrade-level.silver { color: #C0C0C0; }
.upgrade-level.gold { color: #FFD700; }
.upgrade-level.epic { color: #9966CC; }
.upgrade-level.diamond { color: #00BFFF; }
.upgrade-level.emerald { color: #50C878; }
.upgrade-level.ruby { color: #E0115F; }
.upgrade-level.legendary { color: #FF00FF; }

.upgrade-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.upgrade-bar {
    height: 100%;
    background: linear-gradient(90deg, #CD7F32, #FFD700);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.upgrade-bar[data-upgrades="1"] { width: 25%; }
.upgrade-bar[data-upgrades="2"] { width: 50%; }
.upgrade-bar[data-upgrades="3"] { width: 75%; }
.upgrade-bar[data-upgrades="4"] { width: 100%; }

/* === PACK UPGRADE INTERFACE === */
.pack-upgrade-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    min-height: 200px;
    justify-content: center;
}

.pack-upgrade-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: upgradeFloat 2s ease-in-out infinite;
}

@keyframes upgradeFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-5px) scale(1.1); }
}

.pack-upgrade-text h3 {
    color: #FFD700;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.pack-upgrade-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.upgrade-info {
    font-weight: 600;
    color: #00FF88 !important;
}

.cards-info {
    font-weight: 600;
    color: #FFD700 !important;
}

.upgrade-click-btn {
    background: linear-gradient(45deg, #9966CC, #6644AA);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(153, 102, 204, 0.3);
}

.upgrade-click-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(153, 102, 204, 0.5);
    background: linear-gradient(45deg, #AA77DD, #7755BB);
}

.upgrade-click-btn .chance {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 400;
}

.upgrade-progress-display {
    margin-top: 1rem;
}

.upgrade-dots {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.upgrade-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.upgrade-dot.completed {
    background: rgba(255, 215, 0, 0.8);
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.upgrade-dot.success {
    background: rgba(0, 255, 136, 0.8);
    border-color: #00FF88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.7);
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}
