/* Infinite Reversi V2 - Minimal Frontend Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
}

h2 {
    color: #34495e;
    margin-bottom: 15px;
    font-size: 1.4em;
}

h3 {
    color: #7f8c8d;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.game-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.status-section {
    grid-column: 1 / -1;
    padding: 20px;
    background-color: #ecf0f1;
    border-radius: 5px;
}

.scores-section,
.cooldown-section {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

#game-status {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

.score,
.cooldown {
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

#score-b,
#cooldown-b {
    color: #2c3e50;
    font-weight: bold;
}

#score-w,
#cooldown-w {
    color: #7f8c8d;
    font-weight: bold;
}

.websocket-section {
    padding: 20px;
    background-color: #e8f5e8;
    border-radius: 5px;
    border-left: 4px solid #27ae60;
}

#ws-status {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

#ws-status.connected {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#ws-status.disconnected {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#ws-status.connecting {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

#ws-messages {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    min-height: 60px;
    font-style: italic;
    color: #6c757d;
    text-align: center;
}

/* Responsive design */
@media (max-width: 600px) {
    .game-info {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    body {
        padding: 10px;
    }
}