/* D-system iPad Slideshow Styles */

.dsystem-ipad-slideshow-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.dsystem-ipad-frame {
    width: 100%;
    padding: 3% 2.2%;
    background: linear-gradient(145deg, #3a3a3c 0%, #2c2c2e 50%, #1c1c1e 100%);
    border-radius: 45px;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.5),
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    background-image: 
        linear-gradient(145deg, rgba(255,255,255,0.03) 0%, transparent 50%),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.01) 0px, transparent 2px);
}

/* Camera */
.dsystem-ipad-frame::before {
    content: '';
    position: absolute;
    top: 1.5%;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, #2a2a2c 0%, #0a0a0c 100%);
    border-radius: 50%;
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.8),
        0 0 0 2px #1a1a1c,
        0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Screen */
.dsystem-ipad-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 
        inset 0 0 0 1px rgba(0, 0, 0, 0.9),
        inset 0 2px 8px rgba(0, 0, 0, 0.6),
        inset 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Slideshow */
.dsystem-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.dsystem-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.dsystem-slide.active {
    opacity: 1;
    z-index: 2;
}

.dsystem-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Indicators */
.dsystem-slideshow-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background: rgba(30, 30, 30, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
}

.dsystem-slideshow-indicators span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dsystem-slideshow-indicators span.active {
    background: #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.6);
    transform: scale(1.2);
}

.dsystem-slideshow-indicators span:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* Home Button - Removed */

/* Power Button */
.dsystem-ipad-frame::after {
    content: '';
    position: absolute;
    top: 15%;
    right: -8px;
    width: 8px;
    height: 60px;
    background: linear-gradient(90deg, #2a2a2c 0%, #1a1a1c 100%);
    border-radius: 0 4px 4px 0;
    box-shadow: 
        inset -1px 0 2px rgba(0, 0, 0, 0.5),
        1px 0 3px rgba(0, 0, 0, 0.3);
}

/* Caption */
.dsystem-slideshow-caption {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .dsystem-ipad-frame {
        padding: 4% 3%;
        border-radius: 35px;
    }
    
    .dsystem-slideshow-indicators {
        padding: 6px 12px;
        gap: 8px;
    }
    
    .dsystem-slideshow-indicators span {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .dsystem-ipad-frame {
        padding: 5% 4%;
        border-radius: 25px;
    }
    
    .dsystem-slideshow-caption {
        font-size: 0.9rem;
    }
}
