/* Önceki stil aynen gelsin, kırmızı kare + highlight + taş stilleri */
body { font-family: Arial, sans-serif; text-align: center; margin: 20px; }

/* Board size specific classes */
.board-7x7 {
    display: grid;
    grid-template-columns: repeat(7, 50px);
    grid-template-rows: repeat(7, 50px);
    gap: 2px;
    margin: 20px auto;
    /*width: 364px;*/
}

.board-10x10 {
    display: grid;
    grid-template-columns: repeat(10, 50px);
    grid-template-rows: repeat(10, 50px);
    gap: 2px;
    margin: 20px auto;
    /*width: 524px;*/
}

.board-15x15 {
    display: grid;
    grid-template-columns: repeat(15, 35px);
    grid-template-rows: repeat(15, 35px);
    gap: 2px;
    margin: 15px auto;
    /*width: 644px;*/
}

.board-10x20 {
    display: grid;
    grid-template-columns: repeat(10, 30px);
    grid-template-rows: repeat(20, 30px);
    gap: 2px;
    margin: 10px auto;
    /*width: 1044px;*/
}
.board-20x20 {
    display: grid;
    grid-template-columns: repeat(20, 30px);
    grid-template-rows: repeat(20, 30px);
    gap: 2px;
    margin: 10px auto;
    /*width: 1044px;*/
}
/* Kare ve taş boyutları board boyutuna göre ayarlanır */

/* 7x7 */

#board .black,
#board .white,
#board .red {
    width: 100%; height: 100%;
}

.redsonuc{
    width: 100%; height: 100%; 
}




.ablukaci {
    position:relative;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    /* margin: 7px auto; */
}
.blocked {
    opacity: 0.6;
  
   border: 3px solid yellow;
    pointer-events: none;
}

/* Üstüne çizgi çekmek istersen, pseudo-element ile */
.blocked::after {
    content: "";
    top: 50%;
    left: 0;    
    position: absolute;
    width: 100%;
    height: 3px;
    background: red;
    transform: translateY(-50%);
    pointer-events: none;
}
.square {
    width: 100%;
    height: 100%;
    border: 1px solid #999;
    background: #eee;
    cursor: pointer;
    position: relative;
    padding: 3px;
}
.board-rotate-0 {
    transform: rotate(0deg);
}
.board-rotate-90 {
    transform: rotate(90deg);
}
.board-rotate-180 {
    transform: rotate(180deg);
}
.board-rotate-270 {
    transform: rotate(270deg);
}

/* Taşlar ve içerik ters görünmesin */
.stone-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 14px;
    color: red;
    pointer-events: none;
}

.board-rotate-90 .stone-label {
        transform: translate(-50%, -50%) rotate(-90deg);

}
.board-rotate-180 .stone-label {
        transform: translate(-50%, -50%) rotate(-180deg);
}
.board-rotate-270 .stone-label {
        transform: translate(-50%, -50%) rotate(-270deg);
}

.board-rotate-90 .blocked {
    transform: rotate(-90deg);
}
.board-rotate-180 .blocked {
    transform:  rotate(-180deg);
}
.board-rotate-270 .blocked {
    transform:  rotate(-270deg) ;
}


.black-ablukaci {
    background: black; 
}


.white-ablukaci {
    background: white;
   
    border: 1px solid #999; /* default */
}


.green-ablukaci {
    background: green;
    border: 1px solid #999; /* default */
}
.blue-ablukaci {
    background: blue;
    border: 1px solid #999; /* default */
}

.red {
    background: red;
    width: 100%; height: 100%;
    border-radius: 0; /* kare */
}
.highlight {
    box-shadow: 0 0 10px 3px yellow;
}
#info {
    font-weight: bold;
}

.sira-sende #sira-bilgisi {
    color: green;
    font-weight: bold;
}

#board.flip {
    transform: rotate(180deg);
}

#board.flip .square > div {
    transform: rotate(180deg); /* taşları da aynı şekilde döndür */
}



.modal-fullscreen {
    width: 100%!important;
    height: 100%!important;
    margin: 0!important;
    padding: 0!important;
    padding-right: 0!important;
    max-width: 100%!important;
}

.modal-fullscreen .modal-content {
    height: 100vh!important;
    border: 0!important;
    border-radius: 0!important;
}
#boardModal{
    padding: 0!important;
}
.masa-card {
    /* width: 320px; */ /* Genişletildi */
    background: #1f2a38;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    color: #e1e8f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* margin: 15px; */
    padding: 10px;
    position: relative;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.masa-card h5 {
    margin-bottom: 5px;
    margin-top: 10px;
    font-weight: 700;
    font-size: 1.3rem;
    color: #66aaff;
    text-align: center;
    width: 100%;
}
.masa-info>p {
    margin:0;
    
}
.seat {
    position: absolute;
    width: 70px; /* Butonlar biraz büyütüldü */
    height: 70px;
    border-radius: 8px;
    background-color: #3b4a5a;
    border: 2px solid #66aaff;
    color: #cce6ff;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(102, 170, 255, 0.7);
    transition: background-color 0.3s, color 0.3s;
    user-select: none;
}

.seat:hover:not(.occupied) {
    background-color: #66aaff;
    color: white;
}

.seat.occupied {
    background-color: #28a745;
    border-color: #1e7e34;
    color: white;
    cursor: default;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.9);
}

.seat.top {
    top: 15px;  /* biraz aşağı çekildi */
    left: 50%;
    transform: translateX(-50%);
}

.seat.right {
    top: 50%;
    right: 15px; /* biraz içeride */
    transform: translateY(-50%);
}

.seat.bottom {
    bottom: 15px; /* biraz yukarı çekildi */
    left: 50%;
    transform: translateX(-50%);
}

.seat.left {
    top: 50%;
    left: 15px; /* biraz içeride */
    transform: translateY(-50%);
}

.masa {
    position: relative;
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Ortadaki info alanı */
.masa-info {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    transform: translate(-50%, -50%);
    text-align: center;
    /* background-color: rgba(0, 0, 0, 0.35); */
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #ffffff;
    line-height: 1.4;
    pointer-events: none; /* Butonlarla çakışmayı önler */
    z-index: 1;
    /* box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); */
}

@media (max-width: 600px) {
   
   .board-20x20 {
    grid-template-columns: repeat(20, 18px);
    grid-template-rows: repeat(20, 18px);
   }
   .board-10x20 {
    grid-template-columns: repeat(10, 35px);
    grid-template-rows: repeat(20, 35px);
   }
   .board-15x15 {
    grid-template-columns: repeat(15, 23px);
    grid-template-rows: repeat(15, 23px);
   }
.board-10x10 {
    grid-template-columns: repeat(10, 35px);
    grid-template-rows: repeat(10, 35px);
    }
   
}

.simulation-cell {
    width: 14.28%; /* 100 / 7 */
    height: 14.28%;
    border: 1px solid #eee;
    box-sizing: border-box;
    position: relative;
}

.simulation-cell .piece {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    position: absolute;
    top: 10%;
    left: 10%;
    transition: all 0.3s ease;
}

.piece.player1 { background-color: black; }
.piece.player2 { background-color: white; border: 1px solid #333; }
.piece.block   { background-color: gray; }
