:root {
    --primary-bg: #f0f2f5;
    --game-start-bg: #b8e3e9;
    --score-bg: #ff99cc;
    --history-bg: #ffc266;
    --bot-bg: #4d9900;
    --control-bg: #b3d9ff;
    --board-green: #006600;
    --board-cell: #ffffff;
    --text-dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: var(--primary-bg);
    padding: 20px;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-gap: 20px;
}

/* Game Start Section */
.game-start {
    background-color: var(--game-start-bg);
    padding: 20px;
    border-radius: 15px;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-start input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.game-start button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.retro-connection {
    display: flex;
    align-items: center;
    gap: 10px;
}

.connection-icon {
    width: 20px;
    height: 20px;
    background-color: #4CAF50;
    border-radius: 50%;
}

/* Score and Stats Section */
.score-stats {
    background-color: var(--score-bg);
    padding: 20px;
    border-radius: 15px;
    grid-column: 1 / -1;
}

.score-section, .stats-section {
    margin-bottom: 15px;
}

/* Game Board */
.game-board {
    background-color: var(--board-green);
    aspect-ratio: 1;
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    grid-template-rows: repeat(15, 1fr);
    gap: 1px;
    padding: 1px;
    border-radius: 5px;
}

.board-cell {
    background-color: var(--board-cell);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
}

/* Tile Rack */
.tile-rack {
    background-color: #996633;
    height: 60px;
    border-radius: 10px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 5px;
}

.tile {
    width: 40px;
    height: 40px;
    background-color: #f4d03f;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: move;
    font-weight: bold;
    position: relative;
}

.tile .points {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.7em;
}

/* Game Controls */
.game-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.game-controls button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background-color: var(--control-bg);
    cursor: pointer;
}

.game-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.recommendation-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Bottom Sections */
.bottom-sections {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.game-history {
    background-color: var(--history-bg);
    padding: 20px;
    border-radius: 15px;
    height: 300px;
    overflow-y: auto;
}

.scrabble-bot {
    background-color: var(--bot-bg);
    padding: 20px;
    border-radius: 15px;
    color: white;
    height: 300px;
    display: flex;
    flex-direction: column;
}

#chatHistory {
    flex-grow: 1;
    overflow-y: auto;
    margin: 10px 0;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex-grow: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
}

.chat-input button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background-color: white;
    color: var(--bot-bg);
    cursor: pointer;
}

/* Special Tiles */
.double-letter {
    background-color: #b3d9ff;
}

.triple-letter {
    background-color: #3399ff;
}

.double-word {
    background-color: #ffb3b3;
}

.triple-word {
    background-color: #ff6666;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-container {
        grid-template-columns: 1fr;
    }
    
    .bottom-sections {
        grid-template-columns: 1fr;
    }
} 