/*
Theme Name: DENNA dPod V2 Fixed
Theme URI: https://denna.es
Author: DENNA
Author URI: https://denna.es
Description: Tema optimizado para DENNA dPod V2 - Solo muestra el iPod, más grande en móvil, con scroll en listas y navegación con botones funcionando correctamente.
Version: 2.1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: denna-dpod-v2-fixed
Tags: music, artist, interactive, full-width, one-column, responsive

DENNA dPod V2 Fixed - Optimizado para pantalla completa móvil
*/

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Spline Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #ffffff;
    background: linear-gradient(to bottom right, #2d1b3d, #1a0a24, #0a0409);
    min-height: 100vh;
    overflow-x: hidden;
}

/* WordPress Core */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
}

/* Site Structure */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header - Minimal */
.site-header {
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.site-branding {
    text-align: center;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, #f425af, #ff4db8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main Content - SOLO DPOD */
.denna-main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: 80px;
}

/* dPod Fullscreen Container */
.denna-dpod-fullscreen {
    width: 100%;
    height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Hacer el iPod MÁS GRANDE en móvil */
.dpod-frontend-container {
    width: 100%;
    max-width: 500px !important;
    margin: 0 auto;
}

/* En móvil - iPod casi a pantalla completa */
@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 1rem;
    }
    
    .denna-main-content {
        margin-top: 60px;
    }
    
    .denna-dpod-fullscreen {
        height: calc(100vh - 120px);
        padding: 0.5rem;
    }
    
    .dpod-frontend-container {
        max-width: 100% !important;
        transform: scale(1.1);
    }
    
    /* iPod device más grande */
    .dpod-device {
        max-width: 400px !important;
        height: auto !important;
        min-height: 650px;
    }
}

@media (max-width: 480px) {
    .dpod-frontend-container {
        transform: scale(1.05);
    }
    
    .dpod-device {
        max-width: 380px !important;
    }
}

/* Footer - Minimal */
.site-footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.footer-info a {
    color: #f425af;
    text-decoration: none;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
    font-size: 1.25rem;
}

.footer-social a:hover {
    color: #f425af;
}

/* Ocultar navegación en este tema minimalista */
.main-navigation {
    display: none;
}

/* FIXES ESPECÍFICOS PARA EL PLUGIN */

/* Fix: Scroll en listas cuando hay más de 3 elementos */
.dpod-section-content {
    overflow-y: auto !important;
    max-height: 220px !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(244, 37, 175, 0.5) rgba(0, 0, 0, 0.2);
}

.dpod-section-content::-webkit-scrollbar {
    width: 4px;
}

.dpod-section-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.dpod-section-content::-webkit-scrollbar-thumb {
    background: rgba(244, 37, 175, 0.5);
    border-radius: 2px;
}

.dpod-section-content::-webkit-scrollbar-thumb:hover {
    background: rgba(244, 37, 175, 0.8);
}

/* Asegurar que los items sean clickeables */
.dpod-music-item,
.dpod-video-item,
.dpod-photo-item,
.dpod-news-item,
.dpod-concert-item {
    cursor: pointer !important;
    user-select: none;
}

/* Mejorar visibilidad de items seleccionados */
.dpod-menu-item.active {
    background: linear-gradient(to bottom, #ff4db8, #f425af) !important;
}

/* Fix para reproductores embebidos */
.dpod-player-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dpod-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}
