/**
 * ============================================
 * Copyright 2026 DM Atcheh
 * Server/Aplikasi SelfBooth ShiroStudio
 * ============================================
 * DMDemo.css - Stylesheet Demo Page (ShiroStudio Theme)
 */

.dm-demo-section {
    min-height: 75vh;
    padding: 120px 0 80px !important;
}

@media (max-width: 768px) {
    .dm-demo-section {
        padding: 95px 0 60px !important;
    }
}

.dm-demo-content {
    max-width: 920px;
    margin: 2.5rem auto 0;
    background: var(--dm-bg-card, #09111e);
    border: 2px solid rgba(0, 180, 216, 0.25);
    border-radius: 6px;
    padding: 2.5rem;
    box-shadow: 4px 4px 0px rgba(0, 180, 216, 0.15);
}

.dm-demo-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #060c16;
    border: 2px solid rgba(0, 180, 216, 0.25);
    border-radius: 6px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.dm-demo-video::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 450"><rect fill="%2309111e" width="800" height="450"/><text x="50%" y="50%" text-anchor="middle" fill="%2338bdf8" font-size="24" font-family="sans-serif" font-weight="bold">SHIROSTUDIO DEMO</text></svg>') center/cover;
}

.dm-demo-video.has-video::before {
    display: none;
}

.dm-demo-video video,
.dm-demo-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 6px;
    object-fit: contain;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

.dm-demo-video.has-video .dm-demo-play {
    display: flex;
}

.dm-demo-video.has-video.dm-demo-video-playing .dm-demo-play {
    display: none;
}

.dm-demo-video.has-video .dm-demo-play {
    z-index: 3;
}

.dm-demo-video.has-video {
    cursor: pointer;
}

.dm-demo-video-loading .dm-demo-play {
    opacity: 0.6;
    pointer-events: none;
}

.dm-demo-video-loading .dm-demo-video-loading-text {
    display: block;
}

.dm-demo-video-loading-text {
    display: none;
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    background: rgba(0, 0, 0, 0.85);
    border: 1.5px solid #00b4d8;
    color: #38bdf8;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
}

.dm-demo-play {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    background: #00b4d8;
    border: 2px solid #050a12;
    box-shadow: 3px 3px 0px #38bdf8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #050a12;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dm-demo-play:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #38bdf8;
    background: #38bdf8;
}

.dm-demo-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 2rem 0;
}

.dm-demo-feature {
    text-align: center;
    padding: 1.5rem;
    background: var(--dm-bg-input, #0c1626);
    border: 1.5px solid rgba(0, 180, 216, 0.2);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dm-demo-feature:hover {
    border-color: #00b4d8;
    transform: translateY(-2px);
}

.dm-demo-feature-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 1rem;
    background: #00b4d8;
    border: 1.5px solid #050a12;
    border-radius: 4px;
    box-shadow: 2px 2px 0px #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #050a12;
    font-weight: 900;
}

.dm-demo-feature h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--dm-text-primary);
    text-transform: uppercase;
}

.dm-demo-feature p {
    color: var(--dm-text-secondary);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.5;
}

.dm-demo-cta {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1.5px solid rgba(0, 180, 216, 0.2);
}

.dm-demo-cta h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--dm-text-primary);
    text-transform: uppercase;
}

.dm-demo-cta p {
    color: var(--dm-text-secondary);
    margin-bottom: 1.5rem;
}

.dm-demo-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== Mobile View ========== */
@media (max-width: 767px) {
    .dm-demo-section { min-height: auto; padding: 1.5rem 0 2rem; }
    .dm-demo-content {
        margin: 1rem auto;
        padding: 1.25rem;
        border-radius: 6px;
        max-width: 100%;
    }
    .dm-demo-video {
        width: 100%;
        aspect-ratio: 16/9;
        min-height: 200px;
        border-radius: 6px;
        margin-bottom: 1.5rem;
    }
    .dm-demo-video.has-video .dm-demo-play {
        width: 60px;
        height: 60px;
    }
    .dm-demo-video.has-video .dm-demo-play svg { width: 24px; height: 24px; }
    .dm-demo-video-mobile-hint {
        display: block;
        position: absolute;
        bottom: 0.75rem;
        left: 0;
        right: 0;
        text-align: center;
        z-index: 3;
        font-size: 0.8rem;
        color: rgba(255,255,255,0.95);
        text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    }
    .dm-demo-video-playing .dm-demo-video-mobile-hint { display: none; }
    .dm-demo-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    .dm-demo-feature { padding: 1.25rem; }
    .dm-demo-cta {
        margin-top: 2rem;
        padding: 1.5rem 1rem;
        border-radius: 6px;
    }
    .dm-demo-cta h3 { font-size: 1.35rem; }
    .dm-demo-cta p { font-size: 0.95rem; }
    .dm-demo-content h3 { font-size: 1.35rem; }
    .dm-demo-video-fallback {
        display: block;
        margin-top: 0.75rem;
        font-size: 0.85rem;
        color: #00b4d8;
        text-decoration: none;
    }
}
@media (min-width: 768px) {
    .dm-demo-video-mobile-hint { display: none; }
    .dm-demo-video-fallback { display: none; }
}
