/* ================================================
 * HEADS-UP CALCULATOR - SPECIFIC STYLES
 * ================================================ */

/* Board Cards */
.board-slots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.board-slot {
    width: 70px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    position: relative;
}

.board-slot:hover:not(.disabled) {
    border-color: var(--poker-green);
    background: rgba(13, 94, 58, 0.2);
    transform: translateY(-3px);
}

.board-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
}

.board-slot.disabled .slot-placeholder {
    color: rgba(255,255,255,0.2);
}

.board-slot.filled {
    border-style: solid;
    border-color: var(--poker-green);
    background: rgba(13, 94, 58, 0.3);
}

.board-slot.filled.disabled {
    opacity: 1;
}

.board-slot .slot-placeholder {
    color: rgba(255,255,255,0.4);
    font-size: 2rem;
}

.board-slot .card-rank {
    font-size: 1.5rem;
    font-weight: 700;
}

.board-slot .card-suit {
    font-size: 1.3rem;
    position: absolute;
    bottom: 8px;
    right: 8px;
}

.board-slot .remove-card {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(196, 30, 58, 0.9);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.board-slot.filled:hover .remove-card {
    opacity: 1;
}

.board-separator {
    width: 2px;
    height: 60px;
    background: rgba(255,255,255,0.2);
}

.board-info {
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* Card Selector Grid */
.card-selector-grid {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 4px;
    max-width: 100%;
}

.card-selector-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border: 2px solid #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 2px;
}

.card-selector-cell:hover:not(.disabled) {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 10;
}

.card-selector-cell .rank {
    font-size: 0.9rem;
    color: #000;
}

.card-selector-cell .suit {
    font-size: 1.1rem;
}

.card-selector-cell.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #ccc;
}

.card-selector-cell.spade,
.card-selector-cell.club {
    color: #000;
}

.card-selector-cell.heart,
.card-selector-cell.diamond {
    color: #c41e3a;
}

/* Flop Selector Grid - Organized by suit (4 rows) */
.flop-selector-grid {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 6px;
    max-width: 100%;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

.flop-card-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.95);
    border: 3px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 700;
    padding: 4px;
}

.flop-card-cell:hover:not(.disabled):not(.selected) {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(0,0,0,0.5);
    z-index: 10;
}

.flop-card-cell.selected {
    background: linear-gradient(135deg, #0d5e3a, #16a34a);
    color: white !important;
    border-color: #4ade80;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.6);
}

.flop-card-cell.disabled {
    opacity: 0.2;
    cursor: not-allowed;
    background: #999;
}

.flop-card-cell .rank {
    font-size: 1.2rem;
}

.flop-card-cell .suit {
    font-size: 1.4rem;
    margin-top: -2px;
}

/* Preview of selected cards */
.selected-flop-preview {
    min-height: 60px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 2px dashed rgba(255,255,255,0.2);
}

.preview-card {
    width: 50px;
    height: 70px;
    background: white;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #0d5e3a;
    font-weight: 700;
}

.preview-card .rank {
    font-size: 1.3rem;
}

.preview-card .suit {
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .board-slot {
        width: 55px;
        height: 80px;
        font-size: 1rem;
    }

    .board-slot .card-rank {
        font-size: 1.2rem;
    }

    .board-slot .card-suit {
        font-size: 1rem;
    }

    .board-separator {
        height: 40px;
    }

    .card-selector-grid {
        grid-template-columns: repeat(13, 1fr);
        gap: 2px;
    }

    .card-selector-cell {
        font-size: 0.6rem;
    }

    .flop-selector-grid {
        gap: 3px;
        padding: 5px;
    }

    .flop-card-cell .rank {
        font-size: 0.9rem;
    }

    .flop-card-cell .suit {
        font-size: 1rem;
    }
}
