/* ==========================================================================
   10. 카테고리 전체보기 모달 팝업 스타일 
   ========================================================================== */
/* 1. 모달 배경 차단막 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* 2. 메인 모달 박스 */
.modal-content {
    background: #fff;
    width: 95%;
    max-width: 1150px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 닫기 버튼 */
.modal-close-btn {
    position: absolute;
    bottom: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #333;
    z-index: 10;
    font-weight: 300;
    line-height: 1;
}

/* 바디 레이아웃 설정  */
.modal-body {
    display: flex;
    height: 600px;
    align-items: stretch;
}

/* 3. 좌측 대카테고리 사이드바 */
.modal-sidebar {
    width: 180px;
    background: #eeedea;
    border-right: 1px solid #eaeaea;

    padding: 15px 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
    flex-shrink: 0;

    height: 100%;
    overflow-y: auto;
}

.modal-sidebar2 {
    width: 180px;
    background: #eeedea;
    border-right: 1px solid #eaeaea;

    padding: 15px 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
    flex-shrink: 0;

    height: 100%;
    overflow-y: auto;
}

.sidebar-item {
    padding: 12px 24px;
    font-size: 15px;
    color: #444;
    cursor: pointer;
    background: transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.sidebar-item-active {
    background: #e4e3df !important;
    padding: 12px 24px;
    font-size: 15px;
    color: #222;
    cursor: pointer;
    background: transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.sidebar-item:hover {
    background: #e4e3df;
    color: #222;
}

/* 클릭해서 고정되었을 때 스타일 */


/* 4. 중앙 메인 카테고리 구역*/
.modal-main {
    flex: 1;
    padding: 40px 35px;
    background: #fcfbf9;
    overflow-y: auto;
}

/* 바둑판 정렬용 그리드 wrapper */
.category-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px 25px;
}

/* 소분류 스타일 */
.menu-group {
    width: 100%;
}

.menu-group h3 {
    font-size: 16px;
    color: #222;
    margin-bottom: 14px;
    font-weight: bold;
}

.menu-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-group ul li {
    margin-bottom: 9px;
    color: #666;
    font-size: 14px;
}

.menu-group ul li input {
    text-decoration: none;
    border: none;
    background-color: #fcfbf9;
    font-size: 14px;
    color: #666;
}

.menu-group ul li input:hover {
    color: #111;
    font-weight: 500;
}

.menu-group ul li a:hover {
    color: #111;
    font-weight: 500;
}

.menu-group .more-btn {
    display: inline-block;
    font-size: 13px;
    color: #999 !important;
    text-decoration: none;
    margin-top: 2px;
}

/* 5. 우측 추천 레시피 배너 구역  */
.modal-banner-side {
    width: 260px;
    background: #f5f4f0;
    border-left: 1px solid #eaeaea;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* 크기 줄어들지 않게 고정 */
}

.banner-img-box {
    width: 100%;
    height: 200px;
    background: #eee;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.banner-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-banner-side h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #222;
}

.modal-banner-side p {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
    margin-bottom: 20px;
}

.banner-go-btn {
    background: #556046;
    color: white;
    border: none;
    padding: 11px 24px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

/* ==========================================================================
    카테고리 상세창 (modal-main-banner) 스타일
   ========================================================================== */

.catagory-detail {
    display: none;
}

.modal-main-banner {
    flex: 1;
    padding: 40px 35px;
    background: #fcfbf9;
    overflow-y: auto;
}

/* 상단 카테고리 제목 스타일 */
.modal-main-banner h2 {
    font-size: 22px;
    color: #222;
    margin-bottom: 24px;
    font-weight: bold;
    border-bottom: 2px solid #556046;
    /* 포인트 컬러 */
    padding-bottom: 10px;
    display: inline-block;
}

/* 음식 리스트를 바둑판(Grid) 배열로 만들기 */
.main-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    /* 공간 크기에 맞춰서 140px 이상의 카드를 자동으로 꽉 채움 */
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

/* 개별 음식 카드 스타일 */
.main-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #444;
    font-size: 15px;
    text-decoration: none;
    padding: 16px 10px;
    border: 1px solid #e4e3df;
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    text-align: center;
    word-break: keep-all;
    /* 단어 단위로 줄바꿈되도록 설정 */
}

/* 마우스 올렸을 때 효과 (Hover) */
.main-list li a:hover {
    background: #556046;
    color: #fff;
    border-color: #556046;
    transform: translateY(-3px);
    /* 살짝 위로 뜨는 효과 */
    box-shadow: 0 6px 12px rgba(85, 96, 70, 0.2);
    font-weight: 500;
}

.today-recommend-inner-span {
    background-color: #E74C3C;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: -0.5px;
}

.today-recommend-inner-span h5 {
    font-size: 1.4rem;
    color: #2C3E50;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
}

.today-recommend-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.today-recommend-header {
    margin: -70px 0 20px 0;
    width: 100%;
    height: 10%;
}