/* Card Styles - Casino GtaCity RP */

/* Card container */
.card {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 8px;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Georgia', serif;
    transition: box-shadow 0.2s ease;
    cursor: default;
    user-select: none;
}

/* Désactivé pour éviter les mouvements pendant le jeu */
/*
.card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.15),
        0 16px 32px rgba(0, 0, 0, 0.1);
}
*/

/* Effet subtil de brillance au hover */
.card:hover {
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(212, 175, 55, 0.1);
}

/* Card sizes */
.card-xs {
    width: 40px;
    height: 56px;
    font-size: 12px;
}

.card-sm {
    width: 48px;
    height: 68px;
    font-size: 14px;
}

.card-md {
    width: 64px;
    height: 90px;
    font-size: 18px;
}

.card-lg {
    width: 80px;
    height: 112px;
    font-size: 22px;
}

.card-xl {
    width: 100px;
    height: 140px;
    font-size: 28px;
}

/* Card value */
.card-value {
    font-weight: bold;
    line-height: 1;
}

/* Card suit */
.card-suit {
    line-height: 1;
}

/* Suit colors */
.card-hearts, .card-diamonds {
    color: #dc2626;
}

.card-clubs, .card-spades {
    color: #1f2937;
}

/* Corner marks */
.card-corner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.55em;
    line-height: 1;
}

.card-corner-tl {
    top: 4px;
    left: 4px;
}

.card-corner-br {
    bottom: 4px;
    right: 4px;
    transform: rotate(180deg);
}

/* Face cards pattern */
.card-face {
    background: linear-gradient(145deg, #fffef0 0%, #fff8dc 100%);
}

.card-face .card-center {
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Ace special style */
.card-ace .card-center {
    font-size: 2em;
}

/* Hidden card (back) */
.card-back {
    background: linear-gradient(145deg, #1e3a5f 0%, #0f2744 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.card-back::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(255, 255, 255, 0.03) 5px,
        rgba(255, 255, 255, 0.03) 10px
    );
}

.card-back::after {
    content: '?';
    color: rgba(255, 255, 255, 0.5);
    font-size: 2em;
    font-weight: bold;
}

/* Card animation */
@keyframes cardDeal {
    0% {
        transform: translateY(-100px) rotate(-10deg);
        opacity: 0;
    }
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
}

.card-dealt {
    animation: cardDeal 0.4s ease-out;
}

/* Card flip animation */
@keyframes cardFlip {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(90deg);
    }
    100% {
        transform: rotateY(0deg);
    }
}

.card-flip {
    animation: cardFlip 0.6s ease-in-out;
}

/* Blackjack highlight */
.card-blackjack {
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3);
}

/* Bust card */
.card-bust {
    opacity: 0.6;
    filter: grayscale(50%);
}

/* Card stack */
.card-stack {
    display: flex;
    justify-content: center;
}

.card-stack .card {
    margin-left: -20px;
}

.card-stack .card:first-child {
    margin-left: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .card-lg {
        width: 64px;
        height: 90px;
        font-size: 18px;
    }

    .card-stack .card {
        margin-left: -15px;
    }
}
