/* ==============================================
   Reviews Page Styles - Premium Redesign
   YourIT - Service Reviews (서비스 이용후기)
   Modern, Clean, User-Friendly UI
============================================== */

/* ==================== CSS Variables ==================== */
:root {
    --reviews-primary: #00D4AA;
    --reviews-primary-dark: #00B896;
    --reviews-gradient: linear-gradient(135deg, #00D4AA 0%, #00B4D8 100%);
    --reviews-gradient-hover: linear-gradient(135deg, #00B896 0%, #009FC3 100%);
    --reviews-text-dark: #191f28;
    --reviews-text-gray: #4e5968;
    --reviews-text-light: #8b95a1;
    --reviews-bg-light: #f8fafb;
    --reviews-bg-white: #ffffff;
    --reviews-border: #e5e8eb;
    --reviews-border-light: #f2f4f6;
    --reviews-star: #FFD43B;
    --reviews-star-empty: #e5e8eb;
    --reviews-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --reviews-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --reviews-shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.12);
    --reviews-shadow-primary: 0 12px 32px rgba(0, 212, 170, 0.25);
    --reviews-radius-sm: 8px;
    --reviews-radius-md: 12px;
    --reviews-radius-lg: 20px;
    --reviews-radius-xl: 28px;
    --reviews-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== Hero Section ==================== */
.reviews-hero {
    position: relative;
    padding: 140px 0 100px;
    background: linear-gradient(180deg, #f8fafb 0%, #ffffff 100%);
    overflow: hidden;
}

.reviews-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 70%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(0, 212, 170, 0.08) 0%, transparent 65%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite;
}

.reviews-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 180, 216, 0.06) 0%, transparent 60%);
    pointer-events: none;
    animation: heroGlow 10s ease-in-out infinite reverse;
}

@keyframes heroGlow {
    0%, 100% { transform: scale(1) translateY(0); opacity: 1; }
    50% { transform: scale(1.1) translateY(-20px); opacity: 0.8; }
}

.reviews-hero .container {
    position: relative;
    z-index: 2;
}

.reviews-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.hero-text {
    flex: 1;
    max-width: 580px;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.12) 0%, rgba(0, 180, 216, 0.12) 100%);
    border: 1px solid rgba(0, 212, 170, 0.25);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--reviews-primary);
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--reviews-text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--reviews-text-gray);
}

/* ==================== Stats Card - Premium Design ==================== */
.hero-stats-card {
    background: var(--reviews-bg-white);
    border-radius: var(--reviews-radius-xl);
    padding: 40px 44px;
    box-shadow: var(--reviews-shadow-lg);
    min-width: 380px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.hero-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--reviews-gradient);
}

.hero-stats-card::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.stats-rating {
    text-align: center;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.rating-score {
    font-size: 72px;
    font-weight: 800;
    color: var(--reviews-text-dark);
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #191f28 0%, #4e5968 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.rating-stars i {
    font-size: 24px;
    color: var(--reviews-star);
    filter: drop-shadow(0 2px 4px rgba(255, 212, 59, 0.3));
    transition: var(--reviews-transition);
}

.rating-stars i:hover {
    transform: scale(1.2) rotate(5deg);
}

.rating-stars i.far {
    color: var(--reviews-star-empty);
    filter: none;
}

.rating-count {
    font-size: 15px;
    color: var(--reviews-text-light);
    font-weight: 500;
}

.rating-count strong {
    color: var(--reviews-primary);
    font-weight: 700;
}

/* Stats Bars */
.stats-bars {
    padding-top: 24px;
    border-top: 1px solid var(--reviews-border-light);
}

.stats-bar-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 6px 8px;
    margin: 0 -8px 8px;
    border-radius: var(--reviews-radius-sm);
    transition: var(--reviews-transition);
}

.stats-bar-row:hover {
    background: var(--reviews-bg-light);
}

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

