/* --- 레이아웃 및 리얼 글래스모피즘 패널 --- */
#app {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.section-left,
.section-right {
    width: 25%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);

    /* 핵심 굴절 효과 */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    /* 패널의 입체감 부여 */
    z-index: 10;
}

.section-center {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* --- 태블릿 & 미디어 쿼리 (1024px 기준 레이아웃 전환) --- */
@media (max-width: 1024px) {
    body {
        overflow-y: auto;
        height: auto;
    }

    #app {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .section-left,
    .section-center,
    .section-right {
        width: 100%;
        height: auto;
        border: none;
        backdrop-filter: none;
        background: rgba(2, 6, 23, 0.95);
    }

    .section-center {
        order: 1;
        height: 100vh;
    }

    .section-right {
        order: 2;
        padding-bottom: 40px;
    }

    .section-left {
        order: 3;
    }

    #app::before,
    #app::after {
        display: none;
    }

    /* 모바일에선 푸터가 패널에 가리지 않고 항상 위에 보이도록 */
    #app-footer {
        z-index: 100;
    }
}

/* --- 푸터 --- */
#app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    /* 좌우 패널(z-index:10) 뒤에 배치 */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: auto;
}

.footer-link {
    background: none;
    border: none;
    color: var(--text-sub);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.2s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-link:hover {
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.08);
}

.footer-sep {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
    user-select: none;
}
