/* Aces and Kings Solitaire - Game-specific styles */

/* Game container */
.game-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Game header */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.game-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-gold);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.score {
    font-size: 1rem;
    color: var(--accent-gold);
}

/* Game board */
.game-board {
    background: var(--surface-table);
    border: 2px solid var(--table-border);
    border-radius: 12px;
    padding: 20px;
}

/* Foundation row layout */
.foundations-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 20px;
}

.foundation-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.foundation-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

/* Standard foundations layout */
.foundations {
    display: flex;
    gap: var(--card-gap);
}

.foundation {
    width: var(--card-width);
    height: var(--card-height);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background: rgba(0,0,0,0.15);
    border-radius: 8px;
    position: relative;
}

.foundation:not(:empty) {
    border-style: solid;
    border-color: var(--accent-gold);
}

/* Middle row layout */
.middle-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: flex-start;
}

/* Reserves - stacked cards */
.reserves {
    display: flex;
    gap: var(--card-gap);
}

.reserve {
    width: var(--card-width);
    min-height: 400px;
    border: 2px solid var(--table-border);
    border-radius: 8px;
    position: relative;
    overflow: visible;
}

.reserve .card {
    position: absolute;
    left: 0;
}

/* Tableau - single card columns */
.tableau {
    display: flex;
    gap: var(--card-gap);
}

.tableau-column.single-card {
    width: var(--card-width);
    height: var(--card-height);
    border: 2px dashed var(--table-border);
    border-radius: 8px;
    position: relative;
}

.tableau-column.single-card:empty {
    opacity: 0.3;
}

/* Stock and Waste */
.stock-waste {
    display: flex;
    gap: var(--card-gap);
}

.stock,
.waste {
    width: var(--card-width);
    height: var(--card-height);
    border: 2px solid var(--table-border);
    border-radius: 8px;
    position: relative;
}

.stock:empty,
.waste:empty {
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {
    .foundations-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .middle-row {
        flex-direction: column;
        align-items: center;
    }
    
    .reserve {
        min-height: 300px;
    }
}
