/* 숏코드 스타일 - 목록 및 상세 페이지 */

/* ===== 필터 영역 ===== */
.crc-review-list {
    padding: 20px 0;
}

.crc-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.crc-filter-selects {
    display: flex;
    gap: 15px;
}

.crc-filter-select {
    position: relative;
}

.crc-select {
    appearance: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 40px 10px 15px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    min-width: 140px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.crc-select:focus {
    outline: none;
    border-color: #00b894;
}

.crc-search-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.crc-search-input {
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    min-width: 200px;
    outline: none;
}

.crc-search-btn {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
}

.crc-search-btn:hover {
    color: #00b894;
}

/* ===== 리뷰 그리드 ===== */
.crc-review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.crc-review-list[data-columns="2"] .crc-review-grid {
    grid-template-columns: repeat(2, 1fr);
}

.crc-review-list[data-columns="4"] .crc-review-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== 리뷰 카드 ===== */
.crc-review-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.crc-review-card:hover {
    border-color: #00b894;
    box-shadow: 0 5px 20px rgba(0, 184, 148, 0.1);
}

.crc-card-link {
    display: block;
    padding: 25px;
    text-decoration: none;
    color: inherit;
}

.crc-card-header {
    margin-bottom: 12px;
}

.crc-counselor-name {
    font-size: 13px;
    color: #f39c12;
    font-weight: 500;
}

.crc-review-card .crc-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crc-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #888;
}

.crc-card-category {
    background: #f5f5f5;
    padding: 3px 10px;
    border-radius: 4px;
}

.crc-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.crc-star {
    color: #f39c12;
}

.crc-review-card .crc-card-content {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

.crc-review-card .crc-card-content p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crc-review-card .crc-highlight {
    color: #00b894;
    font-weight: 500;
}

/* ===== 페이지네이션 ===== */
.crc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 40px;
}

.crc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.2s ease;
}

.crc-pagination .page-numbers:hover {
    border-color: #00b894;
    color: #00b894;
}

.crc-pagination .page-numbers.current {
    background: #00b894;
    border-color: #00b894;
    color: #fff;
}

.crc-no-reviews {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

/* ===== 상세 페이지 ===== */
.crc-review-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.crc-detail-nav {
    display: flex;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.crc-nav-item {
    flex: 1;
    padding: 15px 20px;
    border-right: 1px solid #eee;
}

.crc-nav-item:last-child {
    border-right: none;
}

.crc-nav-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.crc-nav-item a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crc-nav-item a:hover {
    color: #00b894;
}

.crc-nav-current {
    background: #fff;
}

.crc-detail-content {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 40px;
}

.crc-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 2px solid #2c3e50;
    margin-bottom: 30px;
}

.crc-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.crc-detail-views {
    font-size: 14px;
    color: #888;
    white-space: nowrap;
    margin-left: 20px;
}

.crc-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.crc-detail-body p {
    margin-bottom: 1.5em;
}

.crc-detail-body strong {
    color: #2c3e50;
}

.crc-error {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
}

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
    .crc-review-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .crc-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .crc-filter-selects {
        flex-wrap: wrap;
    }

    .crc-select {
        width: 100%;
    }

    .crc-search-box {
        width: 100%;
    }

    .crc-search-input {
        flex: 1;
        min-width: auto;
    }

    .crc-review-grid {
        grid-template-columns: 1fr;
    }

    .crc-detail-nav {
        flex-direction: column;
    }

    .crc-nav-item {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .crc-nav-item:last-child {
        border-bottom: none;
    }

    .crc-detail-content {
        padding: 25px;
    }

    .crc-detail-header {
        flex-direction: column;
        gap: 10px;
    }

    .crc-detail-views {
        margin-left: 0;
    }

    .crc-detail-title {
        font-size: 22px;
    }
}