.bar-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--reviews-text-gray);
    min-width: 36px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bar-label::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFD43B'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.bar-track {
    flex: 1;
    height: 10px;
    background: var(--reviews-border-light);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: var(--reviews-gradient);
    border-radius: 5px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.bar-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--reviews-text-light);
    min-width: 48px;
    text-align: right;
}

/* ==================== Incentive Banner ==================== */
.reviews-incentive {
    padding: 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.incentive-card {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border-radius: var(--reviews-radius-xl);
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    color: #fff;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.35);
    position: relative;
    overflow: hidden;
}

.incentive-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.incentive-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.incentive-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.incentive-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.incentive-text strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.incentive-text span {
    font-size: 15px;
    opacity: 0.95;
    line-height: 1.5;
}

.incentive-text em {
    font-style: normal;
    font-weight: 700;
    color: #fef08a;
}

.incentive-best {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 14px 24px;
    border-radius: var(--reviews-radius-md);
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.incentive-best i {
    font-size: 20px;
    color: #fef08a;
}

.incentive-best em {
    font-style: normal;
    font-weight: 700;
    color: #fef08a;
}

.btn-write-review {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #fff;
    color: #6366f1;
    border-radius: var(--reviews-radius-md);
    font-size: 16px;
    font-weight: 700;
    transition: var(--reviews-transition);
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-write-review:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-write-review i {
    font-size: 14px;
}

/* ==================== Best Reviews Section ==================== */
.best-reviews-section {
    padding: 100px 0 80px;
    background: var(--reviews-bg-light);
    position: relative;
}

.best-reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--reviews-border), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--reviews-text-dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-header h2 i {
    color: var(--reviews-star);
    font-size: 32px;
}

.section-header p {
    font-size: 17px;
    color: var(--reviews-text-gray);
}

.best-reviews-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.best-review-card {
    background: var(--reviews-bg-white);
    border-radius: var(--reviews-radius-lg);
    padding: 36px;
    position: relative;
    box-shadow: var(--reviews-shadow-sm);
    transition: var(--reviews-transition);
    overflow: hidden;
    border: 1px solid transparent;
}

.best-review-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--reviews-shadow-lg);
    border-color: rgba(0, 212, 170, 0.2);
}

.best-review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--reviews-gradient);
    opacity: 0;
    transition: var(--reviews-transition);
}

.best-review-card:hover::before {
    opacity: 1;
}

.best-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #FFD43B 0%, #FFA500 100%);
    color: #191f28;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(255, 212, 59, 0.3);
    letter-spacing: 0.3px;
}

.best-badge i {
    font-size: 11px;
}

.best-review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-right: 100px; /* BEST 배지 공간 확보 */
}

.reviewer-avatar {
    width: 56px;
    height: 56px;
    background: var(--reviews-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--reviews-text-dark);
    margin-bottom: 4px;
}

.reviewer-company {
    display: block;
    font-size: 14px;
    color: var(--reviews-text-light);
}

.best-rating {
    display: flex;
    gap: 3px;
    margin-bottom: 20px;
}

.best-rating i {
    font-size: 16px;
    color: var(--reviews-star);
}

.best-review-content {
    margin-bottom: 20px;
}

.best-review-content .service-tag {
    margin-bottom: 14px;
}

.best-review-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--reviews-text-gray);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    padding: 6px 14px;
    background: var(--reviews-bg-light);
    border: 1px solid var(--reviews-border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--reviews-text-gray);
    transition: var(--reviews-transition);
}

.tag:hover {
    background: rgba(0, 212, 170, 0.1);
    border-color: rgba(0, 212, 170, 0.3);
    color: var(--reviews-primary);
}

/* Admin Reply */
.admin-reply {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.06) 0%, rgba(0, 180, 216, 0.06) 100%);
    border-left: 4px solid var(--reviews-primary);
    border-radius: 0 var(--reviews-radius-md) var(--reviews-radius-md) 0;
    padding: 18px 22px;
    margin-top: 20px;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.reply-header i {
    color: var(--reviews-primary);
    font-size: 16px;
}

.reply-header strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--reviews-primary);
}

