/* Mobile Footer Color Fix */
/* 모바일 환경에서 푸터 색상 강제 수정 */
/* 2025년 1월 3일 - 모바일에서 푸터 아이콘/텍스트 검은색 문제 해결 */

/* 모바일 환경에서 푸터 색상 강제 적용 */
@media (max-width: 768px) {
    /* 푸터 전체 배경 및 텍스트 색상 */
    .main-footer,
    footer.main-footer {
        background-color: #111827 !important;
        background: #111827 !important;
        color: #d1d5db !important;
    }
    
    /* 푸터 내부 모든 텍스트 요소 강제 색상 */
    .main-footer *:not(i) {
        color: #d1d5db !important;
    }
    
    /* 푸터 제목 색상 */
    .main-footer .footer-subtitle {
        color: #ffffff !important;
    }
    
    /* 푸터 링크 색상 */
    .main-footer .footer-links a,
    .main-footer .info-item span,
    .main-footer .business-list li {
        color: #d1d5db !important;
    }
    
    /* 푸터 아이콘 색상 복원 */
    .main-footer .info-item i {
        color: #3b82f6 !important;
    }
    
    .main-footer .business-list i {
        color: #10b981 !important;
    }
    
    /* 저작권 텍스트 */
    .main-footer .copyright-text,
    .main-footer .copyright-text p {
        color: #d1d5db !important;
    }
    
    .main-footer .copyright-sub {
        color: #6b7280 !important;
    }
    
    /* 호버 효과 유지 */
    .main-footer .footer-links a:hover {
        color: #3b82f6 !important;
    }
}

/* 다크 모드 환경에서도 푸터 색상 유지 */
@media (prefers-color-scheme: dark) {
    /* 푸터는 항상 다크 배경에 밝은 텍스트 */
    .main-footer,
    footer.main-footer {
        background-color: #111827 !important;
        background: #111827 !important;
        color: #d1d5db !important;
    }
    
    /* 푸터 내부 텍스트 요소들 */
    .main-footer .footer-subtitle {
        color: #ffffff !important;
    }
    
    .main-footer .footer-links a,
    .main-footer .info-item span,
    .main-footer .business-list li {
        color: #d1d5db !important;
    }
    
    /* 아이콘 색상 */
    .main-footer .info-item i {
        color: #3b82f6 !important;
    }
    
    .main-footer .business-list i {
        color: #10b981 !important;
    }
    
    /* 저작권 */
    .main-footer .copyright-text,
    .main-footer .copyright-text p {
        color: #d1d5db !important;
    }
    
    .main-footer .copyright-sub {
        color: #6b7280 !important;
    }
}

/* 모바일 + 다크 모드 조합 */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .main-footer,
    .main-footer *:not(i) {
        background-color: #111827 !important;
        color: #d1d5db !important;
    }
    
    .main-footer .footer-subtitle {
        color: #ffffff !important;
    }
    
    .main-footer .info-item i {
        color: #3b82f6 !important;
    }
    
    .main-footer .business-list i {
        color: #10b981 !important;
    }
}

/* 태블릿 환경 */
@media (min-width: 641px) and (max-width: 1024px) {
    .main-footer,
    footer.main-footer {
        background-color: #111827 !important;
        color: #d1d5db !important;
    }
    
    .main-footer .footer-subtitle {
        color: #ffffff !important;
    }
    
    .main-footer .footer-links a,
    .main-footer .info-item span,
    .main-footer .business-list li {
        color: #d1d5db !important;
    }
    
    .main-footer .info-item i {
        color: #3b82f6 !important;
    }
    
    .main-footer .business-list i {
        color: #10b981 !important;
    }
}

/* 매우 작은 모바일 기기 */
@media (max-width: 640px) {
    .main-footer,
    footer.main-footer {
        background-color: #111827 !important;
        color: #d1d5db !important;
    }
    
    .main-footer .footer-subtitle {
        color: #ffffff !important;
        font-size: 1.125rem !important;
    }
    
    .main-footer .footer-links a,
    .main-footer .info-item,
    .main-footer .business-list li {
        color: #d1d5db !important;
        font-size: 0.875rem !important;
    }
    
    .main-footer .info-item i {
        color: #3b82f6 !important;
    }
    
    .main-footer .business-list i {
        color: #10b981 !important;
    }
}

/* iOS Safari 특수 처리 */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .main-footer,
        .main-footer * {
            -webkit-appearance: none !important;
        }
        
        .main-footer .footer-subtitle,
        .main-footer .footer-links a,
        .main-footer .info-item,
        .main-footer .business-list li {
            color: #d1d5db !important;
            -webkit-text-fill-color: #d1d5db !important;
        }
        
        .main-footer .footer-subtitle {
            color: #ffffff !important;
            -webkit-text-fill-color: #ffffff !important;
        }
        
        .main-footer .info-item i {
            color: #3b82f6 !important;
            -webkit-text-fill-color: #3b82f6 !important;
        }
        
        .main-footer .business-list i {
            color: #10b981 !important;
            -webkit-text-fill-color: #10b981 !important;
        }
    }
}

/* Android Chrome 특수 처리 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    @media (max-width: 768px) {
        .main-footer,
        footer.main-footer {
            background-color: #111827 !important;
        }
        
        .main-footer .footer-subtitle,
        .main-footer .footer-links a,
        .main-footer .info-item,
        .main-footer .business-list li {
            color: #d1d5db !important;
        }
        
        .main-footer .footer-subtitle {
            color: #ffffff !important;
        }
        
        .main-footer .info-item i {
            color: #3b82f6 !important;
        }
        
        .main-footer .business-list i {
            color: #10b981 !important;
        }
    }
}
