/*  폰트 & 변수 설정 */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --navy-dark: #1a2a52; 
    --blue-primary: #0056b3; 
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: 'Pretendard', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

html {
    scrollbar-gutter: stable;
}


/* 레이아웃 공통 */
.container {
    width: min(94%, 1400px);
    max-width: 1400px;
    margin: 0 auto;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }



/* 헤더 디자인 */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid #e1e1e1;
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy-dark);
}


/* 메뉴 디자인 */
.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 10px 0;
    position: relative;
}


/* 마우스 올렸을 때 파란색 밑줄 효과 */
.main-nav a:hover {
    color: var(--blue-primary);
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--blue-primary);
    transition: 0.3s;
}
.main-nav a:hover::after {
    width: 100%;
}

.btn-login {
    font-size: 0.9rem;
    color: var(--text-light);
}


/* 사용자 정보 컨테이너 (헤더) */
.user-status {
    display: flex;
    align-items: center;
    gap: 15px; 
}

/* 아이디 강조 */
.user-id {
    font-weight: 700; 
    color: var(--blue-primary); 
}

.welcome-text {
    font-size: 0.95rem;
    color: #333;
}


/* 상단 바 버튼 공통 디자인 */
.login-btn, .logout-btn {
    padding: 6px 14px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}


/* 로그인 버튼: 파란색 포인트 */
.login-btn {
    color: #555;
}

.login-btn:hover {
    background-color: #f0f7ff;
    color: var(--blue-primary);
    border-color: var(--blue-primary);
}


/* 로그아웃 버튼: 빨간색 포인트 */
.logout-btn {
    color: #666;
    margin-left: 12px;
}

.logout-btn:hover {
    background-color: #fff5f5;
    color: #f85149;
    border-color: #f85149;
}


/* 메인 콘텐츠 영역 */
.main-content {
    flex: 1; 
    padding: 40px 0;
}


/* 푸터 디자인 (네이비 배경) */
.site-footer {
    background-color: var(--navy-dark);
    color: var(--white);
    padding: 40px 0;
    margin-top: auto;
}

.footer-logo {
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
}

.footer-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    opacity: 0.7;
}


/* 상단 헤더 사용자 아이디 링크 효과 */
.user-id-link {
    text-decoration: none; 
    cursor: pointer;
}

/* 마우스를 올렸을 때의 변화 */
.user-id-link:hover .user-id {
    text-decoration: underline; 
    color: #004494;
}
