/* ==========================================================================
   DashboardFox Demo Page Styles
   Page-specific styles for demo.html
   ========================================================================== */

/* --------------------------------------------------------------------------
   Video Section
   -------------------------------------------------------------------------- */
.video-section { 
    padding: 60px 24px 40px; 
}

.video-container { 
    max-width: 900px; 
    margin: 0 auto; 
}

.video-wrapper { 
    background: var(--color-text); 
    border-radius: var(--radius-xl); 
    box-shadow: var(--shadow-lg); 
    margin-bottom: 32px; 
    overflow: hidden;
    position: relative;
}

.video-embed { 
    display: block;
    width: 100%;
}

.video-placeholder { 
    background: linear-gradient(135deg, var(--color-text) 0%, #1a2836 100%); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    color: white; 
}

.video-placeholder-icon { 
    width: 80px; 
    height: 80px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 16px; 
}

.video-placeholder-icon svg { 
    width: 36px; 
    height: 36px; 
    margin-left: 4px; 
}

.video-placeholder span { 
    font-size: 18px; 
    font-weight: 600; 
    opacity: 0.9; 
}

.video-meta { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    margin-bottom: 24px; 
}

.video-meta span { 
    font-size: 14px; 
    color: var(--color-text-muted); 
    display: flex; 
    align-items: center; 
    gap: 6px; 
}

.video-meta svg { 
    width: 16px; 
    height: 16px; 
}

/* --------------------------------------------------------------------------
   Other Videos (with thumbnails)
   -------------------------------------------------------------------------- */
.other-videos { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 16px; 
    margin-bottom: 32px; 
}

.other-video-link { 
    display: flex; 
    flex-direction: column; 
    background: var(--color-surface); 
    border: 1px solid var(--color-border); 
    border-radius: var(--radius-md); 
    text-decoration: none; 
    color: var(--color-text); 
    transition: all 0.2s; 
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    padding: 0;
    font: inherit;
}

.other-video-link:hover,
.other-video-link.is-active { 
    border-color: var(--color-primary); 
    box-shadow: var(--shadow-md); 
    transform: translateY(-2px);
}

.other-video-link.is-active {
    box-shadow: 0 0 0 2px var(--color-primary), var(--shadow-md);
}

.other-video-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .other-video-link:hover,
    .other-video-link.is-active {
        transform: none;
    }
}

.other-video-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--color-bg-muted) 0%, var(--color-border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    position: relative;
}

.other-video-thumb svg {
    width: 40px;
    height: 40px;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

.other-video-link:hover .other-video-thumb svg,
.other-video-link.is-active .other-video-thumb svg {
    opacity: 1;
    transform: scale(1.1);
}

.other-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.other-video-info {
    padding: 16px;
}

.other-video-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.other-video-info .duration { 
    font-size: 13px; 
    color: var(--color-text-muted); 
}

/* Play nudge toast */
.video-play-nudge {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 100px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    z-index: 10;
}

.video-play-nudge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--color-primary, #4f8ef7);
}

.video-play-nudge.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.explore-more { 
    text-align: center; 
    margin-bottom: 40px;
}

.explore-more a { 
    font-size: 15px; 
    color: var(--color-primary); 
    font-weight: 600; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
}

.explore-more a:hover { 
    text-decoration: underline; 
}

.explore-more a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.explore-more a svg { 
    width: 18px; 
    height: 18px; 
}

/* --------------------------------------------------------------------------
   Bridge CTA
   -------------------------------------------------------------------------- */
.bridge-cta { 
    max-width: 700px; 
    margin: 0 auto; 
    padding: 28px 32px; 
    background: var(--color-bg-subtle); 
    border: 1px solid var(--color-border); 
    border-radius: var(--radius-lg); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 24px; 
}

.bridge-cta p { 
    font-size: 16px; 
    color: var(--color-text-secondary); 
    margin: 0; 
}

.bridge-cta p strong { 
    color: var(--color-text); 
}

.bridge-cta .btn { 
    flex-shrink: 0; 
}

