/* Scratch Card Graphics with Silver Foil Effects */

.card-icon {
    width: 60px;
    height: 60px;
    position: relative;
    background: linear-gradient(135deg, 
        #f8f9fa 0%, 
        #e9ecef 15%, 
        #dee2e6 30%, 
        #ced4da 45%, 
        #adb5bd 60%, 
        #6c757d 75%, 
        #495057 90%, 
        #343a40 100%);
    border-radius: 12px;
    border: 2px solid #6c5ce7;
    box-shadow: 
        0 4px 15px rgba(108, 92, 231, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    animation: shimmer 3s infinite linear;
}

.card-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: shine 2s infinite;
}

.card-icon::after {
    content: '?';
    color: #6c5ce7;
    font-weight: bold;
    font-size: 28px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Specific card type styling */
.card-icon.pastlife::after { content: '🌌'; }
.card-icon.mangalik::after { content: '🔥'; }
.card-icon.marriage::after { content: '💍'; }
.card-icon.luckyname::after { content: '✨'; }
.card-icon.planet::after { content: '🚫'; }
.card-icon.child::after { content: '🧒'; }
.card-icon.twinflame::after { content: '🔥'; }
.card-icon.relationship::after { content: '❤️'; }

@keyframes shimmer {
    0% { 
        background-position: -200px 0; 
        box-shadow: 
            0 4px 15px rgba(108, 92, 231, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.8),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    }
    50% { 
        box-shadow: 
            0 6px 20px rgba(0, 206, 201, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.9),
            inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    }
    100% { 
        background-position: 200px 0; 
        box-shadow: 
            0 4px 15px rgba(108, 92, 231, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.8),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    }
}

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

/* Silver Foil Scratch Surface */
.scratch-surface {
    background: linear-gradient(45deg,
        #f8f9fa 0%,
        #e9ecef 10%,
        #dee2e6 20%,
        #ced4da 30%,
        #adb5bd 40%,
        #6c757d 50%,
        #495057 60%,
        #343a40 70%,
        #212529 80%,
        #495057 90%,
        #f8f9fa 100%);
    background-size: 20px 20px;
    position: relative;
    overflow: hidden;
}

.scratch-surface::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 0px,
        rgba(255, 255, 255, 0.1) 1px,
        transparent 1px,
        transparent 6px
    );
    animation: foilPattern 4s infinite linear;
}

.scratch-surface::after {
    content: 'SCRATCH HERE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(0, 0, 0, 0.7);
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

@keyframes foilPattern {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

/* Enhanced Card Container */
.mystical-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid transparent;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mystical-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    z-index: -1;
    border-radius: 18px;
    margin: 2px;
}

.mystical-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(108, 92, 231, 0.3),
        0 0 20px rgba(0, 206, 201, 0.2);
}

/* Holographic effect for premium look */
.holographic-effect {
    background: linear-gradient(45deg,
        #ff006e 0%,
        #8338ec 20%,
        #3a86ff 40%,
        #06ffa5 60%,
        #ffbe0b 80%,
        #ff006e 100%);
    background-size: 400% 400%;
    animation: holographic 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes holographic {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}