/* ===== Custom Styles for WooRi Info System ===== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

/* Color Variables */
:root {
    --primary-color: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
}

/* Typography */
body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header Styles */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 50px; /* 80px에서 50px로 감소 - 2025년 9월 9일 오후 10:20 */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    margin-top: 10px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--gray-700);
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--primary-color);
}

/* Footer Styles */
.main-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 40px 0 20px;
    margin-top: 80px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.company-info {
    margin-bottom: 30px;
}

.company-info h3 {
    color: white;
    margin-bottom: 15px;
}

.contact-info {
    line-height: 1.8;
}

.contact-info p {
    margin: 5px 0;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-700);
    font-size: 0.875rem;
    margin-top: 30px;
}

/* Main Content */
.main-content {
    padding-top: 0 !important;
    min-height: calc(100vh - 80px);
}

/* 히어로 섹션이 없는 페이지용 (필요시 사용) */
.main-content.with-header-spacing {
    padding-top: 80px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 15px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-description {
    font-size: 1.25rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.5rem; }
    .nav-menu { gap: 20px; }
}

@media (max-width: 640px) {
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 1.25rem; }
}

/* Header Scroll Hide Functionality */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.main-header.header-hidden {
    transform: translateY(-100%);
}

/* Remove padding from body - let individual sections handle it */
body.header-hidden {
    /* Optional: Add visual feedback when header is hidden */
}

/* Ensure smooth animation */
.main-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.main-header.header-hidden::after {
    opacity: 0;
}

/* 로고 이미지 스타일 */
.logo-image {
    height: 40px;
    max-width: 150px;
    object-fit: contain;
    margin-right: 2px;  /* 간격 축소: 10px -> 2px */
    vertical-align: middle;
}

.company-logo {
    display: flex;
    align-items: center;
    gap: 3px;  /* 간격 축소: 10px -> 3px */
}

.company-logo:hover .logo-image {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* ===== 헤더 포커스 아웃라인 제거 (2025년 9월 9일 오후 10:10) ===== */
/* 헤더의 모든 버튼과 링크에서 포커스 아웃라인 제거 */
.main-header a:focus,
.main-header button:focus,
.header-container a:focus,
.header-container button:focus,
.nav-link:focus,
.nav-item a:focus,
.dropdown-item:focus,
.mobile-menu-toggle:focus,
.mobile-nav-link:focus,
.mobile-dropdown-item:focus,
.company-logo:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* 대체 포커스 스타일 (접근성 유지) */
.main-header a:focus-visible,
.main-header button:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    /* 포커스 시 색상 변경으로 대체 */
    color: var(--primary-color);
}

/* 모바일 메뉴 토글 버튼 포커스 제거 */
.mobile-menu-toggle:focus,
.mobile-menu-toggle:focus-visible,
.mobile-menu-toggle:active {
    outline: none !important;
    box-shadow: none !important;
}