.reply-date {
    font-size: 13px;
    color: var(--reviews-text-light);
    margin-left: auto;
}

.admin-reply p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--reviews-text-gray);
}

/* ==================== Filter Section ==================== */
.reviews-filter-section {
    padding: 32px 0;
    background: #ffffff;
    border-bottom: 1px solid var(--reviews-border-light);
    position: relative;
    z-index: 1;
}

.reviews-filter-section .container {
    position: relative;
}

.filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--reviews-text-dark);
    min-width: 80px;
    flex-shrink: 0;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--reviews-bg-light);
    border: 1px solid var(--reviews-border);
    border-radius: var(--reviews-radius-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--reviews-text-gray);
    cursor: pointer;
    transition: var(--reviews-transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-tab:hover {
    background: #fff;
    border-color: var(--reviews-primary);
    color: var(--reviews-primary);
}

.filter-tab.active {
    background: var(--reviews-gradient);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.25);
}

.filter-tab i {
    font-size: 13px;
}

/* Rating Tabs */
.rating-filter {
    padding-top: 16px;
    border-top: 1px solid var(--reviews-border-light);
}

.rating-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rating-tabs::-webkit-scrollbar {
    display: none;
}

.rating-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    background: var(--reviews-bg-light);
    border: 1px solid var(--reviews-border);
    border-radius: var(--reviews-radius-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--reviews-text-gray);
    cursor: pointer;
    transition: var(--reviews-transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.rating-tab:hover {
    background: #FFFBEB;
    border-color: var(--reviews-star);
}

.rating-tab.active {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-color: var(--reviews-star);
    color: #92400e;
    font-weight: 600;
}

.rating-tab i {
    color: var(--reviews-star);
    font-size: 12px;
}

/* Results Info */
.results-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--reviews-border-light);
}

.results-count {
    font-size: 15px;
    color: var(--reviews-text-gray);
}

.results-count strong {
    color: var(--reviews-primary);
    font-weight: 700;
}

.current-filter {
    font-size: 14px;
    color: var(--reviews-text-light);
}

/* ==================== Reviews List Section ==================== */
.reviews-list-section {
    padding: 48px 0 100px;
    background: var(--reviews-bg-light);
    min-height: 600px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Review Card */
.review-card {
    background: var(--reviews-bg-white);
    border-radius: var(--reviews-radius-lg);
    padding: 32px 36px;
    box-shadow: var(--reviews-shadow-sm);
    transition: var(--reviews-transition);
    position: relative;
    border: 1px solid transparent;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.review-card:hover {
    box-shadow: var(--reviews-shadow-md);
    border-color: rgba(0, 212, 170, 0.15);
    transform: translateY(-4px);
}

.review-card.is-best {
    border: 2px solid rgba(255, 212, 59, 0.3);
    background: linear-gradient(180deg, #FFFDF7 0%, #ffffff 100%);
    margin-top: 16px; /* BEST 라벨 공간 확보 */
}

.review-card.is-best::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #FFD43B 0%, #FFA500 100%);
}

.best-label {
    position: absolute;
    top: -12px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #FFD43B 0%, #FFA500 100%);
    color: #191f28;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 212, 59, 0.3);
    z-index: 2;
}

.best-label i {
    font-size: 10px;
}

/* Review Header */
.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.review-header .reviewer-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.review-header .reviewer-avatar {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #4338ca;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reviewer-details .reviewer-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--reviews-text-dark);
}

.reviewer-details .reviewer-company {
    font-size: 14px;
    color: var(--reviews-text-light);
}

.reviewer-position {
    font-size: 13px;
    color: var(--reviews-text-light);
}

/* Review Meta */
.review-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.review-rating {
    display: flex;
    gap: 4px;
}

.review-rating i {
    font-size: 16px;
    color: var(--reviews-star);
    transition: var(--reviews-transition);
}

.review-rating i.far {
    color: var(--reviews-star-empty);
}

.review-card:hover .review-rating i {
    transform: scale(1.1);
}

.review-date {
    font-size: 13px;
    color: var(--reviews-text-light);
}

/* Review Body */
.review-body {
    padding-left: 68px;
}

.review-service {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--reviews-border-light);
    color: var(--reviews-text-gray);
    border-radius: var(--reviews-radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: var(--reviews-transition);
}

.service-tag i {
    font-size: 12px;
}

/* Service Tag Colors */
.service-tag.infra {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.service-tag.security {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.service-tag.marketing {
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
}

.service-tag.cloud {
    background: rgba(0, 212, 170, 0.1);
    color: #00B896;
}

.service-tag.server {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.service-tag.domain {
    background: rgba(6, 182, 212, 0.1);
    color: #0891b2;
}

.service-tag.solution {
    background: rgba(217, 70, 239, 0.1);
    color: #d946ef;
}

.service-tag.message {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.verified-badge i {
    font-size: 11px;
}

.review-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--reviews-text-gray);
    margin-bottom: 16px;
}

.review-body .review-tags {
    margin-top: 0;
    margin-bottom: 0;
}

.review-body .admin-reply {
    margin-left: -68px;
}

/* ==================== No Results ==================== */
.no-results {
    text-align: center;
    padding: 100px 20px;
    background: var(--reviews-bg-white);
    border-radius: var(--reviews-radius-lg);
}

.no-results i {
    font-size: 72px;
    color: var(--reviews-border);
    margin-bottom: 28px;
}

.no-results h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--reviews-text-dark);
    margin-bottom: 12px;
}

.no-results p {
    font-size: 16px;
    color: var(--reviews-text-light);
    margin-bottom: 28px;
}

.btn-reset-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--reviews-gradient);
    color: #fff;
    border: none;
    border-radius: var(--reviews-radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--reviews-transition);
}

