/* 레이아웃 CSS */
@media all and (max-width:1024px) { 
    .footer_gnb .inner {padding-left: 0px !important; padding-right: 0px !important;}
    .footer_copy .inner {padding-left: 0px !important; padding-right: 0px !important;}
}

/* Base */
.site-footer {
    background: #1a1a1a;
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.8;
    padding: 60px 0 40px;
}

.footer-inner {
    margin: 0 auto;
    padding: 0 40px;
    max-width: var(--rb-footer-width);
}

/* 그리드 레이아웃 */
.footer-grid {
    display: grid;
    grid-template-columns: 200px 1fr 160px;
    grid-template-rows: auto auto;
    grid-template-areas:
        "logo nav cs"
        "logo meta cs";
    align-items: start;
}

/* 로고 영역 */
.footer-logo {
    grid-area: logo;
    padding-top: 5px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.brand-img {
    max-width: 180px;
    height: auto;
    display: inline-block;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.brand-text {
    display: none;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    letter-spacing: -0.5px;
}

.brand-img[src=""],
.brand-img:not([src]) {
    display: none;
}

.brand-img[src=""] + .brand-text,
.brand-img:not([src]) + .brand-text {
    display: inline-block;
}

/* 메뉴 영역 */
.footer-nav {
    grid-area: nav;
    display: flex;
    flex-wrap: wrap;
    gap: 0 30px;
    justify-content: flex-start;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    padding-top: 8px;
}

.footer-nav a {
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
    padding: 4px 0;
    transition: color 0.3s ease;
    position: relative;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.footer-nav a:hover::after {
    width: 100%;
}

/* 사이트 정보 */
.footer-meta {
    grid-area: meta;
    color: #888;
    align-self: start;
    font-size: 13px;
    line-height: 1.9;
}

.footer-meta p {
    margin: 8px 0;
    word-break: keep-all;
}

.footer-meta p span {
    display: inline-block;
    margin-right: 12px;
    padding-right: 12px;
    border-right: 1px solid #333;
}

.footer-meta p span:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

.footer-meta a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-meta a:hover {
    color: #fff;
}

.footer-meta p.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
    color: #666;
    font-size: 12px;
}

/* SNS 영역 */
.footer-cs {
    grid-area: cs;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    align-self: start;
    padding-top: 8px;
}

.footer_sns_ico {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer_sns_ico:hover {
    background: #fff;
    transform: translateY(-3px);
}

.footer_sns_ico img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.footer_sns_ico:hover img {
    filter: none;
}

.footer-sns {
    display: none;
}

.cs-label {
    color: #e0e0e0;
    font-weight: 600;
    letter-spacing: -0.3px;
    font-size: 15px;
}

/* 반응형 - 태블릿 */
@media (max-width: 1024px) {
    .site-footer {
        padding: 50px 0 30px;
    }

    .footer-inner {
        padding: 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "nav"
            "meta"
            "cs";
        gap: 25px 0;
    }

    .footer-logo {
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
        gap: 0 20px;
        font-size: 13px;
    }

    .footer-nav a::after {
        display: none;
    }

    .footer-meta {
        text-align: center;
    }

    .footer-meta p span {
        margin-right: 8px;
        padding-right: 8px;
    }

    .footer-cs {
        justify-content: center;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 30px;
    }

    .footer-inner {
        padding: 0 20px;
    }

    .footer-grid {
        gap: 20px 0;
    }

    .brand-img {
        max-width: 140px;
    }

    .footer-nav {
        gap: 8px 15px;
        font-size: 12px;
    }

    .footer-meta {
        font-size: 11px;
        line-height: 1.8;
    }

    .footer-meta p span {
        display: block;
        margin: 0;
        padding: 0;
        border: none;
    }

    .footer-meta p {
        margin: 5px 0;
    }

    .footer_sns_ico {
        width: 36px;
        height: 36px;
    }

    .footer_sns_ico img {
        width: 18px;
        height: 18px;
    }
}

/* 다크모드 최적화 */
@media (prefers-color-scheme: dark) {
    .site-footer {
        background: #0a0a0a;
    }

    .footer-meta p span {
        border-right-color: #222;
    }

    .footer-meta p.copyright {
        border-top-color: #1a1a1a;
    }

    .footer_sns_ico {
        background: #1a1a1a;
    }
}