/* 
 * 로딩 애니메이션 CSS
 * 페이지 로딩 시 표시되는 스피너 애니메이션
 */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(118, 185, 0, 0.3);
    border-radius: 50%;
    border-top-color: #76B900;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader p {
    color: #76B900;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
}

/* 
 * 모바일 메뉴 토글 스타일
 */

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 
 * 키보드 네비게이션 스타일
 */

body.keyboard-navigation *:focus {
    outline: 2px solid #76B900;
    outline-offset: 2px;
}

/* 
 * 고대비 모드 최적화
 */

@media (prefers-contrast: high) {
    .hero-title,
    .feature-content h2,
    .careers-section h2 {
        color: #ffffff;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .nav-link:hover,
    .footer-column a:hover,
    .social-link:hover {
        color: #ffffff;
        background: #76B900;
        padding: 2px 4px;
        border-radius: 3px;
    }
}

/* 
 * 모션 감소 모드
 */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-background {
        animation: none;
    }
}

/* 
 * 프린트 스타일
 */

@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    .hero-background,
    .footer {
        display: none;
    }
    
    .hero-section {
        height: auto;
        padding: 2rem 0;
    }
    
    .feature-section {
        padding: 1rem 0;
        break-inside: avoid;
    }
    
    .feature-container {
        display: block;
    }
    
    .feature-image {
        display: none;
    }
}

/* 
 * 유틸리티 클래스
 */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #76B900;
    color: #ffffff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* 
 * 에러 상태 스타일
 */

.error-message {
    background: #ff4444;
    color: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    font-weight: 500;
}

/* 
 * 성공 상태 스타일
 */

.success-message {
    background: #76B900;
    color: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    font-weight: 500;
}