/* ===== SALPI v5.0 통합 스타일시트 ===== */

/* ===== 기본 리셋 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #2c3e50;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    padding-top: 80px; /* navbar 높이만큼 */
}

/* ===== 네비게이션 바 ===== */
.salpi-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: #5a67d8 !important;
}

/* ===== 네비게이션 메뉴 ===== */
.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    color: #7f8c8d !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #667eea !important;
}

/* ===== 드롭다운 서브메뉴 ===== */
.navbar-nav .dropdown-submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 200px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    display: none;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* hover 시 드롭다운 표시 */
.navbar-nav .nav-item.has-dropdown:hover .dropdown-submenu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-submenu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.dropdown-submenu a:hover {
    background: #f8f9fa;
    color: #667eea;
    padding-left: 2rem;
}

.dropdown-submenu a i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
    display: inline-block;
}

/* 드롭다운 있는 메뉴 표시 */
.nav-item.has-dropdown > .nav-link::after {
    content: "▾";
    margin-left: 0.25rem;
    font-size: 0.75rem;
    opacity: 0.6;
    display: inline-block;
}

/* ===== 버튼 스타일 ===== */
.btn {
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b42a0 100%);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 24px;
}

/* ===== 페이지 서브메뉴 ===== */
.submenu-nav {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e8ecf0;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.submenu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.submenu-tabs {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.submenu-tab {
    padding: 0.5rem 1rem;
    color: #7f8c8d;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submenu-tab:hover {
    color: #667eea;
    text-decoration: none;
}

.submenu-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* ===== 페이지 헤더 ===== */
.page-header {
    padding: 4rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== 메인 콘텐츠 영역 ===== */
.main-content {
    padding: 3rem 0;
}

.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #667eea;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* ===== Footer ===== */
.footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 3rem 2rem 2rem;
    margin-top: 5rem;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .salpi-navbar {
        padding: 0.5rem 0;
    }
    
    .dropdown-submenu {
        position: static !important;
        width: 100%;
        box-shadow: none !important;
        background: #f8f9fa !important;
        margin-top: 0.5rem;
        border-radius: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    
    .navbar-nav .nav-item.has-dropdown:hover .dropdown-submenu {
        display: none !important;
    }
    
    .navbar-nav .nav-item.show .dropdown-submenu {
        display: block !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .submenu-tabs {
        overflow-x: auto;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

/* ===== 유틸리티 클래스 ===== */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.p-3 {
    padding: 1rem;
}

.shadow {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rounded {
    border-radius: 8px;
}

/* ===== 애니메이션 ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* ===== 스크롤바 커스터마이징 ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
