/* 푸터 전용 격리된 스타일 - 모든 선택자에 .footer-isolated 접두사 사용 */

/* 푸터 컨테이너 리셋 */
.footer-isolated {
    /* 리셋 - 외부 스타일의 영향을 차단 */
    all: initial;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: block;
    width: 100%;
    background-color: #2c3e50;
    color: #ecf0f1;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    margin-top: auto !important;
    transform: none !important;
    transition: none !important;
}

.footer-isolated * {
    /* 모든 자식 요소 리셋 */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
    color: inherit;
}

/* 푸터 컨텐츠 */
.footer-isolated .ftr-content {
    padding: 0.5rem 0;
    width: 100%;
}

.footer-isolated .ftr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 푸터 행 */
.footer-isolated .ftr-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 0.3rem;
}

/* 푸터 컬럼 */
.footer-isolated .ftr-col {
    padding: 0;
}

.footer-isolated .ftr-col h4 {
    margin: 0 0 0.3rem 0 !important;
    font-size: 0.9rem;
    color: #ecf0f1 !important;
    font-weight: bold;
}

.footer-isolated .ftr-col p {
    margin: 0 !important;
    font-size: 0.85rem;
    color: #bdc3c7 !important;
    line-height: 1.4;
}

/* 푸터 링크 */
.footer-isolated .ftr-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-isolated .ftr-links li {
    margin: 0 0 0.2rem 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.footer-isolated .ftr-links a {
    color: #bdc3c7 !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    transition: color 0.3s;
    display: inline-block;
}

.footer-isolated .ftr-links a:hover {
    color: #fff !important;
    text-decoration: none !important;
}

/* 푸터 하단 */
.footer-isolated .ftr-bottom {
    text-align: center;
    padding: 0.3rem 0;
    border-top: 1px solid #34495e;
    margin-top: 0.5rem;
}

.footer-isolated .ftr-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-isolated .ftr-bottom p {
    margin: 0 !important;
    font-size: 0.85rem;
    color: #bdc3c7 !important;
}

/* 버튼 스타일 (관리자 버튼 등) */
.footer-isolated .ftr-btn {
    background-color: #dc3545 !important;
    color: white !important;
    padding: 0.25rem 0.5rem !important;
    border: none !important;
    border-radius: 0.25rem;
    text-decoration: none !important;
    font-size: 0.875rem;
    display: inline-block;
    transition: background-color 0.3s;
}

.footer-isolated .ftr-btn:hover {
    background-color: #c82333 !important;
    color: white !important;
    text-decoration: none !important;
}

/* 아이콘 지원 */
.footer-isolated .ftr-icon {
    margin-right: 0.25rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .footer-isolated .ftr-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .footer-isolated .ftr-col {
        margin-bottom: 0.5rem;
    }

    .footer-isolated .ftr-bottom-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
}