/* PGN Chess Viewer Styles */

.pgn-chess-container {
    margin: 20px auto;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chess-board {
    margin: 0 auto 15px;
    border: 2px solid #333;
    border-radius: 4px;
}

.chess-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.chess-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chess-btn:hover {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.chess-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chess-info {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: white;
    border-radius: 4px;
    font-family: 'Arial', sans-serif;
}

.move-display {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.current-move {
    color: #4a90e2;
    font-weight: normal;
    margin-left: 10px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 600px) {
    .pgn-chess-container {
        padding: 10px;
    }
    
    .chess-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .chess-controls {
        gap: 5px;
    }
}

/* Verbesserte Sichtbarkeit für kleine Bildschirme */
@media (max-width: 400px) {
    .chess-btn {
        flex: 1 1 45%;
        min-width: 80px;
    }
}

/* Animation für Zugwechsel */
.chess-board img {
    transition: all 0.2s ease;
}

/* Highlight für aktive Steuerung */
.chess-btn:focus {
    outline: 2px solid #357abd;
    outline-offset: 2px;
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .pgn-chess-container {
        background: #2a2a2a;
    }
    
    .chess-info {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .move-display {
        color: #e0e0e0;
    }
}
