/* ═══════════════════════════════════════
   WCC 리뷰 카드 캐러셀
═══════════════════════════════════════ */

.wrc-wrapper {
    position: relative;
    width: 100%;
}

.wrc-swiper {
    overflow: hidden;
    width: 100%;
}

/* ── 카드 ── */
.wrc-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.2s, transform 0.2s;
}

.wrc-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.wrc-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    gap: 10px;
}

/* ── 제목 ── */
.wrc-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
}

/* ── 요약 ── */
.wrc-excerpt {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
}

/* ── 하단 (작성자 + 화살표) ── */
.wrc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

/* ── 작성자 ── */
.wrc-author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wrc-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e5e7eb;
}

.wrc-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wrc-author-name {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── 별점 ── */
.wrc-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
}

.wrc-star {
    color: #f59e0b;
    font-size: 13px;
    line-height: 1;
}

.wrc-rating-val {
    color: #374151;
}

/* ── 화살표 버튼 ── */
.wrc-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    color: #374151;
    font-size: 16px;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.wrc-card:hover .wrc-arrow {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

/* ── swiper slide 높이 통일 ── */
.wrc-swiper .swiper-wrapper {
    align-items: stretch;
}

.wrc-swiper .swiper-slide {
    height: auto;
}

/* ── 네비게이션 화살표 ── */
.wrc-nav-prev,
.wrc-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.2s, border-color 0.2s;
}

.wrc-nav-prev { left: -20px; }
.wrc-nav-next { right: -20px; }

.wrc-nav-prev:hover,
.wrc-nav-next:hover {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.wrc-nav-prev.swiper-button-disabled,
.wrc-nav-next.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ── 페이지네이션 ── */
.wrc-pagination {
    position: relative;
    text-align: center;
    margin-top: 20px;
}

.wrc-pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: #d1d5db;
    opacity: 1;
    transition: background 0.2s, width 0.2s;
    border-radius: 4px;
}

.wrc-pagination .swiper-pagination-bullet-active {
    background: #374151;
    width: 20px;
}

/* ── 반응형 ── */
@media (max-width: 768px) {
    .wrc-nav-prev { left: -10px; }
    .wrc-nav-next { right: -10px; }
    .wrc-nav-prev, .wrc-nav-next { width: 32px; height: 32px; }
    .wrc-card { padding: 18px; }
    .wrc-title { font-size: 15px; }
}

@media (max-width: 480px) {
    .wrc-nav-prev, .wrc-nav-next { display: none; }
}
