/* Card Styles - Shared across all card games */

/* Standard Playing Card */
.card {
    width: 80px;
    height: 112px;
    background: white;
    border: 2px solid #333;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    user-select: none;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.card.selected {
    transform: translateY(-20px);
    border-color: #4CAF50;
    border-width: 3px;
}

.card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.card.disabled:hover {
    transform: none;
}

.card.red {
    color: #d32f2f;
}

.card.black {
    color: #333;
}

.card.face-down {
    background: url('../images/back-of-card.jpg') center center;
    background-size: cover;
    background-repeat: no-repeat;
    border: 2px solid #333;
}

.card.face-down * {
    display: none;
}

.card-value {
    font-size: 16px;
    position: absolute;
    top: 4px;
    left: 6px;
}

.card-suit {
    font-size: 16px;
    position: absolute;
    bottom: 4px;
    right: 6px;
}

/* Mini Card (for displaying opponent cards) */
.mini-card {
    width: 35px;
    height: 49px;
    background: white;
    border: 1px solid #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    position: relative;
    flex-shrink: 0;
}

.mini-card.red {
    color: #d32f2f;
}

.mini-card.black {
    color: #333;
}

.mini-card .card-value {
    font-size: 8px;
    position: absolute;
    top: 2px;
    left: 3px;
}

.mini-card .card-suit {
    font-size: 8px;
    position: absolute;
    bottom: 2px;
    right: 3px;
}

/* Card Badge (for displaying card counts) */
.card-badge {
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
}

.card-badge.hand {
    background: #e3f2fd;
    color: #1976d2;
}

/* Responsive Card Sizes */
@media (max-width: 768px) {
    .card {
        width: 55px;
        height: 77px;
        font-size: 20px;
    }

    .card-value,
    .card-suit {
        font-size: 11px;
    }
}
