/* Comprehensive Game Cards Styling */

:root {
    --card-bg: #1a1a1a;
    --card-border: #333333;
    --accent-gold: #D4AF37;
    --accent-gold-glow: rgba(212, 175, 55, 0.5);
    --text-light: #ffffff;
    --text-secondary: #cccccc;
    
    /* Category Colors */
    --slots-primary: #006400;
    --slots-secondary: #003300;
    --slots-accent: #00ff00;
    
    --table-primary: #8B0000;
    --table-secondary: #330000;
    --table-accent: #FFD700;
    
    --poker-primary: #1e3c72;
    --poker-secondary: #001133;
    --poker-accent: #4A90E2;
    
    --specialty-primary: #4B0082;
    --specialty-secondary: #220044;
    --specialty-accent: #9370DB;
    
    --fast-primary: #FF8C00;
    --fast-secondary: #331100;
    --fast-accent: #FFA500;
    
    /* Shadows */
    --card-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    --card-hover-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    
    /* New professional casino colors */
    --casino-dark: #0a0a0a;
    --casino-darker: #000000;
    --casino-gold: #D4AF37;
    --casino-gold-light: #F8D96D;
    --casino-red: #8B0000;
    --casino-green: #006400;
    --casino-blue: #1e3c72;
    --casino-purple: #4B0082;
    --casino-orange: #FF8C00;
    
    /* Realistic textures and materials */
    --card-material: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    --card-metallic: linear-gradient(135deg, #D4AF37, #b8860b, #D4AF37);
    --card-wood: linear-gradient(135deg, #8B4513, #A0522D, #8B4513);
    --card-leather: linear-gradient(135deg, #5D4037, #4E342E, #5D4037);
    --card-glass: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(248, 217, 109, 0.1), rgba(212, 175, 55, 0.3));
    
    /* Animation timing */
    --animation-speed-fast: 0.3s;
    --animation-speed-normal: 0.5s;
    --animation-speed-slow: 0.8s;
}

/* Game Card Container */
.game-card-comprehensive {
    transition: all var(--animation-speed-normal) cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--card-border);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    position: relative;
    height: 100%;
    background: var(--card-material);
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: cardEntrance var(--animation-speed-slow) ease-out;
    cursor: pointer;
    backdrop-filter: blur(5px);
    /* Realistic card texture */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.1) 0%, transparent 20%);
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateY(10deg) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateY(0) scale(1);
    }
}

.game-card-comprehensive:hover {
    transform: translateY(-12px) scale(1.03) rotateY(5deg);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--accent-gold);
    z-index: 10;
    /* Enhanced hover effect */
    filter: brightness(1.1) saturate(1.2);
}

/* Card Ribbon for New/Promoted Games */
.card-ribbon {
    position: absolute;
    top: 15px;
    right: -25px;
    background: linear-gradient(45deg, #ff0000, #ff6a00);
    color: white;
    padding: 5px 30px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(45deg);
    z-index: 20;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Card Image Area */
.card-image-wrapper {
    height: 180px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--accent-gold);
    transition: all var(--animation-speed-fast) ease;
    background-size: cover;
    background-position: center;
    /* Metallic shine effect */
    background-image: 
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.1) 0%, 
            transparent 30%, 
            rgba(0, 0, 0, 0.2) 100%);
}

.game-card-comprehensive:hover .card-image-wrapper {
    border-bottom: 3px solid #f8d96d;
}

.card-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.card-image-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.game-placeholder-img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: all var(--animation-speed-normal) ease;
    /* Realistic material effect */
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5)) brightness(1.05);
}

.game-card-comprehensive:hover .game-placeholder-img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 10px 25px rgba(212, 175, 55, 0.7)) brightness(1.2) contrast(1.1);
    /* Glow effect on hover */
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* Category-based styling */
.game-card-comprehensive[data-game-type="slots"] .card-image-wrapper {
    background: linear-gradient(135deg, var(--slots-primary), var(--slots-secondary));
}

.game-card-comprehensive[data-game-type="table"] .card-image-wrapper {
    background: linear-gradient(135deg, var(--table-primary), var(--table-secondary));
}

.game-card-comprehensive[data-game-type="poker"] .card-image-wrapper {
    background: linear-gradient(135deg, var(--poker-primary), var(--poker-secondary));
}

.game-card-comprehensive[data-game-type="specialty"] .card-image-wrapper {
    background: linear-gradient(135deg, var(--specialty-primary), var(--specialty-secondary));
}

.game-card-comprehensive[data-game-type="fast"] .card-image-wrapper {
    background: linear-gradient(135deg, var(--fast-primary), var(--fast-secondary));
}

/* Game Icon Overlay */
.game-icon-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    z-index: 3;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    }
    50% {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.9), 0 0 30px rgba(255, 255, 255, 0.9);
    }
    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    }
}

@keyframes buttonPulse {
    0% {
        transform: translateY(-3px) scale(1);
        box-shadow: 0 10px 25px rgba(212, 175, 55, 0.6),
            inset 0 3px 3px rgba(255, 255, 255, 0.6),
            inset 0 -3px 3px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 12px 30px rgba(212, 175, 55, 0.8),
            inset 0 4px 4px rgba(255, 255, 255, 0.8),
            inset 0 -4px 4px rgba(0, 0, 0, 0.4);
    }
}

/* Card Body */
.card-body-comprehensive {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100% - 180px);
    /* Leather-like texture */
    background-image: 
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 11px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(0, 0, 0, 0.1) 0px,
            rgba(0, 0, 0, 0.1) 1px,
            transparent 1px,
            transparent 11px
        );
}

