/* Credit Card Display Styles */
.card-image {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card-item:hover .card-image {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

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

.card-placeholder i.fas.fa-credit-card,
.card-placeholder i.far.fa-credit-card {
    font-size: 50px;
    color: rgba(255,255,255,0.3);
}

/* Card Brand Icons */
.card-placeholder i.fab {
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
}

/* Card Header Styles */
.card-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

/* Specific Card Brand Colors */
.card-boursorama {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
}

.card-fortuneo {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
}

.card-amex {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-bnp {
    background: linear-gradient(135deg, #00C851 0%, #00A846 100%);
}

.card-revolut {
    background: linear-gradient(135deg, #1A1A1A 0%, #434343 100%);
}

.card-n26 {
    background: linear-gradient(135deg, #36D1DC 0%, #5B86E5 100%);
}

.card-sg {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
}

.card-orange {
    background: linear-gradient(135deg, #FF7B00 0%, #FF5722 100%);
}

.card-hello {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
}

.card-caisse {
    background: linear-gradient(135deg, #C2185B 0%, #880E4F 100%);
}

.card-lydia {
    background: linear-gradient(135deg, #3F51B5 0%, #303F9F 100%);
}

/* Chip and Contactless Icons */
.card-chip {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 35px;
    height: 25px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 5px;
    opacity: 0.8;
}

.card-contactless {
    position: absolute;
    top: 15px;
    right: 15px;
    color: rgba(255,255,255,0.8);
    font-size: 20px;
}

/* Card Number Display */
.card-number {
    position: absolute;
    bottom: 40px;
    left: 20px;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Premium Card Effects */
.card-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Metal Card Effect */
.card-metal {
    background: linear-gradient(135deg, #B8B8B8 0%, #7A7A7A 50%, #B8B8B8 100%);
    position: relative;
}

.card-metal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.05) 2px,
        rgba(255,255,255,0.05) 4px
    );
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-image {
        height: 100px;
    }
    
    .card-placeholder i.fas.fa-credit-card,
    .card-placeholder i.far.fa-credit-card {
        font-size: 40px;
    }
    
    .card-placeholder i.fab {
        font-size: 20px;
    }
}