/* =========================================================
   SPIDER SOLITAIRE - ÖZEL MASA TASARIMI
   ========================================================= */

.game-body {
    background-color: #1e6b3c;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.game-header {
    width: 100%;
    max-width: 1100px; /* Masayı büyüttük */
    margin-top: 10px;
    background-color: #ffffff;
    border: 3px solid #000;
    border-radius: 8px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 4px 4px 0px #000;
    z-index: 10;
}

.game-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    max-width: 1350px;
    align-items: flex-start;
}

#spider-board {
    width: 1000px; /* 10 sütun sığsın diye genişlettik */
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.top-section {
    display: flex;
    justify-content: space-between;
}

#foundations {
    display: flex;
    gap: 10px; /* 8 yuva yan yana */
}

.tableau-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* KART YUVALARI */
.card-slot {
    width: 90px; /* Spider'da kartlar biraz daha ince durur sığması için */
    height: 130px;
    border-radius: 8px;
    position: relative;
    background-color: rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: inset 3px 3px 6px rgba(0,0,0,0.4);
}

.stock-slot::after {
    content: '10'; /* Spider'da destede kaç tık kaldığını gösterir genelde, şimdilik ikon koyalım */
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    font-weight: 900;
    color: rgba(0,0,0,0.2);
}

.tableau-col {
    width: 90px;
    min-height: 130px;
    position: relative;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

/* KART TASARIMI */
.playing-card {
    width: 90px;
    height: 130px;
    background-color: #1e272e;
    background-image: repeating-linear-gradient(45deg, #2f3640 20%, transparent 20%, transparent 80%, #2f3640 80%, #2f3640), 
                      repeating-linear-gradient(45deg, #2f3640 20%, #1e272e 20%, #1e272e 80%, #2f3640 80%, #2f3640);
    background-position: 0 0, 8px 8px;
    background-size: 16px 16px;
    border: 2px solid #000;
    border-radius: 8px;
    position: absolute;
    cursor: grab;
    user-select: none;
    color: transparent;
    transition: transform 0.1s ease;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.playing-card:hover { transform: translateY(-2px); }

.playing-card.face-up {
    background-image: none;
    background-color: #fff;
    color: black;
    display: block; 
}

.card-black { color: #2c3e50 !important; }

.card-corner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
}

.top-left { top: 5px; left: 6px; }
.bottom-right { bottom: 5px; right: 6px; transform: rotate(180deg); }

.card-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 38px;
}

.game-ad {
    margin-top: 0; background-color: #fff; border: 3px solid #000; box-shadow: 4px 4px 0px #000;
}