/* dPod Frontend Styles - Responsive */

:root {
    --dpod-primary: #f425af;
    --dpod-secondary: #ff4db8;
    --dpod-primary-dark: #d41b8a;
    --dpod-bg-light: #f8f5f7;
    --dpod-bg-dark: #0a0409;
}

.dpod-frontend-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom right, #2d1b3d, #1a0a24, #0a0409);
    font-family: 'Spline Sans', sans-serif;
    color: #ffffff;
    padding: 2rem 1rem;
    overflow-x: hidden;
}

.dpod-stage-glow {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(244, 37, 175, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.dpod-blur-bg {
    position: fixed;
    width: 40%;
    height: 40%;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.dpod-blur-1 {
    top: -10%;
    left: -10%;
    background: var(--dpod-primary);
    opacity: 0.1;
}

.dpod-blur-2 {
    bottom: -10%;
    right: -10%;
    background: var(--dpod-primary);
    opacity: 0.05;
}

.dpod-content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

/* Device */
.dpod-device {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 620px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%, rgba(0, 0, 0, 0.2) 100%),
        linear-gradient(to right, 
            #c91685 0%,
            #ff5bb8 8%,
            #ff8fd1 15%,
            #ffb8e6 25%,
            #ffd9f0 35%,
            #fff 50%,
            #ffd9f0 65%,
            #ffb8e6 75%,
            #ff8fd1 85%,
            #ff5bb8 92%,
            #c91685 100%
        ),
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.4), transparent 60%);
    border-radius: 3.5rem;
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        inset 0 2px 40px rgba(255, 255, 255, 0.5),
        inset 0 -2px 40px rgba(0, 0, 0, 0.3),
        inset -2px 0 20px rgba(255, 140, 200, 0.3),
        inset 2px 0 20px rgba(255, 140, 200, 0.3),
        0 0 0 1px rgba(200, 20, 130, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 15px 35px rgba(200, 20, 130, 0.4),
        0 30px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: visible;
}

.dpod-device::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 3.5rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.1) 30%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 70%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
    z-index: -1;
}

.dpod-device::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 25%;
    height: 60%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    border-radius: 50%;
    filter: blur(25px);
    pointer-events: none;
}

.dpod-device-shine {
    position: absolute;
    inset-y: 0;
    width: 3px;
    filter: blur(2px);
    opacity: 0.8;
}

.dpod-device-shine-left {
    left: 0.5rem;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.5) 20%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.5) 80%,
        rgba(255, 255, 255, 0.8) 100%
    );
}

.dpod-device-shine-right {
    right: 0.5rem;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.15) 20%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.15) 80%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

/* Screen */
.dpod-screen {
    position: relative;
    width: 100%;
    height: 260px;
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 4px solid rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 3rem;
}

.dpod-screen-view {
    display: none;
    flex-direction: column;
    height: 100%;
    background: #fff;
    color: #000;
}

.dpod-screen-view.active {
    display: flex;
}

.dpod-screen-header {
    height: 24px;
    background: linear-gradient(to bottom, #e0e0e0, #b0b0b0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
    border-bottom: 1px solid #888;
    font-size: 11px;
    font-weight: bold;
}

.dpod-screen-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.dpod-menu-list {
    width: 60%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ddd;
    background: #fff;
}

.dpod-menu-item {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 13px;
}

.dpod-menu-item:hover {
    background: #f0f0f0;
}

.dpod-menu-item.active {
    background: linear-gradient(to bottom, var(--dpod-secondary), var(--dpod-primary));
    color: #fff;
    font-weight: bold;
}

.dpod-cover-preview {
    width: 40%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.dpod-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dpod-cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}

.dpod-screen-glass {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Click Wheel */
.dpod-wheel-container {
    display: flex;
    justify-content: center;
}

.dpod-click-wheel {
    position: relative;
    width: 220px;
    height: 220px;
    background: #fdf2f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 192, 203, 0.5);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: transform 0.2s;
}

.dpod-click-wheel:active {
    transform: scale(0.95);
}

.dpod-wheel-btn {
    position: absolute;
    color: rgba(244, 37, 175, 0.8);
    cursor: pointer;
    transition: color 0.2s;
}

.dpod-wheel-btn:hover {
    color: var(--dpod-primary);
}

.dpod-wheel-menu {
    top: 1rem;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.dpod-wheel-play {
    bottom: 1rem;
}

.dpod-wheel-prev {
    left: 1rem;
}

.dpod-wheel-next {
    right: 1rem;
}

.dpod-wheel-center {
    width: 70px;
    height: 70px;
    background: linear-gradient(to bottom, #fff, #fce7f3);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 192, 203, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.dpod-wheel-center:active {
    transform: scale(0.9);
}

.dpod-wheel-center-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 192, 203, 0.3);
}

.dpod-bottom-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #4a042e;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.dpod-bottom-indicator-inner {
    width: 6px;
    height: 6px;
    background: #1a0211;
    border-radius: 50%;
    opacity: 0.8;
}

/* Info Section */
.dpod-info-section {
    margin-top: 3rem;
    text-align: center;
    padding: 0 1rem;
    max-width: 600px;
}

.dpod-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
}

.dpod-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Material Icons */
.dpod-icon {
    font-family: 'Material Symbols Outlined';
    font-size: 18px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Content Sections */
.dpod-section-header {
    height: 24px;
    background: linear-gradient(to bottom, #e0e0e0, #b0b0b0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
    border-bottom: 1px solid #888;
}

.dpod-section-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
}

.dpod-music-item,
.dpod-video-item,
.dpod-news-item,
.dpod-concert-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.2s;
}

.dpod-music-item:hover,
.dpod-video-item:hover,
.dpod-news-item:hover,
.dpod-concert-item:hover {
    background: #f5f5f5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dpod-device {
        transform: scale(0.9);
    }
}

@media (max-width: 640px) {
    .dpod-frontend-container {
        padding: 1rem 0.5rem;
    }
    
    .dpod-device {
        transform: scale(0.75);
        margin: -2rem 0;
    }
    
    .dpod-title {
        font-size: 1.25rem;
    }
    
    .dpod-description {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .dpod-device {
        transform: scale(0.65);
        margin: -3rem 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dpod-fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Dynamic color support */
[data-primary-color] .dpod-device {
    background: linear-gradient(to right, 
        color-mix(in srgb, var(--dpod-primary) 80%, #000) 0%, 
        color-mix(in srgb, var(--dpod-primary) 120%, #fff) 15%, 
        var(--dpod-primary) 50%, 
        color-mix(in srgb, var(--dpod-primary) 120%, #fff) 85%, 
        color-mix(in srgb, var(--dpod-primary) 80%, #000) 100%
    );
}

[data-primary-color] .dpod-menu-item.active {
    background: linear-gradient(to bottom, var(--dpod-primary), color-mix(in srgb, var(--dpod-primary) 90%, #000));
}

[data-primary-color] .dpod-wheel-btn {
    color: color-mix(in srgb, var(--dpod-primary) 80%, transparent);
}

[data-primary-color] .dpod-wheel-btn:hover {
    color: var(--dpod-primary);
}

/* Reproductor embebido en el iPod */
.dpod-player-container {
    flex: 1;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dpod-player-container iframe {
    max-width: 100%;
    max-height: 100%;
}

.dpod-section-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
}

/* Mejorar apariencia de items */
.dpod-music-item,
.dpod-video-item,
.dpod-news-item,
.dpod-concert-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
    transition: background 0.2s;
}

.dpod-music-item:hover,
.dpod-video-item:hover,
.dpod-news-item:hover,
.dpod-concert-item:hover {
    background: #f5f5f5;
}
