/* public/assets/css/cards.css */
/* Styles specifically for the playing cards */

.card-slot {
    width: 200px;
    height: 310px;
    perspective: 1000px;
}

.playing-card {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 0px;
    /* Zero border-radius for modern luxury look */
    transform-style: preserve-3d;
    transition: transform 0.5s ease-out;
    /* Light touch transition */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* Back of the card */
.playing-card.back {
    background: var(--color-brand-charcoal);
    border: 3px solid var(--color-brand-white);
}

.playing-card.back::before {
    content: "CARRDZ";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary-gold);
    letter-spacing: 5px;
    opacity: 0.8;
}

/* Front of the card */
.playing-card.front {
    background: var(--color-brand-white);
    border: 3px solid var(--color-brand-black);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--color-brand-black);
    border-radius: 0px;
}

/* Card Image Placeholder */
.card-image {
    height: 150px;
    background: #ccc;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--color-brand-black);
    position: relative;
}

.card-group-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-brand-white);
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

/* Card Identity Bar */
.card-identity-bar {
    background: var(--color-brand-black);
    color: var(--color-brand-white);
    padding: 0.5rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.card-brand {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--color-text-muted);
}

/* Card Stats */
.card-stats {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    background: var(--color-brand-white);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0.8rem;
    transition: background 0.2s;
}

/* Alternating rows for strict clean table look */
.stat-row:nth-child(even) {
    background: var(--color-brand-light-grey);
}

.stat-row:hover {
    background: rgba(0, 0, 0, 0.05);
}

.stat-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: var(--color-brand-dark-grey);
}

.stat-value {
    font-family: var(--font-ui);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--color-brand-black);
}

/* The 4-card group indicator at bottom */
.card-footer {
    display: flex;
    justify-content: space-around;
    padding: 0.4rem;
    background: var(--color-brand-charcoal);
    color: var(--color-text-muted);
    font-size: 0.7rem;
    font-weight: bold;
    border-top: 2px solid var(--color-brand-black);
}

.group-indicator {
    padding: 0.1rem 0.4rem;
}

.group-indicator.active {
    color: var(--color-brand-white);
    background: rgba(255, 255, 255, 0.2);
}

/* Battle Field Layout */
.battlefield {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    margin: 2rem 0;
}

.vs-badge {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-brand-white);
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.9);
    animation: none;
    /* Removed pulse for more premium static feel */
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.game-hud {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-ui);
    font-weight: 700;
    color: var(--color-brand-white);
    background: transparent;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    border-radius: 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Result Overlay Message */
.result-message {
    background: rgba(17, 17, 17, 0.95);
    padding: 2rem;
    border: 2px solid var(--color-brand-white);
    margin-top: 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.4s ease forwards;
}

.result-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-brand-white);
    letter-spacing: 2px;
    margin: 0 0 1rem 0;
}

.result-stats {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}