* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul {
    list-style: none;
}

/* 점 표시 제거 */
a {
    text-decoration: none;
    color: inherit;
}

.recipe-container {
    width: 1200px;
    margin: 40px auto;
    display: flex;
    gap: 30px;
}

/* 왼쪽 필터 */

.filter-area {
    width: 260px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 15px;
    padding: 25px;
    height: fit-content;
    margin-right: 40px;
    margin-left: -110px;
}

.filter-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section h4 {
    margin-bottom: 15px;
}

.filter-section label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}

/* 오른쪽 */

.recipe-container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    max-width: 1200px;
    margin: 100px auto;
    padding: 20px;
}

/* 오른쪽 전체 영역 (레시피 리스트 감싸는 곳) */
.recipe-area {
    flex: 1;
    border: 1px solid #e5e5e5;
    /* 왼쪽 필터 영역과 똑같은 선 색상 적용 */
    border-radius: 15px;
    /* 모서리 둥글게 */
    padding: 30px;
    /* 선 안쪽으로 여백을 줘서 답답하지 않게! */
    background-color: #fff;
    /* 안쪽 배경을 흰색으로 깔끔하게 채움 */
}

.recipe-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 30px;
}

.recipe-header h2 {
    font-size: 28px;
}

.sort-select {
    padding: 8px 12px;
}

/* 카드 */

.recipe-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.recipe-card {
    border: 1px solid #e5e5e5;
    border-radius: 15px;
    overflow: hidden;
    background: white;
}

.recipe-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.recipe-info {
    padding: 15px;
}

.recipe-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.recipe-meta {
    color: #666;
    font-size: 14px;
}

.filter-btn {
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #5a7e4d;
    color: white;
    cursor: pointer;
}

/*레시피 등록 버튼*/
.recipe-write-btn input {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #5a7e4d;
    color: white;
    cursor: pointer;
}

/* 페이징 */
.paging {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}

.paging a {
    display: inline-block;
    padding: 7px 13px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.paging a:hover {
    background-color: #f0f0f0;
}

.paging a.active {
    background-color: #4a7c59;
    /* 사이트 메인 색상에 맞게 변경하세요 */
    color: white;
    border-color: #4a7c59;
    font-weight: bold;
}

.paging a.disabled {
    color: #ccc;
    border-color: #eee;
    pointer-events: none;
    /* 클릭 막기 */
    cursor: default;
}

.paging .arrow {
    font-size: 12px;
}

/* 조리시간 선택 후 결과 없을 때 메시지 */
.empty-msg {
    text-align: center;
    color: #888;
    font-size: 15px;
    padding: 60px 0;
    word-break: keep-all;
}


/* 06-24 평점기능 CSS 수정된 부분 */
.rate {
    background: url(https://aldo814.github.io/jobcloud/html/images/user/star_bg02.png) no-repeat;
    background-size: 100px 20px; /* 🌟 이미지 크기를 강제로 맞춰서 5개 다 보이게 처리 */
    width: 55%; /* 별점 전체 영역 너비 */
    height: 20px;
    position: relative;
    
    /* 위치 조절용 추가 속성 */
    display: inline-block; /* 텍스트 옆에 나란히 오도록 설정 */
    vertical-align: middle; /* 텍스트와 세로 중앙 정렬 */
    margin-left: 5px; /* 조회수와 사이 간격 살짝 띄우기 */
    margin-bottom: 3px; /* 아래쪽 여백 살짝 확보 */
}

.rate span {
    position: absolute;
    background: url(https://aldo814.github.io/jobcloud/html/images/user/star02.png) no-repeat;
    background-size: 100px 20px; /* 🌟 부모 사이즈와 똑같이 맞춰야 이미지가 안 어긋남 */
    height: 20px;
    left: 0;
    top: 0;
}