/**
 * Sudoku Game Styles - Desktop
 */

.sudoku-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.sudoku-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(9, 1fr);
    gap: 0;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    background: #fff;
    border: 3px solid #333;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sudoku-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    min-height: 0;
    aspect-ratio: 1;
}

.sudoku-cell:hover {
    background: #e9ecef;
    transform: scale(1.05);
    z-index: 5;
}

.sudoku-cell.selected {
    background: #b3d9ff !important;
    z-index: 10;
    box-shadow: inset 0 0 0 2px #0066cc;
}

.sudoku-cell.given {
    color: #000;
    font-weight: 700;
    background: #f0f0f0;
}

.sudoku-cell.user-input {
    color: #0066cc;
}

.sudoku-cell.conflict {
    background: #ffcccc !important;
    color: #cc0000 !important;
}

/* Thick borders for 3x3 boxes */
.sudoku-cell.border-top-thick {
    border-top: 3px solid #333;
}

.sudoku-cell.border-left-thick {
    border-left: 3px solid #333;
}

.sudoku-cell.border-bottom-thick {
    border-bottom: 3px solid #333;
}

.sudoku-cell.border-right-thick {
    border-right: 3px solid #333;
}

/* Number Pad */
.number-pad {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.number-pad-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.number-btn {
    min-width: 50px;
    height: 50px;
    font-size: 20px;
    font-weight: 600;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-btn:hover {
    background: #e9ecef;
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.number-btn:active {
    transform: translateY(0);
}

.number-btn.btn-clear {
    background: #ffc107;
    color: #000;
    border-color: #ffc107;
}

.number-btn.btn-clear:hover {
    background: #ffb300;
    border-color: #ffb300;
}

.number-btn.btn-hint {
    background: #17a2b8;
    color: #fff;
    border-color: #17a2b8;
}

.number-btn.btn-hint:hover {
    background: #138496;
    border-color: #138496;
}

.difficulty-btn.active {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sudoku-grid {
        max-width: 400px;
    }
    
    .sudoku-cell {
        font-size: 20px;
    }
    
    .number-btn {
        min-width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

