/* Grid and Cell Styling */
#board {
    user-select: none;
}

.cell {
    background-color: #e2e8f0; /* bg-slate-200 equivalent */
    border-radius: 4px; /* rounded-sm */
    transition: background-color 0.2s, transform 0.2s;
}

.cell.filled {
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cell.preview {
    background-color: rgba(59, 130, 246, 0.4) !important; /* Semi-transparent blue */
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.cell.invalid-preview {
    background-color: rgba(239, 68, 68, 0.4) !important; /* Semi-transparent red */
}

/* Animations */
@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes clearOut {
    0% { transform: scale(1); opacity: 1; filter: brightness(1.5); }
    100% { transform: scale(0); opacity: 0; }
}

.animate-pop {
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-clear {
    animation: clearOut 0.5s ease-in-out forwards;
}

/* Shape Picker styling */
.shape-preview {
    display: grid;
    gap: 2px;
    cursor: grab;
    touch-action: none;
}

.shape-preview:active {
    cursor: grabbing;
}

.shape-preview:hover {
    transform: scale(1.1);
}

.shape-block {
    width: 25px;
    height: 25px;
    border-radius: 4px;
}

.dragging .shape-block {
    width: var(--cell-size, 30px);
    height: var(--cell-size, 30px);
}

/* Specific shape colors */
.color-1 { background-color: #3b82f6; } /* Blue */
.color-2 { background-color: #ef4444; } /* Red */
.color-3 { background-color: #22c55e; } /* Green */
.color-4 { background-color: #eab308; } /* Yellow */
.color-5 { background-color: #a855f7; } /* Purple */
.color-6 { background-color: #f97316; } /* Orange */
.color-7 { background-color: #06b6d4; } /* Cyan */
.color-8 { background-color: #ec4899; } /* Pink */

/* Scale up for Game Over */
.scale-up {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Responsive adjustments */
@media (max-width: 400px) {
    .shape-block {
        width: 16px;
        height: 16px;
    }
}
