﻿.pack-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
}

.booster-container {
    width: 100%;
    height: clamp(350px, 30vh, 350px);
    max-width: 100%;
    overflow-y: auto;
    padding: 10px;
    border: 2px solid #333;
    border-radius: 12px;
    background: #1e1e1e;
}

.booster-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
}

.cardContent {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.card-price {
    margin-top: 8px;
    font-weight: bold;
    font-size: 1rem;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.card-name {
    padding: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.card-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 0.8rem;
    pointer-events: none;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 100%; /* remove the 200px cap */
}
    .card:hover {
        transform: perspective(800px) 
        rotateX(calc((var(--my) - 50) * 0.05deg))
        rotateY(calc((50 - var(--mx)) * 0.05deg))
        scale(1.03);
    }

    .card.holo {
        position: relative;
        overflow: hidden;
        transition: transform 0.15s ease;
    }

        .card.holo::before {
            z-index: 1;
            content: "";
            position: absolute;
            inset: 0;
            mix-blend-mode: screen;
            transition: opacity 0.3s ease;
            background: linear-gradient( 120deg, rgba(255,0,255,0.3), rgba(0,255,255,0.3), rgba(255,255,0,0.3) );
            opacity: 0.7;
        }

        .card.holo::after {
            z-index: 2;
            content: "";
            position: absolute;
            inset: 0;
            mix-blend-mode: overlay;
            background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.25) 50%, transparent 60%);
            background-size: 400% 400%;
            animation: holo-shimmer 3s linear infinite;
        }

        .card .cursor-shine {
            z-index: 3;
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            opacity: 0;
            mix-blend-mode: screen;
            transition: opacity 0.2s ease;
            background: radial-gradient(circle 120px at var(--mx-px) var(--my-px), rgba(255,255,255,0.35), transparent 80%);
        }

        .card:hover .cursor-shine {
            opacity: 0.5;
        }

@keyframes holo-shimmer {
    0% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}
