/* Connect Four Game Board Styles */

.game-board {
    display: inline-block;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.column-buttons {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.column-btn {
    width: 50px;
    height: 40px;
    font-weight: bold;
    border-radius: 8px;
}

.board {
    display: inline-block;
    background: #1a4d8f;
    padding: 15px;
    border-radius: 12px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.board-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.board-row:last-child {
    margin-bottom: 0;
}

.cell {
    width: 50px;
    height: 50px;
    background: #0d2847;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
    position: relative;
}

.piece {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cell-empty .piece {
    background: transparent;
}

.cell-p1 .piece {
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #c92a2a);
    box-shadow: 0 2px 8px rgba(201, 42, 42, 0.6);
}

.cell-p2 .piece {
    background: radial-gradient(circle at 30% 30%, #ffd43b, #f59f00);
    box-shadow: 0 2px 8px rgba(245, 159, 0, 0.6);
}

.cell-winning .piece {
    animation: pulse 1s infinite;
}

.cell-animating .piece {
    animation: none;
    opacity: 0.8;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 16px rgba(255, 255, 255, 0.9);
    }
}

/* Cylinder board style indicator */
.board.cylinder::before {
    content: '◀ Cylinder Mode ▶';
    display: block;
    text-align: center;
    color: #ffd43b;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
    .cell {
        width: 40px;
        height: 40px;
    }

    .piece {
        width: 34px;
        height: 34px;
    }

    .column-btn {
        width: 40px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .cell {
        width: 35px;
        height: 35px;
    }

    .piece {
        width: 29px;
        height: 29px;
    }

    .column-btn {
        width: 35px;
        height: 30px;
        font-size: 12px;
    }

    .board-row {
        gap: 5px;
    }

    .column-buttons {
        gap: 3px;
    }
}
