/* ESTILOS GERAIS PARA BOTÕES */
.enhanced-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-width: 120px;
    color: white !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    margin: 4px !important;
    border: none !important;
    font-family: 'Exo 2', sans-serif !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* CORES ESPECÍFICAS */
.botao-grave { background-color: #8a2be2 !important; }
.botao-volume { background-color: #ff8c00 !important; }
.botao-download { background-color: #4682b4 !important; }
.botao-play { background-color: #1db954 !important; }
.copy-button { background-color: #696969 !important; }

/* EFEITOS HOVER */
.enhanced-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

/* ANIMAÇÕES DE ÍCONES */
.enhanced-button i {
    transition: transform 0.3s ease;
}

.enhanced-button:hover i {
    transform: scale(1.1);
}

/* ESTILOS DE LOADING */
.enhanced-button.loading {
    opacity: 0.8;
    pointer-events: none;
}

.button-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* TOOLTIPS */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 8px;
    opacity: 0.9;
    pointer-events: none;
}

/* ============ RESPONSIVIDADE ============ */
@media (max-width: 768px) {
    /* Ajuste geral para containers de botões */
    .buttons-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    /* Mantém a aparência mas ajusta espaçamento */
    .enhanced-button {
        min-width: calc(50% - 12px);
        margin: 2px !important;
        padding: 10px 8px !important;
        font-size: 14px !important;
    }
    
    /* Ajusta ícones para mobile */
    .enhanced-button i {
        font-size: 14px !important;
    }
    
    /* Remove tooltips em mobile */
    [data-tooltip]:hover::after {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Ajustes para telas muito pequenas */
    .enhanced-button {
        min-width: calc(100% - 8px);
        padding: 12px 8px !important;
    }
    
    /* Layout em coluna para telas pequenas */
    .buttons-container {
        flex-direction: column;
        align-items: stretch;
    }
}

.genre-filters {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.genre-btn {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--neon-orange);
    border-radius: 50px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

.genre-btn:hover {
    background: var(--neon-orange);
    color: #000;
}

/* ===== LOADING SCREEN CYBERPUNK 2.0 ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at center, 
            rgba(10, 10, 15, 0.9), 
            rgba(5, 5, 10, 1)),
        var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Grid holográfico de fundo */
.cyber-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background:
        linear-gradient(rgba(255, 140, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 140, 0, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridMove 40s linear infinite;
    transform: rotate(15deg);
}

@keyframes gridMove {
    0% { transform: translate(-25%, -25%) rotate(15deg); }
    100% { transform: translate(-75%, -75%) rotate(15deg); }
}

/* Container principal */
.loading-content {
    position: relative;
    z-index: 2;
    text-align: center;
    perspective: 1000px;
}

/* Logo holográfico */
.holographic-logo {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    transform-style: preserve-3d;
}

.logo-line {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--neon-orange), 
        var(--neon-purple), 
        transparent);
    margin: 15px 0;
    position: relative;
    opacity: 0;
    transform: scaleX(0);
    filter: drop-shadow(0 0 5px var(--neon-orange));
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 5rem;
    text-transform: uppercase;
    background: linear-gradient(135deg, 
        var(--neon-orange) 0%, 
        var(--neon-pink) 50%, 
        var(--neon-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 5px;
    line-height: 1.2;
    text-shadow: 
        0 0 10px rgba(255, 140, 0, 0.3),
        0 0 20px rgba(181, 55, 242, 0.2);
    opacity: 0;
    transform: translateZ(50px) rotateX(90deg);
    animation: textGlitch 5s infinite alternate;
}

@keyframes textGlitch {
    0%, 100% { transform: translateZ(50px); }
    25% { transform: translateZ(50px) translateX(-5px); }
    50% { transform: translateZ(50px) translateY(5px); }
    75% { transform: translateZ(50px) rotateZ(1deg); }
}

/* Barra de progresso cyberpunk */
.cyber-progress {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 30px auto;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(255, 140, 0, 0.2);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        var(--neon-orange), 
        var(--neon-pink), 
        var(--neon-purple));
    border-radius: 4px;
    position: relative;
    transition: width 0.3s ease-out;
}

.progress-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    animation: glitchMove 2s infinite linear;
    opacity: 0.5;
}

.progress-percent {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--neon-green);
}

/* Mensagem de status */
.cyber-message {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 30px;
    height: 20px;
}

.message-cursor {
    animation: blink 1s infinite steps(1);
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Partículas flutuantes */
.particles-loading {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.particles-loading .particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--neon-orange);
    border-radius: 50%;
    animation: float 15s infinite linear;
    opacity: 0.4;
}

/* Animações de entrada */
@keyframes logoLineIn {
    0% { transform: scaleX(0); opacity: 0; }
    100% { transform: scaleX(1); opacity: 1; }
}

@keyframes logoTextIn {
    0% { transform: translateZ(50px) rotateX(90deg); opacity: 0; }
    100% { transform: translateZ(50px) rotateX(0); opacity: 1; }
}