.card-body-comprehensive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* Game Title */
.game-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    flex-grow: 0;
    /* Embossed effect */
    text-shadow: 
        0 1px 0 #ccc, 
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(0,0,0,.2),
        0 5px 10px rgba(0,0,0,.25),
        0 10px 10px rgba(0,0,0,.2),
        0 20px 20px rgba(0,0,0,.15);
}

.game-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* Game Stats */
.game-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-grow: 0;
}

.stat-item-small {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
}

.stat-label-small {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Game Description */
.game-description-comprehensive {
    font-style: italic;
    opacity: 0.9;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid rgba(212, 175, 55, 0.1);
    font-size: 0.85rem;
    flex-grow: 1;
    /* Glass-like effect */
    backdrop-filter: blur(5px);
    box-shadow: 
        inset 0 0 10px rgba(212, 175, 55, 0.1),
        0 2px 5px rgba(0, 0, 0, 0.2);
    /* Subtle animation */
    transition: all var(--animation-speed-fast) ease;
    /* Realistic texture */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.1) 0%, transparent 20%);
}

/* Action Button */
.game-action-button {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    width: 100%;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all var(--animation-speed-fast) ease;
    position: relative;
    overflow: hidden;
    border: none;
    text-transform: uppercase;
    margin-top: auto;
    flex-grow: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* Metallic button effect */
    background: var(--card-metallic);
    /* 3D effect */
    transform: translateY(0);
    /* Realistic metallic texture */
    background-image: 
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.2) 0%, 
            transparent 30%, 
            rgba(0, 0, 0, 0.3) 100%);
}

.game-action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.6s;
    /* Shine effect */
    filter: blur(5px);
}

.game-action-button:hover::before {
    left: 100%;
    /* Enhanced shine effect */
    filter: blur(3px);
}

.game-action-button.play-now {
    background: linear-gradient(45deg, var(--accent-gold), #f8d96d);
    color: #000;
    /* Pressed effect */
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 2px 2px rgba(255, 255, 255, 0.5),
        inset 0 -2px 2px rgba(0, 0, 0, 0.2);
}

.game-action-button.play-now:hover {
    background: linear-gradient(45deg, #f8d96d, var(--accent-gold));
    transform: translateY(-3px);
    /* Enhanced hover effect */
    box-shadow: 
        0 10px 25px rgba(212, 175, 55, 0.6),
        inset 0 3px 3px rgba(255, 255, 255, 0.6),
        inset 0 -3px 3px rgba(0, 0, 0, 0.3);
    /* Pulse effect on hover */
    animation: buttonPulse 1.5s infinite alternate;
}

.game-action-button.login-required {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.game-action-button.login-required:hover {
    background: linear-gradient(45deg, #495057, #6c757d);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.5);
    /* Pulse effect on hover */
    animation: buttonPulse 1.5s infinite alternate;
}

/* Game Rating */
.game-rating {
    display: flex;
    justify-content: center;
    margin: 10px 0;
    flex-grow: 0;
}

.rating-star {
    color: #ffc107;
    font-size: 0.9rem;
    margin: 0 1px;
}

.rating-star.empty {
    color: #495057;
}

.rating-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-image-wrapper {
        height: 150px;
    }
    
    .game-placeholder-img {
        max-width: 80%;
        max-height: 80%;
    }
    
    .game-title {
        font-size: 1.1rem;
    }
    
    .card-body-comprehensive {
        padding: 1.2rem;
    }
}

@media (max-width: 576px) {
    .card-image-wrapper {
        height: 130px;
    }
    
    .game-placeholder-img {
        max-width: 75%;
        max-height: 75%;
    }
    
    .game-title {
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 0.9rem;
    }
    
    .game-action-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 1200px) {
    .card-image-wrapper {
        height: 200px;
    }
    
    .game-placeholder-img {
        max-width: 90%;
        max-height: 90%;
    }
    
    .game-title {
        font-size: 1.3rem;
    }
}

/* Professional casino card enhancements */
.game-card-comprehensive {
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Realistic card edge */
    border-image: linear-gradient(135deg, #D4AF37, #b8860b, #D4AF37) 1;
    /* Subtle texture */
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.08) 0%, transparent 15%),
        radial-gradient(circle at 85% 75%, rgba(0, 0, 0, 0.15) 0%, transparent 15%);
}

.game-card-comprehensive:hover {
    transform: translateY(-15px) scale(1.05) rotateY(8deg);
    border-color: var(--casino-gold);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
    /* Enhanced 3D effect */
    filter: brightness(1.15) saturate(1.25) drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
}

.card-image-wrapper {
    border-bottom: 4px solid var(--casino-gold);
    position: relative;
    overflow: hidden;
    /* Beveled edge effect */
    box-shadow: 
        inset 0 2px 2px rgba(255, 255, 255, 0.1),
        inset 0 -2px 2px rgba(0, 0, 0, 0.2);
}

.card-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card-comprehensive:hover .card-image-wrapper::after {
    opacity: 1;
}

.game-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--casino-gold-light);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

.game-description-comprehensive {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.game-action-button {
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    /* Physical button effect */
    border: 2px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.game-action-button.play-now {
    background: 
        linear-gradient(45deg, var(--casino-gold), var(--casino-gold-light)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.1));
    color: var(--casino-darker);
    font-weight: 800;
    /* Chrome-like finish */
    background-blend-mode: overlay;
}

.game-action-button.play-now:hover {
    background: 
        linear-gradient(45deg, var(--casino-gold-light), var(--casino-gold)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(0, 0, 0, 0.15));
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
    /* Enhanced chrome effect */
    background-blend-mode: overlay;
}

.stat-value {
    color: var(--casino-gold);
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.rating-star {
    text-shadow: 0 0 3px rgba(255, 193, 7, 0.5);
}