/* Containers and controls for the Zzzonic project visualizations. */

/* --- Page dark theme (scoped: this stylesheet is only linked by zzzonic.html) --- */
body {
    background: #0e1414;
    color: #c5d0cd;
}

.project-title-container h1 {
    color: #f1f4f0;
}

.project-title-container h2,
.project-title-container h3 {
    color: #aeb8b5;
}

.project-header-information {
    color: #c5d0cd;
}

.project-details-container h3,
.project-description-container h3 {
    color: #d7dedb;
}

.project-content-text-container h2 {
    color: #f1f4f0;
}

.project-content-text-container h3 {
    color: #c5d0cd;
}

.project-image-container h3 {
    color: #8fa09c;
}

.project-divider {
    border-color: #2b3a3a;
}

a {
    color: #5fcf5a;
}

a:hover {
    color: #7fe07a;
}

.detail-bar h1 {
    color: #6f807c;
}

/* Keep descriptions in the old left column and center visuals in the open lane. */
.project-content-container-row {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    width: auto;
    max-width: none;
    margin: 3rem 1rem;
}

.project-content-text-container {
    flex: 0 0 15%;
    max-width: none;
}

.project-content-image-container {
    flex: 1;
    max-width: none;
}

.project-section-visual-content {
    align-items: flex-start;
    margin-left: 0;
}

.zzz-interface-section {
    margin-left: 1rem;
    margin-right: 1rem;
}

.zzz-interface-section .project-content-text-container {
    flex: 0 0 15%;
    max-width: none;
}

.zzz-interface-section .project-content-image-container {
    flex: 1;
    max-width: none;
}

.zzz-animation-section .project-content-text-container {
    flex: 0 0 33.33%;
}

.zzz-animation-section .project-content-image-container,
.zzz-animation-section .project-section-visual-content {
    flex: 1;
}


/* Hero animation spans the full width across the top of the page as a slim banner. */
.zzz-hero-anim {
    width: 100%;
    aspect-ratio: 1272 / 380;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0e1414;
}

.zzz-hero-anim canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Section visuals use a wide 2:1 chart frame. */
.project-section-visual-content .project-content-image-container img {
    width: 100%;
    aspect-ratio: 2 / 1;
    height: auto;
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.zzz-system-visual-content {
    flex: 1;
    max-width: none;
    justify-content: center;
}

.zzz-system-animation-container,
.zzz-chart-visual-container {
    align-items: center;
    flex: 1;
    width: 100%;
}

.zzz-system-animation-container .zzz-viz,
.zzz-system-animation-container h3,
.zzz-chart-visual-container .zzz-viz,
.zzz-chart-visual-container h3 {
    max-width: 860px;
    width: 100%;
}

/* Interface section: three prototype clips shown side by side, each with its
   own description below it. */
.zzz-video-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
}

.zzz-video-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.zzz-video-item video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    object-fit: contain;
}

.zzz-video-item h4,
.zzz-interface-subtitle {
    font-family: 'Camcorder.ttf', ui-monospace, monospace;
    color: #f1f4f0;
    font-size: 0.8rem;
    font-weight: normal;
    margin: 0.75rem 0 0.25rem;
}

.zzz-interface-subtitle {
    margin-top: 1.5rem;
}

.zzz-video-item p {
    font-family: 'IBMPlexMono-Thin.ttf', ui-monospace, monospace;
    color: #c5d0cd;
    font-size: 0.8rem;
    line-height: 1.35;
    margin: 0 0 0.5rem;
}

.zzz-video-list {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0;
}

.zzz-video-list li {
    font-family: 'IBMPlexMono-Thin.ttf', ui-monospace, monospace;
    color: #c5d0cd;
    font-size: 0.8rem;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

/* Generic mount for SVG-based charts */
.zzz-viz {
    width: 100%;
    background: #0e1414;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    overflow: hidden;
    padding: 0.25rem;
    box-sizing: border-box;
}

.zzz-viz svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Control chips for interactive charts */
.zzz-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem 0.25rem 0.25rem;
}

.zzz-chip {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'IBMPlexMono-Thin.ttf', ui-monospace, monospace;
    font-size: 0.7rem;
    color: #8fa09c;
    padding: 0.28rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: opacity 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    opacity: 0.5;
}

.zzz-chip:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.zzz-chip--on {
    opacity: 1;
    color: #f1f4f0;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

/* Solid, colored action button (e.g. "show ideal controller") */
.zzz-btn {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'IBMPlexMono-Thin.ttf', ui-monospace, monospace;
    font-size: 0.72rem;
    color: #0e1414;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: #5fcf5a;
    border: 1px solid #5fcf5a;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.05s ease;
}

.zzz-btn:hover {
    background: #7fe07a;
    border-color: #7fe07a;
}

.zzz-btn:active {
    transform: translateY(1px);
}

.zzz-btn:focus-visible {
    outline: 2px solid #7fe07a;
    outline-offset: 2px;
}

.zzz-chip__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.zzz-chip:focus-visible {
    outline: 2px solid #3a9b37;
    outline-offset: 2px;
}

@media (max-width: 760px) {
    .project-content-container-row {
        flex-direction: column;
        width: auto;
        gap: 1.25rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .project-content-text-container,
    .project-content-image-container {
        max-width: none;
        width: 100%;
    }

    .project-section-visual-content {
        flex-direction: column;
        max-width: none;
        width: 100%;
    }

    /* stack the prototype clips on narrow screens */
    .zzz-video-row {
        flex-direction: column;
    }

    /* portrait hero on mobile: fill a tall box instead of a thin ultra-wide strip */
    .zzz-hero-anim {
        aspect-ratio: auto;
        height: 60vh;
    }
}
