/* Footer Styles */
.app-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    margin-top: 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

/* 회사 정보 섹션 */
.footer-company {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-logo .logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1428A0;
    letter-spacing: -0.5px;
}

.footer-logo .logo-subtitle {
    font-size: 13px;
    color: #95a5a6;
    font-weight: 400;
}

.footer-business-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.business-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #bdc3c7;
    margin: 0;
}

.business-item .label {
    color: #95a5a6;
    min-width: fit-content;
}

.business-item .value {
    color: #ecf0f1;
    font-weight: 500;
}

/* 고객센터 섹션 */
.footer-support h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ecf0f1;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #1428A0;
    display: inline-block;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #ecf0f1;
    margin: 10px 0;
}

.support-item i {
    width: 16px;
    color: #1428A0;
}

.support-desc {
    font-size: 12px;
    color: #95a5a6;
    margin: 8px 0 0 26px;
}

/* 링크 섹션 */
.footer-links-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ecf0f1;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #1428A0;
    display: inline-block;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-menu li {
    margin: 0;
}

.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-link:hover {
    color: #1428A0;
    transform: translateX(5px);
}

.footer-link::before {
    content: '›';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-link:hover::before {
    opacity: 1;
    left: -10px;
}

/* 하단 카피라이트 */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.copyright {
    font-size: 13px;
    color: #95a5a6;
    margin: 0 0 10px 0;
}

.footer-notice {
    font-size: 11px;
    color: #7f8c8d;
    line-height: 1.5;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
}

/* 모달 스타일 */
.footer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.footer-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.footer-modal-header {
    background: linear-gradient(135deg, #1428A0, #2B4CB8);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.footer-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.footer-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.footer-modal-body {
    padding: 30px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
    background: #fff;
}

.modal-content-wrapper {
    color: #2c3e50;
    line-height: 1.6;
}

.modal-content-wrapper h3 {
    color: #2c3e50;
    font-size: 18px;
    margin: 25px 0 15px;
    padding-left: 15px;
    border-left: 4px solid #1428A0;
}

.modal-content-wrapper h3:first-child {
    margin-top: 0;
}

.modal-content-wrapper p {
    margin: 15px 0;
    color: #34495e;
}

.modal-content-wrapper ul {
    margin: 15px 0;
    padding-left: 30px;
}

.modal-content-wrapper li {
    margin: 8px 0;
    color: #34495e;
}

.modal-footer-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.modal-footer-info p {
    margin: 8px 0;
    font-size: 14px;
}

.modal-footer-info strong {
    color: #2c3e50;
}

/* 폴백 모달 탭 스타일 */
.terms-tabs {
    display: flex;
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 20px;
}

.terms-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: none;
    color: #95a5a6;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.terms-tab.active {
    color: #1428A0;
    border-bottom: 2px solid #1428A0;
}

.terms-tab:hover {
    color: #1428A0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .footer-business-info {
        font-size: 12px;
    }
    
    .business-item {
        flex-wrap: wrap;
    }
    
    .footer-bottom-container {
        padding: 15px;
    }
    
    .footer-notice {
        font-size: 10px;
    }
    
    .footer-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .footer-modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .footer-logo .logo-text {
        font-size: 20px;
    }
    
    .footer-support h4,
    .footer-links-section h4 {
        font-size: 14px;
    }
    
    .support-item,
    .footer-link {
        font-size: 13px;
    }
}