/* Global CSS Variables */
:root {
    --score-red: #990000;
    --chat-green: #2E7D32;
    --rack-brown: #8B4513;
    --board-bg: #f5f5f5;
    --primary-blue: #0052cc;
    --text-dark: #333;
    --text-light: #fff;
    
    /* Additional Variables */
    --tile-yellow: #f4d03f;
    --success-green: #4CAF50;
    --warning-yellow: #ffc107;
    --error-red: #dc3545;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-shadow: rgba(0, 0, 0, 0.2);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--board-bg);
}

/* Import Component Styles */
@import url('startMenu.css');
@import url('connection.css');
@import url('scorePanel.css');
@import url('statsPanel.css');
@import url('chat.css');
@import url('tileRack.css');

/* Main Game Layout */
.game-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 2rem;
    min-height: 100vh;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 2rem;
}

.game-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.game-board {
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.right-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Results Container */
.results-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 300px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .game-main {
        grid-template-columns: 1fr 250px;
    }
}

@media (max-width: 992px) {
    .game-main {
        grid-template-columns: 1fr;
    }
    
    .right-panel {
        grid-row: 3;
    }
    
    .game-header {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .game-container {
        padding: 1rem;
    }
}