/* --------------------------------------------------------------------------
   What You'll See (Features Grid)
   -------------------------------------------------------------------------- */
.features-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 24px; 
}

.feature-item { 
    background: var(--color-surface); 
    border: 1px solid var(--color-border); 
    border-radius: var(--radius-lg); 
    padding: 28px; 
    transition: all 0.2s; 
}

.feature-item:hover { 
    border-color: var(--color-primary); 
    box-shadow: var(--shadow-md); 
}

.feature-item-icon { 
    width: 48px; 
    height: 48px; 
    background: var(--color-primary-soft); 
    border-radius: var(--radius-md); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 16px; 
    color: var(--color-primary); 
}

.feature-item-icon svg { 
    width: 24px; 
    height: 24px; 
}

.feature-item h3 { 
    font-size: 17px; 
    font-weight: 700; 
    margin-bottom: 8px; 
}

.feature-item p { 
    font-size: 16px; 
    color: var(--color-text-secondary); 
    line-height: 1.5; 
    margin: 0;
}

/* --------------------------------------------------------------------------
   Live Demo Section
   -------------------------------------------------------------------------- */
.live-demo-section { 
    padding: 80px 24px; 
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); 
    color: white; 
}

.live-demo-inner { 
    max-width: var(--max-width); 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: 5fr 7fr; 
    gap: 48px; 
    align-items: start; 
}

.live-demo-content h2 { 
    font-size: 30px; 
    font-weight: 800; 
    margin-bottom: 16px; 
    line-height: 1.2; 
}

.live-demo-content > p { 
    font-size: 16px; 
    opacity: 0.9; 
    line-height: 1.6; 
    margin-bottom: 28px; 
}

.live-demo-features { 
    list-style: none; 
    margin-bottom: 24px; 
}

.live-demo-features li { 
    display: flex; 
    align-items: flex-start; 
    gap: 14px; 
    padding: 12px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
}

.live-demo-features li:last-child { 
    border-bottom: none; 
}

.live-demo-features li svg { 
    width: 22px; 
    height: 22px; 
    flex-shrink: 0; 
    margin-top: 2px; 
    opacity: 0.8; 
}

.live-demo-features li div strong { 
    display: block; 
    font-size: 16px; 
    font-weight: 600; 
    margin-bottom: 2px; 
}

.live-demo-features li div span { 
    font-size: 14px; 
    opacity: 0.75; 
}

.live-demo-note { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 14px; 
    opacity: 0.8; 
    padding: 16px; 
    background: rgba(255,255,255,0.1); 
    border-radius: var(--radius-md); 
}

.live-demo-note svg { 
    width: 18px; 
    height: 18px; 
    flex-shrink: 0; 
}

.calendar-wrapper { 
    background: white; 
    border-radius: var(--radius-xl); 
    padding: 16px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.2); 
}

.calendar-placeholder { 
    min-height: 520px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    color: var(--color-text-muted); 
    gap: 12px; 
}

.calendar-placeholder svg { 
    width: 48px; 
    height: 48px; 
    opacity: 0.5; 
}

.calendar-note {
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.calendar-note svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .live-demo-inner { 
        grid-template-columns: 1fr; 
    }
    
    .features-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .other-videos {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid { 
        grid-template-columns: 1fr; 
    }
    
    .other-videos {
        grid-template-columns: 1fr;
    }
    
    .bridge-cta { 
        flex-direction: column; 
        text-align: center; 
    }
    
    .live-demo-content h2 { 
        font-size: 28px; 
    }
}
/* --------------------------------------------------------------------------
   Self-Serve Escape Hatch
   -------------------------------------------------------------------------- */
.self-serve-cta {
    background: var(--color-bg-subtle);
    border-top: 1px solid var(--color-border);
    padding: 28px 24px;
    text-align: center;
}

.self-serve-cta-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.self-serve-cta p {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin: 0;
}

.self-serve-cta a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.self-serve-cta a:hover {
    text-decoration: underline;
}