/* ===================================
   통합 이용후기 페이지 스타일
   Site Design Language 적용 버전
   =================================== */

.rv-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 15px 40px;
}

/* --- 상단 통계 영역 --- */
.rv-stats-section {
    background: linear-gradient(135deg, #eef4ff 0%, #e8effc 40%, #f0e6ff 100%);
    border-radius: 18px;
    padding: 28px 24px;
    margin-bottom: 20px;
    border: 1px solid #dce4f0;
}

.rv-stats-header {
    text-align: center;
    margin-bottom: 20px;
}

.rv-title {
    font-size: 22px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 6px;
    font-family: 'Noto Sans KR', sans-serif;
}

.rv-title .fa-star {
    color: #f59e0b;
    margin-right: 4px;
}

.rv-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.rv-stats-cards {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.rv-stat-card {
    text-align: center;
    flex: 1;
    max-width: 180px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    position: relative;
}

.rv-stat-icon {
    font-size: 16px;
    color: #3182f6;
    margin-bottom: 6px;
}

.rv-stat-card--rating .rv-stat-icon {
    color: #f59e0b;
}

.rv-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
    font-family: 'Oxanium', 'Pretendard', sans-serif;
}

.rv-stat-rating {
    color: #f59e0b;
}

.rv-stat-stars {
    font-size: 20px;
    letter-spacing: 2px;
    color: #f59e0b;
}

.rv-stat-stars .fa-star-o {
    color: #d1d5db;
}

.rv-stat-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 600;
}

/* 별점 분포 바 */
.rv-rating-bars {
    max-width: 340px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 14px 18px;
}

.rv-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.rv-bar-row:last-child {
    margin-bottom: 0;
}

.rv-bar-label {
    font-size: 12px;
    color: #64748b;
    width: 28px;
    text-align: right;
    flex-shrink: 0;
    font-weight: 600;
}

.rv-bar-track {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.rv-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 4px;
    transition: width 0.6s ease;
    min-width: 0;
}

.rv-bar-count {
    font-size: 12px;
    color: #9ca3af;
    width: 28px;
    text-align: left;
    flex-shrink: 0;
    font-family: 'Oxanium', sans-serif;
}

/* --- 필터/정렬 영역 --- */
.rv-filter-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.rv-category-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.rv-tab {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.rv-tab:hover {
    color: #3182f6;
    background: #eef4ff;
    border-color: #bfdbfe;
    text-decoration: none;
    transform: scale(1.04);
}

.rv-tab--active {
    color: #fff;
    background: #3182f6;
    border-color: #3182f6;
    box-shadow: 0 2px 8px rgba(49, 130, 246, 0.25);
}

.rv-tab--active:hover {
    color: #fff;
    background: #1b64da;
    transform: scale(1.04);
}

.rv-sort-wrap {
    flex-shrink: 0;
}

.rv-sort-select {
    padding: 7px 32px 7px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    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='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rv-sort-select:focus {
    outline: none;
    border-color: #3182f6;
    box-shadow: 0 0 0 2px rgba(49, 130, 246, 0.15);
}

/* --- 리뷰 카드 목록 --- */
.rv-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rv-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.rv-empty i {
    display: block;
    margin-bottom: 12px;
}

.rv-empty p {
    font-size: 15px;
    margin: 0;
}

.rv-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.rv-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 16px rgba(49, 130, 246, 0.10);
    transform: translateY(-2px);
}

.rv-card-inner {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
}

/* 로고 */
.rv-card-logo {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e8ecf1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rv-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rv-card-logo-placeholder {
    font-size: 20px;
    color: #cbd5e1;
}

/* 본문 영역 */
.rv-card-body {
    flex: 1;
    min-width: 0;
}

.rv-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.rv-site-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.rv-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    line-height: 1.4;
}

.rv-badge--verified {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.rv-badge--normal {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.rv-badge--category {
    border: 1px solid;
}

/* 별점 */
.rv-card-rating {
    margin-bottom: 4px;
    font-size: 13px;
}

.rv-card-rating .fa-star {
    color: #f59e0b;
    margin-right: 1px;
}

.rv-card-rating .fa-star-o {
    color: #d1d5db;
    margin-right: 1px;
}

.rv-rating-num {
    font-size: 13px;
    font-weight: 700;
    color: #f59e0b;
    margin-left: 4px;
    font-family: 'Oxanium', sans-serif;
}

/* 한줄평 */
.rv-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.5;
}

/* 본문 */
.rv-card-content {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 10px;
    word-break: break-all;
}

/* 하단 메타 */
.rv-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.rv-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
}

.rv-author {
    font-weight: 500;
}

.rv-date {
    color: #94a3b8;
}

