/* Instant Card Display Styles */

.card-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.card-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.card-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.card-image:hover {
    transform: scale(1.02);
}

/* Power level indicator */
.card-power-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    z-index: 10;
    animation: powerGlow 2s infinite alternate;
}

@keyframes powerGlow {
    0% { box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4); }
    100% { box-shadow: 0 4px 16px rgba(255, 215, 0, 0.8); }
}

.power-value {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Staked card indicator */
.staked-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #9B59B6, #8E44AD);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.4);
    z-index: 10;
    animation: stakedPulse 1.5s infinite;
}

@keyframes stakedPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Card variant indicators */
.card-variant-primary {
    border: 2px solid #4A90E2;
}

.card-variant-secondary {
    border: 2px solid #7B68EE;
    opacity: 0.9;
}

.card-variant-unique {
    border: 2px solid #FFD700;
    position: relative;
}

.card-variant-unique::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.1) 50%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Enhanced placeholder styling */
.enhanced-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.enhanced-placeholder::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
    top: -50%;
    left: -50%;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.placeholder-symbol {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.placeholder-text {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.placeholder-subtext {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-power-indicator {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }
    
    .staked-indicator {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
}

/* Loading animation for card images */
.card-image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Card grid improvements */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.card-grid .card-item {
    transition: all 0.3s ease;
}

.card-grid .card-item:hover {
    transform: translateY(-10px);
    z-index: 5;
}

/* Three card reading layout */
.three-card-layout {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0;
}

.three-card-layout .card-position {
    flex: 1;
    text-align: center;
}

.three-card-layout .card-position h4 {
    margin-bottom: 15px;
    color: #6B3FA0;
    font-weight: bold;
}

@media (max-width: 768px) {
    .three-card-layout {
        flex-direction: column;
        gap: 30px;
    }
}