/* footer.css - 사이트 공통 푸터 */

.stura-footer {
    background: #1a1a1a;
    padding: 24px 0;
}

.stura-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── 좌측: 로고 + 수직 구분선 + 3줄 정보 ── */
.stura-footer-left {
    display: flex;
    align-items: center; /* 세로 중앙 정렬 */
    gap: 20px;
}

/* 로고 박스 */
.stura-footer-logo-box {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: -4px; /* 로고 박스를 상단으로 살짝 이동 */
}

.stura-footer-logo-icon {
    height: 36px;
    margin-right: -6px; /* 음수 마진으로 아이콘과 텍스트를 더 밀착 */
    transform: translateY(-3px);
}

.stura-footer-logo-text {
    height: 24px;
    margin-right: 4px;
    filter: brightness(0) invert(1); /* 검은색 텍스트 로고를 흰색으로 반전 */
}

/* 수직 구분선 */
.stura-footer-vertical-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* 정보 박스 (3줄) */
.stura-footer-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stura-footer-line {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

.stura-footer-line.copyright {
    color: rgba(255, 255, 255, 0.2);
    margin-top: 2px;
}

.stura-footer-sep {
    color: rgba(255, 255, 255, 0.1);
    margin: 0 8px;
    font-size: 10px;
}

/* ── 우측: 네비 링크 ── */
.stura-footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stura-footer-right a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 2px;
}

.stura-footer-right a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: #fff;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.stura-footer-right a:hover {
    color: #fff;
}

.stura-footer-right a:hover::after {
    transform: scaleX(1);
}

/* ── 컴팩트 모드 (맵 페이지) ── */
.stura-footer-compact {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(248, 249, 250, 0.95);
    border-top: 1px solid #e0e0e0;
    padding: 5px 0;
    z-index: 999;
}

.stura-footer-compact-inner {
    text-align: center;
    font-size: 11px;
    color: #888;
}

.stura-footer-compact-inner a {
    color: #666;
    text-decoration: none;
}

.stura-footer-compact-inner a:hover {
    color: #1a1a1a;
}

.stura-footer-compact-inner .stura-footer-sep {
    margin: 0 6px;
    color: #ddd;
}

@media (max-width: 900px) {
    .stura-footer {
        padding: 18px 0;
    }

    .stura-footer-inner {
        padding: 0 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .stura-footer-left {
        width: 100%;
        gap: 12px;
        align-items: flex-start;
    }

    .stura-footer-logo-box {
        margin-top: 0;
    }

    .stura-footer-logo-icon {
        height: 30px;
        transform: translateY(-2px);
    }

    .stura-footer-logo-text {
        height: 20px;
    }

    .stura-footer-vertical-divider {
        display: none;
    }

    .stura-footer-details {
        width: 100%;
        gap: 2px;
    }

    .stura-footer-line {
        font-size: 10px;
        line-height: 1.45;
    }

    .stura-footer-sep {
        margin: 0 5px;
    }

    .stura-footer-right {
        width: 100%;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stura-footer-right a {
        font-size: 11px;
    }
}

@media (max-width: 640px) {
    .stura-footer {
        padding: 14px 0;
    }

    .stura-footer-inner {
        padding: 0 12px;
        gap: 10px;
    }

    .stura-footer-left {
        gap: 8px;
    }

    .stura-footer-logo-box {
        display: flex;
        gap: 0;
    }

    .stura-footer-logo-icon {
        height: 24px;
        margin-right: 0;
        transform: translateY(-2px);
    }

    .stura-footer-logo-text {
        display: none;
    }

    .stura-footer-details {
        gap: 1px;
    }

    .stura-footer-line {
        font-size: 9px;
        letter-spacing: 0;
    }

    .stura-footer-right {
        justify-content: center;
        gap: 10px;
    }

    .stura-footer-right a {
        font-size: 10px;
    }
}
