/* FILE: css/layout/structure.css */

body,
html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-void);
}

#interface-viewport {
    position: relative;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
}

/* Virtual Screens */
.view-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 80px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.05);
    z-index: 1;
}

.view-section.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: scale(1);
    z-index: 10;
}

/* Content Structures */
.content-wrapper {
    width: 100%;
    height: 100%;
    padding: 0 10%;
}

.center-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.scrollable-content {
    overflow-y: auto;
    padding-bottom: 100px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
}

.sticky-header {
    position: sticky;
    top: 0;
    background: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(10px);
    z-index: 5;
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 0 5%;
    }
}

/* Scroll indicator: bottom fade mask hints at more content */
.scrollable-content {
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    padding-bottom: 120px;
}

@media (max-width: 768px) {
    .scrollable-content {
        mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    }
}
