/* =================================================================
   GAME PAGE STYLES
   Extracted from pages/game.php inline styles
   ================================================================= */

/* Game Container Layout */
.game-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-template-rows: auto 1fr;
    gap: 20px;
    height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.game-status-panel {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.hexchess-container {
    grid-row: 2;
    grid-column: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    min-height: 500px;
}

.game-sidebar {
    grid-row: 2;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Status Display */
.status-display {
    font-size: 1.2em;
    font-weight: bold;
}

.current-turn {
    color: #333;
}

.game-over-status {
    color: #d32f2f;
    font-size: 1.3em;
}

.player-color {
    display: inline-block;
    font-size: 1.5em;
    margin-left: 8px;
}

/* Player Colors */
.player-0 { color: #f44336; }
.player-1 { color: #2196f3; }
.player-2 { color: #4caf50; }
.player-3 { color: #ff9800; }
.player-4 { color: #9c27b0; }
.player-5 { color: #00bcd4; }

/* Game Info Card */
.game-info-card, .move-history-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-info-card h3, .move-history-card h3 {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: white;
}

.game-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-detail:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.detail-value {
    color: white;
    font-weight: 500;
}

/* Fog of War Indicator */
.fog-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    border-radius: 8px;
    font-size: 0.95em;
}

.fog-icon {
    font-size: 1.2em;
}

/* Move History */
.move-history {
    max-height: 300px;
    overflow-y: auto;
}

.move-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 2px 0;
    font-size: 0.9em;
}

.move-entry:hover {
    background: rgba(255, 255, 255, 0.1);
}

.move-number {
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    min-width: 25px;
}

.move-player {
    font-weight: bold;
    min-width: 30px;
}

.move-details {
    flex: 1;
    font-family: monospace;
}

.capture {
    color: #f44336;
    font-weight: bold;
}

.no-moves {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    padding: 20px;
}

/* Coordinate Debug */
.coord-debug {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 8px;
    color: #666;
    pointer-events: none;
}

/* Responsive Design - Tablet */
@media (max-width: 1200px) {
    .game-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
    }
    
    .game-sidebar {
        grid-row: 3;
        grid-column: 1;
        max-height: none;
        flex-direction: row;
        overflow-x: auto;
    }
    
    .game-info-card, .move-history-card {
        min-width: 250px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .game-container {
        padding: 10px;
        gap: 15px;
    }
    
    .game-status-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .game-sidebar {
        flex-direction: column;
    }
    
    .fog-indicator {
        text-align: center;
    }
    
    .status-display {
        font-size: 1em;
    }
    
    .game-over-status {
        font-size: 1.1em;
    }
}