.btn-reset-filter:hover {
    transform: translateY(-2px);
    box-shadow: var(--reviews-shadow-primary);
}

/* ==================== Loading ==================== */
.reviews-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--reviews-border-light);
    border-top-color: var(--reviews-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.reviews-loading p {
    font-size: 15px;
    color: var(--reviews-text-light);
}

/* ==================== Pagination ==================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--reviews-bg-white);
    border: 1px solid var(--reviews-border);
    border-radius: var(--reviews-radius-sm);
    color: var(--reviews-text-gray);
    cursor: pointer;
    transition: var(--reviews-transition);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--reviews-bg-light);
    border-color: var(--reviews-primary);
    color: var(--reviews-primary);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    gap: 6px;
}

.pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: var(--reviews-bg-white);
    border: 1px solid var(--reviews-border);
    border-radius: var(--reviews-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--reviews-text-gray);
    cursor: pointer;
    transition: var(--reviews-transition);
}

.pagination-page:hover:not(.active) {
    background: var(--reviews-bg-light);
    border-color: var(--reviews-primary);
    color: var(--reviews-primary);
}

.pagination-page.active {
    background: var(--reviews-gradient);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: var(--reviews-shadow-primary);
}

/* ==================== CTA Section ==================== */
.reviews-cta-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--reviews-bg-light) 0%, #ffffff 100%);
}

.reviews-cta-content {
    background: var(--reviews-gradient);
    border-radius: var(--reviews-radius-xl);
    padding: 80px 60px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--reviews-shadow-lg);
}

