/**
 * MAESTRO SIMULATOR - CSS
 * Estilos para o wrapper do Phaser.js
 */

#maestro-container {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0;
    background: #1a1a2e;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Canvas do Phaser */
#maestro-container canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
    border-radius: 12px;
}

/* Responsividade mobile */
@media (max-width: 768px) {
    #maestro-container {
        max-width: 100%;
        margin: 1rem;
        border-radius: 8px;
    }

    #maestro-container canvas {
        border-radius: 8px;
    }
}

/* Loading state */
.maestro-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

.maestro-loading::before {
    content: '🎼 Carregando Maestro Simulator...';
    font-size: 1.2rem;
}

/* Título e instruções (opcional) */
.maestro-title {
    text-align: center;
    margin: 2rem 0 1rem;
    font-family: Arial, sans-serif;
}

.maestro-title h2 {
    font-size: 2rem;
    color: #667eea;
    margin: 0 0 0.5rem;
}

.maestro-title p {
    color: #666;
    margin: 0;
}

/* Controles (para futuras expansões) */
.maestro-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem auto;
    max-width: 800px;
}

.maestro-controls button {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.maestro-controls button:hover {
    background: #5568d3;
}

.maestro-controls button:active {
    transform: scale(0.98);
}

/* Touch indicators (mobile) */
@media (hover: none) and (pointer: coarse) {
    #maestro-container {
        -webkit-tap-highlight-color: transparent;
    }

    #maestro-container canvas {
        touch-action: none;
    }
}

/* Cursor customizado sobre batutas */
#maestro-container canvas[style*="cursor: pointer"] {
    cursor: grab !important;
}

#maestro-container canvas[style*="cursor: pointer"]:active {
    cursor: grabbing !important;
}

/* Efeito de glow no container */
#maestro-container {
    position: relative;
}

#maestro-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 14px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

/* Acessibilidade */
#maestro-container:focus-within {
    outline: 3px solid #667eea;
    outline-offset: 4px;
}

/* Print styles */
@media print {
    #maestro-container {
        display: none;
    }
}
