/* ==========================네비게이션========================== */
@font-face {
	font-family: 'NanumGothic';
	src: url('/fonts/NanumGothic.woff2') format('woff2'),
		url('/fonts/NanumGothic.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}


	@font-face {
    font-family: 'BMJUA';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/BMJUA.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'RecipeKorea';
    src: url('/fonts/Recipekorea.otf');
    font-weight: normal;
    font-style: normal;
}

body {
    padding-top: 100px;
  
}
.title_font{
	font-family: 'RecipeKorea','BMJUA', sans-serif;
	
}

.header {
    box-shadow: 1px 1px 4px rgba(21, 203, 94, 0.5);
    position: fixed;
    width: 100%;
    top: 0 !important;
    z-index: 9999 !important;
    height: 100px;
    overflow: hidden;
      font-family: 'RecipeKorea','NanumGothic', sans-serif;
    background-color: #F8F9FA;
 	transition: transform 0.3s ease-in-out;
}



/* 전체 네비게이션 정렬 */
.nav-container {
    display: flex;
    height: 100%;
    position: relative;
}

.header ul {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    height: 100%;
    background-color: #F8F9FA
}

.header li a {
    display: block;
    text-decoration: none;
    height: 100%;
    background-color: #F8F9FA; 
    padding: 0 18px;
}

.header .logo {
    display: block;
    float: left;
    font-size: 2em;
    text-decoration: none;
}

/* 로고 */
.logo {
    display: flex;
    position: relative;
    top: 3px;
}

.logo img {
    width: 130px;

}

.profile-menu {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-menu .fa-user {
    font-size: 1.5rem;
    line-height: 100px; /* 아이콘 세로 중앙 정렬 */
}

/* 가운데 그룹 (레시피 - 로고 - 쇼핑) */
.center-group {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
    gap: 40px;
}

/* 네비게이션 메뉴 */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
    background-color: #e6ffb7;
    height: 100%; /* 부모 높이 상속 */
}

.nav-menu a {
    text-decoration: none;
    color: #000;
    font-size: 1.2rem !important;
    line-height: 142px; /* 글씨 세로 중앙 정렬 */
    transition: color 0.3s ease;
}

.nav-menu:hover a {
    color: #15CB5E !important;
    position: relative;
}

.nav-menu:hover a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 10px;
    background: radial-gradient(ellipse at center, rgba(21, 203, 94, 0.5), rgba(21, 203, 94, 0));
    filter: blur(5px);
    opacity: 1;
}

/* 햄버거 버튼 */
.menu-btn {
    display: none;
}

.menu-icon {
    cursor: pointer;
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    padding: 15px;
}

.menu-icon .navicon {
    background: #333;
    display: block;
    height: 2px;
    width: 22px;
    position: relative;
    transition: background 0.2s ease-out;
}

.menu-icon .navicon:before,
.menu-icon .navicon:after {
    background: #333;
    content: "";
    display: block;
    height: 2px;
    position: absolute;
    width: 100%;
    transition: all 0.2s ease-out;
}

.menu-icon .navicon:before {
    top: -6px;
}

.menu-icon .navicon:after {
    top: 6px;
}

/* 모바일 메뉴 */
.mobile-menu {
	    position: fixed;
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #e6ffb7;
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
        transition: transform 0.3s ease;
         transform: translateY(0);
}

.icon-hidden {
  opacity: 0 !important;
}

.mobile-menu li {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu li a {
    text-decoration: none;
    color: black;
    font-size: 1.3rem;
    display: block;
    width: 100%;
    line-height: normal; /* 모바일 메뉴는 기본 정렬 유지 */
    transition: color 0.3s ease;
}

.mobile-menu li:hover a {
       color: #15CB5E !important;
}
/* 햄버거 버튼 애니메이션 */
#menu-btn:checked ~ .menu-icon .navicon {
    background: transparent;
}

#menu-btn:checked ~ .menu-icon .navicon:before {
    transform: rotate(-45deg);
    top: 0;
}

#menu-btn:checked ~ .menu-icon .navicon:after {
    transform: rotate(45deg);
    top: 0;
}

#menu-btn:checked ~ .mobile-menu {
    display: block;
}


/* 반응형 (1100px 이하에서 모바일 메뉴 활성화) */
@media (max-width: 1100px) {
    .menu-icon {
        display: block;
    }
    
    .nav-menu, .profile-menu {
        display: none;
    }
    
    
    .mobile-menu {
        top: 100px;
        height: 346px !important;
    }
    
    /* 모바일 메뉴 아이콘 */
    .mobile-menu li a i {
        margin-right: 10px;
    }
    

}