/* Tile Rack */
.tile-rack {
    background-color: var(--rack-blue);
    padding: 1rem;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem auto;
    min-height: 80px;
    width: 100%;
    max-width: 600px;
}

/* Tile Styles */
.tile {
    width: 60px;
    height: 60px;
    background-color: #f8d7a4;
    border: 2px solid #8b4513;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: move;
    user-select: none;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    color: #333;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

/* Board tile style override */
.board-cell .tile {
    width: 100%;
    height: 100%;
    max-width: 40px;
    max-height: 40px;
    margin: 0;
    border: 1px solid #8b4513;
    box-shadow: none;
}

.tile:hover {
    transform: translateY(-2px);
}

.board-cell .tile:hover {
    transform: none;
}

.tile .letter {
    font-size: 1.8em;
}

.board-cell .tile .letter {
    font-size: 1.2em;
}

.tile .points {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 0.8em;
    color: #666;
}

.board-cell .tile .points {
    font-size: 0.6em;
    bottom: 1px;
    right: 2px;
}

.tile.selected {
    border-color: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.tile.dragging {
    opacity: 0.6;
    transform: scale(1.05);
}

.tile.selected-for-exchange {
    background-color: #2ecc71;
    border-color: #27ae60;
    color: white;
}

/* Tile Placeholder */
.tile-placeholder {
    width: 60px;
    height: 60px;
    border: 2px dashed #8b4513;
    border-radius: 5px;
    background-color: rgba(248, 215, 164, 0.3);
}

/* Tile Overlay for Recommendations */
.tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(244, 208, 63, 0.6);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    pointer-events: none;
    z-index: 2;
}

.tile-overlay .tile-letter {
    font-size: 1.2em;
    color: #2c3e50;
}

.tile-overlay .tile-points {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 0.8em;
    color: #2c3e50;
} 