.rv-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.rv-helpful {
    color: #3182f6;
    font-weight: 600;
}

.rv-lucky {
    color: #f59e0b;
    font-weight: 600;
}

/* --- 페이지네이션 --- */
.rv-pagination {
    margin-top: 24px;
    padding: 16px 0;
}

/* --- 반응형 --- */
@media (max-width: 768px) {
    .rv-stats-cards {
        flex-wrap: wrap;
    }

    .rv-stat-card {
        flex: 1 1 120px;
    }
}

@media (max-width: 640px) {
    .rv-container {
        padding: 12px 10px 30px;
    }

    .rv-stats-section {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .rv-title {
        font-size: 18px;
    }

    .rv-stats-cards {
        flex-direction: column;
        gap: 8px;
    }

    .rv-stat-card {
        max-width: 100%;
        padding: 12px;
        flex-direction: row;
    }

    .rv-stat-number {
        font-size: 22px;
    }

    .rv-filter-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .rv-card {
        border-radius: 12px;
    }

    .rv-card:hover {
        transform: none;
    }

    .rv-card-inner {
        gap: 12px;
        padding: 14px 16px;
    }

    .rv-card-logo {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .rv-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .rv-rating-bars {
        padding: 12px 14px;
    }
}

/* ===================================
   다크모드
   =================================== */
html.dark-mode .rv-stats-section {
    background: linear-gradient(135deg, #1a1f2e 0%, #1e2333 40%, #221e2e 100%);
    border-color: #2c2d32;
}

html.dark-mode .rv-title {
    color: #e5e7eb;
}

html.dark-mode .rv-title .fa-star {
    color: #f59e0b;
}

html.dark-mode .rv-subtitle {
    color: #9ca3af;
}

html.dark-mode .rv-stat-card {
    background: rgba(30, 31, 35, 0.8);
    border-color: rgba(255, 255, 255, 0.06);
}

html.dark-mode .rv-stat-number {
    color: #e5e7eb;
}

html.dark-mode .rv-stat-icon {
    color: #60a5fa;
}

html.dark-mode .rv-stat-card--rating .rv-stat-icon {
    color: #f59e0b;
}

html.dark-mode .rv-stat-label {
    color: #6b7280;
}

html.dark-mode .rv-stat-stars .fa-star-o {
    color: #4b5563;
}

html.dark-mode .rv-rating-bars {
    background: rgba(30, 31, 35, 0.6);
}

html.dark-mode .rv-bar-track {
    background: #374151;
}

html.dark-mode .rv-bar-label,
html.dark-mode .rv-bar-count {
    color: #9ca3af;
}

html.dark-mode .rv-tab {
    color: #9ca3af;
    background: #25262b;
    border-color: #333638;
}

html.dark-mode .rv-tab:hover {
    color: #60a5fa;
    background: #1e2a3a;
    border-color: #1e3a5f;
}

html.dark-mode .rv-tab--active {
    color: #fff;
    background: #3182f6;
    border-color: #3182f6;
}

html.dark-mode .rv-sort-select {
    background: #25262b;
    border-color: #3a3b40;
    color: #d1d5db;
}

html.dark-mode .rv-sort-select:focus {
    border-color: #3182f6;
    box-shadow: 0 0 0 2px rgba(49, 130, 246, 0.2);
}

html.dark-mode .rv-empty {
    background: #1e1f23;
    border-color: #2c2d32;
    color: #6b7280;
}

html.dark-mode .rv-card {
    background: #1e1f23;
    border-color: #2c2d32;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

html.dark-mode .rv-card:hover {
    border-color: #374151;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

html.dark-mode .rv-card-logo {
    background: #25262b;
    border-color: #333638;
}

html.dark-mode .rv-card-logo-placeholder {
    color: #4b5563;
}

html.dark-mode .rv-site-name {
    color: #e5e7eb;
}

html.dark-mode .rv-badge--verified {
    background: #052e16;
    color: #4ade80;
    border-color: #166534;
}

html.dark-mode .rv-badge--normal {
    background: #374151;
    color: #9ca3af;
    border-color: #4b5563;
}

html.dark-mode .rv-card-rating .fa-star {
    color: #f59e0b;
}

html.dark-mode .rv-card-rating .fa-star-o {
    color: #4b5563;
}

html.dark-mode .rv-card-title {
    color: #e5e7eb;
}

html.dark-mode .rv-card-content {
    color: #9ca3af;
}

html.dark-mode .rv-card-meta {
    color: #6b7280;
}

html.dark-mode .rv-date {
    color: #6b7280;
}

html.dark-mode .rv-helpful {
    color: #60a5fa;
}
