@charset "utf-8";

/* ========================================
   푸터 스타일 (키컬러 적용)
   ======================================== */

.footer {
    background: #0a1929;
    color: #e9ecef;
    padding: 60px 0 30px;
}

/* 푸터 상단 (로고 + 관련사이트) */
.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 40px;
}

.footer__logo img {
    height: 50px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer__logo img:hover {
    opacity: 1;
}

/* 관련사이트 */
.footer__family {
    position: relative;
}

.family__btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #e9ecef;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.family__btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.family__btn .arrow {
    transition: transform 0.3s;
}

.footer__family.open .arrow {
    transform: rotate(180deg);
}

.family__list {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 15px;
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
    min-width: 220px;
    z-index: 100;
    overflow: hidden;
}

.family__list li {
    list-style: none;
    border-bottom: 1px solid #f0f0f0;
}

.family__list li:last-child {
    border-bottom: none;
}

.family__list a {
    display: block;
    padding: 14px 24px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.family__list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: #102544;
    opacity: 0.05;
    transition: width 0.3s;
}

.family__list a:hover {
    background: #f8f9fa;
    color: #102544;
    padding-left: 28px;
}

.family__list a:hover::before {
    width: 4px;
    opacity: 1;
}

/* 푸터 네비게이션 */
.footer__nav {
    margin-bottom: 35px;
}

.footer__nav ul {
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__nav li {
    list-style: none;
}

.footer__nav a {
    color: #e9ecef;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    padding-bottom: 2px;
}

.footer__nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #4A90E2;
    transition: width 0.3s;
}

.footer__nav a:hover {
    color: #4A90E2;
}

.footer__nav a:hover::after {
    width: 100%;
}

/* 사업자 정보 */
.footer__info {
    font-style: normal;
    line-height: 2;
    margin-bottom: 30px;
    text-align: center;
}

.footer__info p {
    color: #adb5bd;
    font-size: 14px;
    margin: 5px 0;
}

.footer__info p:first-child {
    font-size: 16px;
    font-weight: 600;
    color: #e9ecef;
    margin-bottom: 15px;
}

.footer__info a {
    color: #4A90E2;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.footer__info a:hover {
    color: #5BA3F5;
    text-decoration: underline;
}

/* 저작권 */
.footer__copy {
    display: block;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: #868e96;
    font-size: 13px;
    font-weight: 400;
}

/* 반응형 */
@media (max-width: 1024px) {
    .footer__top {
        flex-direction: column;
        gap: 25px;
        align-items: center;
        text-align: center;
    }

    .footer__logo img {
        height: 45px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: var(--padding-8, 40px) 0 var(--padding-4, 20px);
    }

    .footer .container {
        padding: 0 var(--padding-4, 20px);
    }

    .footer__top {
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .footer__logo img {
        height: 40px;
    }

    .footer__nav {
        margin-bottom: 30px;
    }

    .footer__nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .footer__nav a {
        font-size: 14px;
    }

    .footer__info {
        margin-bottom: 25px;
    }

    .footer__info p {
        font-size: 12px;
        line-height: 1.8;
    }

    .footer__info p:first-child {
        font-size: 14px;
    }

    .footer__copy {
        font-size: 11px;
        padding-top: var(--padding-4, 20px);
    }

    /* 푸터 모바일 */
    .family__btn {
        font-size: 13px;
        padding: var(--gap-2-5, 10px) var(--padding-4, 20px);
    }

    .family__list {
        min-width: 180px;
    }

    .family__list a {
        font-size: 13px;
        padding: var(--gap-3, 12px) var(--padding-4, 20px);
    }
}

@media (max-width: 360px) {
    .footer {
        padding: 32px 0 16px;
    }

    .footer__nav ul {
        gap: 20px;
    }

    .footer__nav a {
        font-size: 13px;
    }

    .footer__info p {
        font-size: 12px;
    }

    .family__btn {
        width: 100%;
    }
} 