/**
 * Estilos públicos para el plugin MVP Most Value Player
 *
 * @package    MVP_Most_Value_Player
 * @subpackage MVP_Most_Value_Player/public/css
 */

/* Contenedor principal del reproductor */
.mvp-player-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    position: relative;
}

/* Reproductor principal */
.mvp-player {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Sección del reproductor principal */
.mvp-player-main {
    padding: 20px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border-bottom: 1px solid #ddd;
}

/* Cabecera del reproductor */
.mvp-player-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

/* Portada actual */
.mvp-current-cover {
    width: 120px;
    height: 120px;
    margin-right: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.mvp-current-song-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mvp-current-song-cover:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* Información de la canción actual */
.mvp-current-info {
    flex: 1;
    min-width: 200px;
    padding: 10px 0;
}

.mvp-current-song-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mvp-current-song-artist {
    font-size: 1.2rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.mvp-current-song-album {
    font-size: 1rem;
    opacity: 0.8;
}

/* Controles del reproductor */
.mvp-player-controls {
    width: 100%;
}

/* Barra de progreso */
.mvp-progress-container {
    margin-bottom: 15px;
}

.mvp-progress-bar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
}

.mvp-progress-current {
    height: 100%;
    background: linear-gradient(90deg, #1DB954, #1ED760);
    width: 0%;
    border-radius: 3px;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.1s linear;
}

.mvp-time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Botones de control */
.mvp-control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.mvp-control-buttons button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    margin: 0 10px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mvp-control-buttons button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.mvp-play-btn {
    background-color: rgba(255, 255, 255, 0.2) !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 1.4rem !important;
}

.mvp-play-btn:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

.mvp-loop-btn.active, .mvp-shuffle-btn.active {
    color: #1DB954;
}

/* Control de volumen */
.mvp-volume-container {
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
}

.mvp-volume-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    margin-right: 10px;
}

.mvp-volume-slider {
    width: 100px;
    position: relative;
}

.mvp-volume-bar {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mvp-volume-current {
    height: 100%;
    background-color: #1DB954;
    width: 80%;
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
}

/* Lista de canciones */
.mvp-songs-container {
    padding: 20px;
    background-color: #fff;
    max-height: 600px;
    overflow-y: auto;
}

.mvp-songs-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Grid de tarjetas de canciones */
.mvp-songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Tarjeta de canción */
.mvp-song-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.mvp-song-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.mvp-song-card.active {
    border: 2px solid #1DB954;
}

/* Portada de la tarjeta */
.mvp-song-card-cover {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.mvp-song-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mvp-song-card:hover .mvp-song-cover-img {
    transform: scale(1.05);
}

/* Botón de reproducción superpuesto en la portada */
.mvp-song-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mvp-song-card:hover .mvp-song-play-overlay {
    opacity: 1;
}

.mvp-song-play-btn {
    background-color: rgba(29, 185, 84, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.mvp-song-play-btn:hover {
    background-color: #1DB954;
    transform: scale(1.1);
}

/* Indicador "ON FIRE" */
.mvp-song-on-fire {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 59, 48, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mvp-song-on-fire i {
    margin-right: 5px;
}

/* Contenido de la tarjeta */
.mvp-song-card-content {
    padding: 15px;
}

.mvp-song-card-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mvp-song-card-artist {
    color: #666;
    margin-bottom: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mvp-song-card-album {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Contadores */
.mvp-song-card-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #666;
}

.mvp-song-play-count, .mvp-song-vote-count {
    display: flex;
    align-items: center;
}

.mvp-song-play-count i, .mvp-song-vote-count i {
    margin-right: 5px;
    font-size: 0.9rem;
}

/* Acciones de la tarjeta */
.mvp-song-card-actions {
    display: flex;
    justify-content: space-around;
    padding: 10px 15px;
    border-top: 1px solid #f0f0f0;
    background-color: #f9f9f9;
}

.mvp-song-card-actions button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mvp-song-card-actions button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.mvp-song-vote-btn.voted i, .mvp-song-fav-btn.favorited i {
    color: #ff3b30;
}

/* Modales */
.mvp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mvp-modal.mvp-modal-active {
    opacity: 1;
    visibility: visible;
}

.mvp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.mvp-modal-container {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 10000;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.mvp-modal.mvp-modal-active .mvp-modal-container {
    transform: translateY(0);
}

.mvp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.mvp-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}

.mvp-modal-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mvp-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.mvp-modal-content {
    padding: 20px;
}

/* Modal de información de canción */
.mvp-song-info-modal {
    display: flex;
    flex-direction: column;
}

.mvp-song-info-header {
    display: flex;
    margin-bottom: 20px;
}

.mvp-song-info-cover {
    width: 120px;
    height: 120px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 20px;
}

.mvp-song-info-header-details {
    flex: 1;
}

.mvp-song-info-header-details h2 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.mvp-song-info-artist {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #666;
}

.mvp-song-info-album {
    font-size: 0.9rem;
    color: #888;
}

.mvp-song-info-description {
    margin-bottom: 20px;
    line-height: 1.5;
    color: #555;
}

.mvp-song-info-details p {
    margin: 5px 0;
    color: #666;
}

/* Modal de compartir */
.mvp-share-options {
    display: flex;
    flex-direction: column;
}

.mvp-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.mvp-share-button {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.mvp-share-button i {
    margin-right: 8px;
}

.mvp-share-facebook {
    background-color: #3b5998;
}

.mvp-share-twitter {
    background-color: #1da1f2;
}

.mvp-share-whatsapp {
    background-color: #25d366;
}

.mvp-share-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.mvp-share-link-container {
    margin-top: 15px;
}

.mvp-share-link-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.mvp-share-link-input {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 0.9rem;
    color: #666;
}

.mvp-copy-link-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.mvp-copy-link-btn:hover {
    background-color: #e0e0e0;
}

.mvp-copy-link-btn i {
    margin-right: 5px;
}

/* Mensajes */
.mvp-messages-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    z-index: 10000;
}

.mvp-message {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    background-color: white;
}

.mvp-message.mvp-message-active {
    transform: translateX(0);
}

.mvp-message-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.mvp-message-success .mvp-message-icon {
    color: #28a745;
}

.mvp-message-error .mvp-message-icon {
    color: #dc3545;
}

.mvp-message-warning .mvp-message-icon {
    color: #ffc107;
}

.mvp-message-info .mvp-message-icon {
    color: #17a2b8;
}

.mvp-message-content {
    flex: 1;
    font-size: 0.9rem;
}

.mvp-message-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .mvp-player-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .mvp-current-cover {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .mvp-songs-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .mvp-control-buttons button {
        margin: 0 5px;
    }
}

@media (max-width: 480px) {
    .mvp-songs-grid {
        grid-template-columns: 1fr;
    }
    
    .mvp-song-info-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .mvp-song-info-cover {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .mvp-share-buttons {
        flex-direction: column;
    }
}

/* Estado de reproducción */
.mvp-is-playing .mvp-play-btn i {
    content: "\f04c"; /* Icono de pausa */
}

/* Animaciones */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.mvp-song-on-fire {
    animation: pulse 1.5s infinite;
}
