/* ===================================================================
   demo-chrome.css — demo banner / footer / grid overrides
   DO NOT add any specific franchise or IP holder names anywhere in this file.
   =================================================================== */

/* ── Footer ── */
.demo-footer {
    margin-left: 220px;                  /* match sidebar width */
    padding: 1.25rem 1.5rem;
    font-size: 0.72rem;
    color: var(--text-muted, rgba(255, 255, 255, 0.35));
    line-height: 1.6;
    border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
}

@media (max-width: 1023px) {
    .demo-footer {
        margin-left: 0;
    }
}

.demo-footer-declaration {
    margin: 0 0 0.35rem;
}

.demo-footer-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--text-muted, rgba(255, 255, 255, 0.35));
    text-decoration: none;
    font-size: 0.7rem;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.demo-footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

[data-theme="light"] .demo-footer {
    color: var(--text-muted, rgba(0, 0, 0, 0.4));
    border-top-color: var(--border-subtle, rgba(0, 0, 0, 0.07));
}

[data-theme="light"] .demo-footer-link {
    color: var(--text-muted, rgba(0, 0, 0, 0.4));
}

/* ── Sidebar Collapse ── */
:root {
    --demo-sidebar-w: 220px;
    --demo-sidebar-w-collapsed: 60px;
}

.demo-sidebar {
    transition: width 0.2s var(--fluent-ease-standard, cubic-bezier(0.4,0,0.2,1));
}

/* body.demo-sidebar-collapsed drives layout CSS */
.demo-sidebar-collapsed .demo-sidebar {
    width: var(--demo-sidebar-w-collapsed);
}

.demo-sidebar-collapsed .demo-nav-text,
.demo-sidebar-collapsed .demo-brand-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.15s ease, width 0.15s ease;
}

/* main-content + footer follow sidebar */
.demo-sidebar-collapsed .main-content {
    margin-left: var(--demo-sidebar-w-collapsed);
}

.demo-sidebar-collapsed .demo-footer {
    margin-left: var(--demo-sidebar-w-collapsed);
}

/* Hamburger toggle styling */
.demo-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--text-secondary, inherit);
    cursor: pointer;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.15s ease;
    flex-shrink: 0;
}

.demo-sidebar-toggle:hover {
    background-color: var(--surface-2, rgba(255,255,255,0.06));
}

/* ── Video Grid Cards: aspect-ratio 1/1 (CLAUDE.md § 站台架構 硬規則) ── */
/* Scoped to .showcase-grid to avoid touching actress portrait cards     */
.showcase-grid .av-card-preview-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.showcase-grid .av-card-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
