<!-- card-styles.css -->
/* Enhanced card styles with rarity-specific effects */
.card {
    position: relative;
    width: 300px;
    height: 420px;
    perspective: 1000px;
    margin: 0 auto;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Rarity-specific backgrounds and effects */
.standard .card-inner {
    background: linear-gradient(145deg, #2a2a2a 0%, #3a3a3a 50%, #2a2a2a 100%);
}

.rare .card-inner {
    background: linear-gradient(145deg, #c0c0c0 0%, #e8e8e8 50%, #c0c0c0 100%);
    animation: silverShine 3s infinite;
}

.super-rare .card-inner {
    background: linear-gradient(145deg, #ffd700 0%, #fff5a0 50%, #ffd700 100%);
    animation: goldShine 3s infinite;
}

.ultra-rare .card-inner {
    background: linear-gradient(145deg, #ff0000 0%, #00ff00 33%, #0000ff 66%, #ff0000 100%);
    animation: rainbowShine 3s infinite;
}

@keyframes silverShine {
    0% { filter: brightness(1) contrast(1); }
    50% { filter: brightness(1.3) contrast(1.1); }
    100% { filter: brightness(1) contrast(1); }
}

@keyframes goldShine {
    0% { filter: brightness(1) saturate(1); }
    50% { filter: brightness(1.5) saturate(1.2); }
    100% { filter: brightness(1) saturate(1); }
}

@keyframes rainbowShine {
    0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
    50% { background-position: 100% 50%; filter: hue-rotate(180deg); }
    100% { background-position: 0% 50%; filter: hue-rotate(360deg); }
}

/* Pack selection UI */
.pack-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.pack-option {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
    border-radius: 15px;
    overflow: hidden;
}

.pack-option img {
    width: 100%;
    height: auto;
    transition: filter 0.3s;
}

.pack-option:hover {
    transform: translateY(-5px);
}

.pack-option:hover img {
    filter: brightness(1.2);
}

.pack-option::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255,255,255,0.2) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Pack prices display */
.pack-price {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: gold;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}