/* ============================================================================
   Frontend Footer Styles - 프론트엔드 푸터 스타일
   ============================================================================ */

/* ===== 푸터 기본 스타일 ===== */
.frontend-footer {
    position: relative;
    width: 100%;
    background-color: var(--footer-bg-color, #1a1a2e);
    color: var(--footer-text-color, #a0aec0);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.frontend-footer__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 푸터 상단 영역 (로고 + 회사정보) ===== */
.frontend-footer__logo {
    margin-bottom: 25px;
}

.frontend-footer__logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.frontend-footer__company {
    margin-bottom: 30px;
    line-height: 1.8;
}

.frontend-footer__company p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--footer-text-color, #a0aec0);
}

.frontend-footer__company strong {
    font-weight: 600;
    color: var(--footer-heading-color, #ffffff);
    font-size: 16px;
}

/* ===== 링크 그룹 ===== */
.frontend-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.frontend-footer__links a {
    color: var(--footer-link-color, #ffffff);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s;
    position: relative;
}

.frontend-footer__links a:hover {
    color: var(--footer-link-hover-color, #FF6B35);
}

.frontend-footer__links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--footer-link-hover-color, #FF6B35);
    transition: width 0.3s;
}

.frontend-footer__links a:hover::after {
    width: 100%;
}

/* 강조 링크 (이용약관, 개인정보처리방침 등) */
.frontend-footer__link--highlight {
    font-weight: 600 !important;
    color: var(--footer-highlight-color, #FF6B35) !important;
}

.frontend-footer__link--highlight:hover {
    color: var(--footer-highlight-hover-color, #e85a2a) !important;
}

/* ===== 소셜 아이콘 ===== */
.frontend-footer__social {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
}

.frontend-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--footer-text-color, #a0aec0);
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
}

.frontend-footer__social a:hover {
    background-color: var(--footer-link-hover-color, #FF6B35);
    color: #ffffff;
    transform: translateY(-3px);
}

.frontend-footer__social a i {
    line-height: 1;
}

/* 플랫폼별 브랜드 컬러 (선택적) */
.frontend-footer__social a[href*="facebook"]:hover {
    background-color: #1877f2;
}

.frontend-footer__social a[href*="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.frontend-footer__social a[href*="twitter"]:hover {
    background-color: #1da1f2;
}

.frontend-footer__social a[href*="youtube"]:hover {
    background-color: #ff0000;
}

.frontend-footer__social a[href*="linkedin"]:hover {
    background-color: #0077b5;
}

/* ===== 저작권 ===== */
.frontend-footer__copyright {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 20px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== 맨 위로 버튼 ===== */
.frontend-footer__scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--footer-link-hover-color, #FF6B35);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.frontend-footer__scroll-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.frontend-footer__scroll-top:hover {
    background-color: var(--footer-highlight-hover-color, #e85a2a);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.frontend-footer__scroll-top i {
    line-height: 1;
}

/* ===== 레이아웃 변형 (3컬럼) ===== */
.frontend-footer--columns {
    padding: 60px 0 30px;
}

.frontend-footer__columns-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.frontend-footer__column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.frontend-footer__column-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--footer-heading-color, #ffffff);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.frontend-footer__column-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.frontend-footer__column-links a {
    color: var(--footer-text-color, #a0aec0);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.frontend-footer__column-links a:hover {
    color: var(--footer-link-hover-color, #FF6B35);
    padding-left: 5px;
}

.frontend-footer__column-links a i {
    font-size: 12px;
    opacity: 0.7;
}

/* ===== 뉴스레터 구독 폼 (선택) ===== */
.frontend-footer__newsletter {
    margin-top: 20px;
}

.frontend-footer__newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
}

.frontend-footer__newsletter-input {
    flex: 1;
    height: 45px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s;
}

.frontend-footer__newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.frontend-footer__newsletter-input:focus {
    outline: none;
    border-color: var(--footer-link-hover-color, #FF6B35);
    background-color: rgba(255, 255, 255, 0.1);
}

.frontend-footer__newsletter-btn {
    height: 45px;
    padding: 0 25px;
    background-color: var(--footer-link-hover-color, #FF6B35);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.frontend-footer__newsletter-btn:hover {
    background-color: var(--footer-highlight-hover-color, #e85a2a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* ===== 결제 수단 아이콘 (선택) ===== */
.frontend-footer__payments {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.frontend-footer__payments-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 10px;
}

.frontend-footer__payments img {
    height: 30px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.frontend-footer__payments img:hover {
    opacity: 1;
}

/* ===== 반응형 (태블릿) ===== */
@media (max-width: 992px) {
    .frontend-footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }

    .frontend-footer__columns-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .frontend-footer__scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
}

/* ===== 반응형 (모바일) ===== */
@media (max-width: 768px) {
    .frontend-footer {
        padding: 30px 0 15px;
        margin-top: 30px;
    }

    .frontend-footer__container {
        padding: 0 15px;
    }

    .frontend-footer__logo {
        margin-bottom: 20px;
    }

    .frontend-footer__logo img {
        height: 32px;
    }

    .frontend-footer__company {
        margin-bottom: 25px;
    }

    .frontend-footer__company p {
        font-size: 13px;
        margin: 6px 0;
    }

    .frontend-footer__company strong {
        font-size: 15px;
    }

    .frontend-footer__links {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .frontend-footer__links a {
        font-size: 13px;
    }

    .frontend-footer__social {
        gap: 12px;
        margin-bottom: 25px;
    }

    .frontend-footer__social a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .frontend-footer__copyright {
        font-size: 12px;
        margin: 15px 0 0;
        padding-top: 15px;
    }

    .frontend-footer__scroll-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 14px;
    }

    /* 3컬럼 레이아웃 → 1컬럼 */
    .frontend-footer--columns {
        padding: 40px 0 20px;
    }

    .frontend-footer__columns-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .frontend-footer__column-title {
        font-size: 15px;
    }

    .frontend-footer__column-links a {
        font-size: 13px;
    }

    /* 뉴스레터 폼 */
    .frontend-footer__newsletter-form {
        flex-direction: column;
        max-width: 100%;
    }

    .frontend-footer__newsletter-input,
    .frontend-footer__newsletter-btn {
        height: 42px;
    }

    /* 결제 수단 */
    .frontend-footer__payments {
        justify-content: flex-start;
        gap: 10px;
    }

    .frontend-footer__payments img {
        height: 26px;
    }
}

@media (max-width: 480px) {
    .frontend-footer {
        padding: 25px 0 10px;
    }

    .frontend-footer__logo img {
        height: 28px;
    }

    .frontend-footer__company p {
        font-size: 12px;
    }

    .frontend-footer__company strong {
        font-size: 14px;
    }

    .frontend-footer__links a {
        font-size: 12px;
    }

    .frontend-footer__social a {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .frontend-footer__copyright {
        font-size: 11px;
    }

    .frontend-footer__scroll-top {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

/* ===== 스크롤 이벤트 처리 (JS 연동) ===== */
/*
   맨 위로 버튼은 window.scrollY > 300 일 때 .visible 클래스 추가
   예시:

   window.addEventListener('scroll', function() {
       const scrollTopBtn = document.querySelector('.frontend-footer__scroll-top');
       if (window.scrollY > 300) {
           scrollTopBtn.classList.add('visible');
       } else {
           scrollTopBtn.classList.remove('visible');
       }
   });
*/
