@charset "utf-8";

/* ============================================================
   jj_review 목록 전용 스타일
   ============================================================ */

/* 카드 리스트 */
.rv-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

/* 개별 카드 */
.rv-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border, #e8e4e0);
    border-radius: 10px;
    padding: 16px 20px;
    transition: all 0.3s ease;
}
.rv-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.rv-card-notice {
    background: var(--brand-light, #fcf6f0);
    border-color: var(--brand, #7A4A21);
    border-width: 2px;
}

/* 체크박스 */
.rv-card-check {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 2;
}
.rv-card-check .selec_chk {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    opacity: 0;
    outline: 0;
    z-index: -1;
    overflow: hidden;
}
.rv-card-check label {
    display: block;
    cursor: pointer;
}
.rv-card-check label span {
    display: block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border, #e8e4e0);
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s;
}
.rv-card-check input:checked + label span {
    background: var(--brand, #7A4A21);
    border-color: var(--brand, #7A4A21);
    position: relative;
}
.rv-card-check input:checked + label span::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* 카드 링크 */
.rv-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 공지 배지 */
.rv-badge-notice {
    display: inline-block;
    padding: 2px 12px;
    background: var(--accent);
    color: var(--brand-d, #5a3418);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ★ 웹진형 내부 - gap 증가 */
.rv-card-inner {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* 썸네일 */
.rv-thumb-wrap {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}
.rv-thumb {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border, #e8e4e0);
    transition: border-color 0.3s;
}
.rv-card:hover .rv-thumb {
    border-color: var(--accent);
}
.rv-thumb-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--border, #e8e4e0);
    transition: border-color 0.3s;
}
.rv-card:hover .rv-thumb-placeholder {
    border-color: var(--accent);
}
.rv-thumb-placeholder span {
    font-size: 40px;
    line-height: 1;
}

/* NEW 뱃지 */
.rv-badge-new-overlay {
    position: absolute;
    top: -4px;
    right: -4px;
    display: inline-block;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: #e74c3c;
    border-radius: 12px;
    line-height: 22px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    z-index: 3;
    animation: pulse-new 1.5s ease-in-out infinite;
}
@keyframes pulse-new {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 오른쪽 내용 */
.rv-body {
    flex: 1;
    min-width: 0;
    padding-right: 30px;
}

/* ★ 별점 (왼쪽) + 작성자/날짜 (오른쪽) */
.rv-top-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.rv-stars {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #F5A623;
    text-shadow: 0 1px 2px rgba(245, 166, 35, 0.2);
    flex-shrink: 0;
}

.rv-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.rv-author {
    color: var(--brand, #7A4A21);
    font-weight: 600;
    font-size: 13px;
}

.rv-date {
    font-size: 12px;
    color: var(--txt-s, #999);
}

/* ★ 제목 (아래) */
.rv-title-wrap {
    margin-bottom: 0;
}
.rv-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--txt, #333);
    display: block;
    text-align: left;
    line-height: 1.4;
}

/* 상단 바 */
.rv-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 0px;
    border-bottom: 0px solid var(--border, #e8e4e0);
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}
.rv-total {
    font-size: 14px;
    color: var(--txt-s, #999);
}
.rv-total .num {
    font-weight: 700;
    color: var(--brand, #7A4A21);
    font-size: 18px;
}
.rv-write-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--brand, #7A4A21);
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.rv-write-btn:hover {
    background: var(--brand-d, #5a3418);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(122, 74, 33, 0.3);
    color: #fff;
    text-decoration: none;
}

/* 하단 버튼 */
.bo_fx {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0px 0 6px;
    padding-top: 0px;
    border-top: 0px solid var(--border, #e8e4e0);
}
.btn_bo_user {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.btn_bo_user li {
    position: relative;
}
.more_opt {
    display: none;
    position: absolute;
    top: auto;
    bottom: 42px;
    right: 0;
    background: #fff;
    border: 1px solid var(--border, #e8e4e0);
    border-radius: 8px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    min-width: 110px;
}
.more_opt::before {
    content: "";
    position: absolute;
    top: auto;
    bottom: -6px;
    right: 10px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-top: 1px solid var(--border, #e8e4e0);
    border-left: 1px solid var(--border, #e8e4e0);
    transform: rotate(225deg);
}
.more_opt li {
    border-bottom: 1px solid #f0f0f0;
    padding: 9px 14px;
}
.more_opt li:last-child {
    border-bottom: 0;
}
.more_opt li button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #555;
    font-size: 13px;
    text-align: left;
    padding: 0;
    cursor: pointer;
}
.more_opt li i {
    margin-right: 6px;
}

/* 페이징 */
.pg_wrap {
    text-align: center;
    margin: 30px 0 20px;
}
.pg {
    display: inline-block;
}
.pg a,
.pg strong {
    display: inline-block;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    margin: 0 2px;
    font-size: 14px;
    line-height: 32px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    color: #555;
    text-align: center;
    transition: all 0.2s;
}
.pg strong {
    background: var(--brand, #7A4A21);
    border-color: var(--brand, #7A4A21);
    color: #fff;
    font-weight: 600;
}
.pg a:hover {
    background: #f5f5f5;
    border-color: var(--brand, #7A4A21);
    color: var(--brand, #7A4A21);
}
.pg_start a,
.pg_prev a,
.pg_next a,
.pg_end a {
    font-size: 0 !important;
    position: relative;
}
.pg_start a:before {
    content: "\f100";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.pg_prev a:before {
    content: "\f104";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.pg_next a:before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.pg_end a:before {
    content: "\f101";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* 검색 */
.bo_sch_wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}
.bo_sch_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.25);
}
.bo_sch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(360px, 90vw);
    background: #fff;
    border: 1px solid var(--border, #e8e4e0);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.bo_sch h3 {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--txt, #333);
    border-bottom: 1px solid #eee;
    margin: 0;
}
.bo_sch form {
    padding: 16px 20px 20px;
}
.bo_sch select {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--border, #e8e4e0);
    border-radius: 4px;
    font-size: 13px;
    color: #444;
    background: #fff;
}
.bo_sch select:focus {
    border-color: var(--brand, #7A4A21);
    outline: none;
}
.bo_sch .sch_bar {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    border: 1px solid var(--border, #e8e4e0);
    border-radius: 4px;
    overflow: hidden;
}
.bo_sch .sch_input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    border: none;
    background: #fff;
    font-size: 13px;
    color: var(--txt, #333);
}
.bo_sch .sch_input:focus {
    outline: none;
}
.bo_sch .sch_btn {
    width: 44px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--border, #e8e4e0);
    background: #fff;
    color: var(--txt-s, #999);
    font-size: 15px;
    cursor: pointer;
}
.bo_sch .sch_btn:hover {
    color: var(--brand, #7A4A21);
}
.bo_sch .bo_sch_cls {
    position: absolute;
    top: 0;
    right: 0;
    padding: 14px 16px;
    font-size: 16px;
    color: #bbb;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* 반응형 */
@media (max-width: 768px) {
    .rv-card {
        padding: 14px 16px;
    }
    .rv-card-inner {
        gap: 16px;
    }
    .rv-thumb-wrap {
        width: 70px;
        height: 70px;
    }
    .rv-thumb-placeholder span {
        font-size: 28px !important;
    }
    .rv-stars {
        font-size: 14px;
    }
    .rv-title {
        font-size: 15px;
    }
    .rv-body {
        padding-right: 24px;
    }
    .rv-author {
        font-size: 12px;
    }
    .rv-date {
        font-size: 11px;
    }
    .rv-meta {
        gap: 6px;
    }
    .rv-badge-new-overlay {
        font-size: 10px;
        line-height: 20px;
        padding: 0 8px;
        top: -2px;
        right: -2px;
    }
}

@media (max-width: 480px) {
    .rv-card {
        padding: 12px 12px;
    }
    .rv-card-inner {
        gap: 12px;
    }
    .rv-thumb-wrap {
        width: 56px;
        height: 56px;
    }
    .rv-thumb-placeholder span {
        font-size: 22px !important;
    }
    .rv-stars {
        font-size: 12px;
        letter-spacing: 1px;
    }
    .rv-title {
        font-size: 14px;
    }
    .rv-body {
        padding-right: 20px;
    }
    .rv-top-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .rv-meta {
        gap: 6px;
        flex-wrap: wrap;
    }
    .rv-author {
        font-size: 11px;
    }
    .rv-date {
        font-size: 10px;
    }
    .rv-card-check {
        top: 8px;
        right: 8px;
    }
    .rv-card-check label span {
        width: 16px;
        height: 16px;
    }
    .rv-badge-new-overlay {
        font-size: 9px;
        line-height: 18px;
        padding: 0 6px;
        top: -2px;
        right: -2px;
    }
}