
@charset "UTF-8";

/* 1. 기본 초기화 및 폰트 설정 */
@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=Nanum+Gothic&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Nanum Gothic", sans-serif !important;
    background-color: #F9F7F2; /* 배경: 소프트 크림 (눈이 아주 편안함) */
    color: #2C3E50;           /* 기본 글자색: 딥 네이비 톤의 다크 그레이 */
    margin: 0;
    padding: 0;
}

/* 2. Header (딥 네이비 적용) */
header {
    background-color: #2C3E50; /* 딥 네이비 */
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

header h1 {
    margin: 0;
    padding: 0;
    font-size: 24px;
}

/* 3. Navigation 영역 (헤더보다 살짝 밝은 네이비) */
.top-nav {
    background-color: #34495E; /* 조금 더 밝은 네이비 */
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.nav-left, .nav-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #ECF0F1; /* 네비게이션 글자색은 밝게 */
    font-size: 14px;
}

nav a:hover {
    color: #E67E22; /* 호버 시 강조색: 차분한 오렌지 */
    text-decoration: underline;
}

.logout-link {
    font-size: 12px;
    margin-left: 5px;
    color: #E67E22 !important;
}

/* 4. Footer */
footer {
    background-color: #2C3E50;
    height: 35px;
    line-height: 35px;
    text-align: center;
    color: #ffffff;
}

/* 5. 검색 기능 관련 스타일 */
.search-trigger {
    font-size: 1.2rem;
    color: #ECF0F1;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 33%;
    min-width: 350px;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    transition: right 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    padding: 40px 30px;
}

.search-overlay.active {
    right: 0;
}

.search-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.search-close-btn {
    margin-left: auto;  
    
    /* 기존 스타일 유지 */
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: #2C3E50;
    line-height: 1;
    
    margin-bottom: 60px;
}

/* 검색 입력창 컨테이너 (가로 너비에 맞게 조정) */
.search-form-container {
    width: 100%; /* 부모(33%) 안에서 꽉 차게 */
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #E67E22; /* 강조색: 차분한 오렌지 */
    padding-bottom: 5px;
}

.search-input-wrapper input {
    width: 100%;
    border: none;
    outline: none;
    background: none;
    font-size: 20px;
    font-weight: bold;
    color: #2C3E50;
}

.search-btn {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #E67E22;
}

.search-dim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    display: none;
}
.search-dim.active {
    display: block;
}


/* 로그인 상태의 사용자 이름 스타일 */
.user-info-text {
    font-size: 14px;
    font-weight: bold;       /* 굵게 해서 눈에 띄게 */
    color: #E67E22;          /* 포인트 오렌지색 적용 */
    margin-right: 10px;
}

/* 로그아웃 링크와의 간격 조정 */
.logout-link {
    font-size: 12px;
    margin-left: 5px;
    color: #BDC3C7 !important; /* 로그아웃은 약간 연하게 (대비 효과) */
    text-decoration: none;
}

.logout-link:hover {
     color: #E67E22 !important; /* 마우스 올리면 흰색으로 */
}