.reviews-cta-content::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 60%;
    height: 180%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.reviews-cta-content::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-text {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.cta-text h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-text p {
    font-size: 18px;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: #fff;
    color: var(--reviews-primary);
    border-radius: var(--reviews-radius-md);
    font-size: 17px;
    font-weight: 700;
    transition: var(--reviews-transition);
    text-decoration: none;
}

.btn-cta-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    border-radius: var(--reviews-radius-md);
    font-size: 17px;
    font-weight: 600;
    transition: var(--reviews-transition);
    text-decoration: none;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card:nth-child(1) { animation-delay: 0.05s; }
.review-card:nth-child(2) { animation-delay: 0.1s; }
.review-card:nth-child(3) { animation-delay: 0.15s; }
.review-card:nth-child(4) { animation-delay: 0.2s; }
.review-card:nth-child(5) { animation-delay: 0.25s; }
.review-card:nth-child(6) { animation-delay: 0.3s; }
.review-card:nth-child(7) { animation-delay: 0.35s; }
.review-card:nth-child(8) { animation-delay: 0.4s; }
.review-card:nth-child(9) { animation-delay: 0.45s; }
.review-card:nth-child(10) { animation-delay: 0.5s; }

/* ==================== Responsive Design ==================== */
@media (max-width: 1200px) {
    .reviews-hero-content {
        gap: 50px;
    }

    .hero-stats-card {
        min-width: 340px;
    }
}

@media (max-width: 1024px) {
    .reviews-hero {
        padding: 120px 0 80px;
    }

    .reviews-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-stats-card {
        min-width: 100%;
        max-width: 420px;
    }

    .best-reviews-slider {
        grid-template-columns: repeat(2, 1fr);
    }

    .incentive-card {
        flex-direction: column;
        text-align: center;
        padding: 32px;
    }

    .incentive-best {
        width: 100%;
        justify-content: center;
    }

    .btn-write-review {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .reviews-hero {
        padding: 100px 0 60px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-stats-card {
        padding: 28px 24px;
    }

    .rating-score {
        font-size: 56px;
    }

    .reviews-incentive {
        margin-top: -30px;
    }

    .incentive-card {
        padding: 24px;
        gap: 20px;
    }

    .incentive-icon {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }

    .incentive-text strong {
        font-size: 17px;
    }

    .best-reviews-section {
        padding: 60px 0;
    }

    .best-reviews-slider {
        grid-template-columns: 1fr;
    }

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

    .reviews-filter-section {
        padding: 16px 0;
    }

    .filter-wrapper {
        gap: 12px;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .filter-group label {
        font-size: 13px;
        min-width: auto;
    }

    .filter-tabs {
        width: 100%;
    }

    .filter-tab {
        padding: 8px 14px;
        font-size: 12px;
    }

    .filter-tab i {
        font-size: 11px;
    }

    .rating-filter {
        padding-top: 12px;
    }

    .rating-tabs {
        width: 100%;
    }

    .rating-tab {
        padding: 8px 12px;
        font-size: 12px;
    }

    .results-info {
        margin-top: 12px;
        padding-top: 12px;
        font-size: 13px;
    }

    .reviews-list-section {
        padding: 32px 0 60px;
    }

    .review-card {
        padding: 24px;
    }

    .review-header {
        flex-direction: column;
        gap: 16px;
    }

    .review-meta {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }

    .review-body {
        padding-left: 0;
    }

    .review-body .admin-reply {
        margin-left: 0;
    }

    .reviews-cta-content {
        padding: 48px 24px;
    }

    .cta-text h2 {
        font-size: 26px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .reviews-hero {
        padding: 90px 0 50px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .page-badge {
        font-size: 12px;
        padding: 8px 16px;
    }

    .rating-score {
        font-size: 48px;
    }

    .rating-stars i {
        font-size: 20px;
    }

    .incentive-card {
        padding: 20px;
    }

    .incentive-best {
        padding: 12px 16px;
        font-size: 13px;
    }

    .section-header h2 {
        font-size: 24px;
        flex-direction: column;
        gap: 8px;
    }

    .best-review-card {
        padding: 24px;
    }

    .reviewer-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .review-header .reviewer-avatar {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .filter-tab {
        padding: 10px 16px;
        font-size: 13px;
    }

    .pagination-btn,
    .pagination-page {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
}

/* ==================== Enhanced Micro-interactions ==================== */

/* Stats bar animation on page load */
.stats-bar-row {
    opacity: 0;
    animation: fadeInRight 0.5s ease forwards;
}

.stats-bar-row:nth-child(1) { animation-delay: 0.1s; }
.stats-bar-row:nth-child(2) { animation-delay: 0.2s; }
.stats-bar-row:nth-child(3) { animation-delay: 0.3s; }
.stats-bar-row:nth-child(4) { animation-delay: 0.4s; }
.stats-bar-row:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced hover states */
.stats-bar-row:hover .bar-fill {
    filter: brightness(1.1);
}

.stats-bar-row:hover .bar-label {
    color: var(--reviews-primary);
}

.stats-bar-row:hover .bar-count {
    color: var(--reviews-text-dark);
    font-weight: 700;
}

/* Filter tab ripple effect */
.filter-tab,
.rating-tab {
    position: relative;
    overflow: hidden;
}

.filter-tab::after,
.rating-tab::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 212, 170, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.filter-tab:active::after,
.rating-tab:active::after {
    width: 300px;
    height: 300px;
}

.filter-tab.active::after,
.rating-tab.active::after {
    display: none;
}

/* Best review card entrance animation */
.best-review-card {
    opacity: 0;
    animation: scaleIn 0.5s ease forwards;
}

.best-review-card:nth-child(1) { animation-delay: 0.1s; }
.best-review-card:nth-child(2) { animation-delay: 0.2s; }
.best-review-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Badge pulse animation */
.best-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(255, 212, 59, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(255, 212, 59, 0.5); }
}

/* Incentive card shine effect */
.incentive-card {
    position: relative;
}

.incentive-card::before {
    animation: incentiveShine 3s ease-in-out infinite;
}

@keyframes incentiveShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(200%) rotate(45deg); }
}

/* Rating stars cascade animation */
.rating-stars i {
    opacity: 0;
    animation: starPop 0.4s ease forwards;
}

.rating-stars i:nth-child(1) { animation-delay: 0.1s; }
.rating-stars i:nth-child(2) { animation-delay: 0.2s; }
.rating-stars i:nth-child(3) { animation-delay: 0.3s; }
.rating-stars i:nth-child(4) { animation-delay: 0.4s; }
.rating-stars i:nth-child(5) { animation-delay: 0.5s; }

@keyframes starPop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    70% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* Hero stats card float animation */
.hero-stats-card {
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Score counter animation (requires JS) */
.rating-score {
    animation: countUp 1s ease-out forwards;
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CTA button glow */
.btn-cta-primary {
    animation: buttonGlow 2s ease-in-out infinite;
}

@keyframes buttonGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5); }
}

/* Review card entrance - staggered */
.review-card {
    transform-origin: center top;
}

/* Verified badge bounce */
.verified-badge {
    animation: verifiedBounce 0.6s ease;
}

@keyframes verifiedBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Tag hover effect */
.tag {
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.1), transparent);
    transition: left 0.5s;
}

.tag:hover::before {
    left: 100%;
}

/* Admin reply slide in */
.admin-reply {
    animation: slideInLeft 0.4s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pagination button press effect */
.pagination-page:active,
.pagination-btn:active {
    transform: scale(0.95);
}

/* Section header animation */
.section-header h2 {
    animation: slideDown 0.6s ease;
}

.section-header p {
    animation: slideDown 0.6s ease 0.2s both;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states for accessibility */
.filter-tab:focus-visible,
.rating-tab:focus-visible,
.pagination-page:focus-visible,
.pagination-btn:focus-visible,
.btn-write-review:focus-visible,
.btn-cta-primary:focus-visible,
.btn-cta-secondary:focus-visible {
    outline: 3px solid var(--reviews-primary);
    outline-offset: 2px;
}

/* Skeleton loading states */
.skeleton {
    background: linear-gradient(90deg, #f2f4f6 25%, #e5e8eb 50%, #f2f4f6 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .filter-tab.active,
    .rating-tab.active,
    .pagination-page.active {
        border: 2px solid currentColor;
    }

    .service-tag {
        border: 1px solid currentColor;
    }
}

/* ==================== Print Styles ==================== */
@media print {
    .reviews-hero::before,
    .reviews-hero::after,
    .reviews-incentive,
    .reviews-filter-section,
    .pagination,
    .reviews-cta-section {
        display: none;
    }

    .review-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    * {
        animation: none !important;
    }
}
