/**
 * Reviews Section Styles
 * 숨카(SUMCAR) 프로젝트 - 고객 리뷰 섹션
 */

/* ========================================
   Reviews Section
   ======================================== */
.reviews {
    position: relative;
    width: 100%;
    background: #0E0E0E;
    padding: 120px 0;
    padding: var(--space-120, 120px) 0;
    overflow: hidden;
}

.reviews__container {
    position: relative;
    max-width: 1200px;
    max-width: var(--container-max-width, 1200px);
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    padding: 0 var(--space-24, 24px);
}

/* ========================================
   Header
   ======================================== */
.reviews__header {
    text-align: center;
    margin-bottom: 60px;
    margin-bottom: var(--space-60, 60px);
}

.reviews__title {
    font-size: 48px;
    font-weight: 700;
    font-weight: var(--fw-bold, 700);
    color: #FFFFFF;
    color: var(--c-text-light, #FFFFFF);
    margin-bottom: 16px;
    margin-bottom: var(--space-16, 16px);
}

.reviews__subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ========================================
   Scroll Wrapper
   ======================================== */
.reviews__scroll-wrapper {
    position: relative;
    margin-bottom: 40px;
    margin-bottom: var(--space-40, 40px);
}

.reviews__cards {
    display: flex;
    gap: 24px;
    gap: var(--space-24, 24px);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

/* 스크롤바 스타일링 */
.reviews__cards::-webkit-scrollbar {
    height: 8px;
}

.reviews__cards::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.reviews__cards::-webkit-scrollbar-thumb {
    background: rgba(0, 184, 198, 0.5);
    border-radius: 4px;
}

.reviews__cards::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 184, 198, 0.7);
}

/* ========================================
   Review Card
   ======================================== */
.reviews__card {
    min-width: 350px;
    height: 600px;
    background: #1A1A1A;
    border-radius: 16px;
    border-radius: var(--radius-lg, 16px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.reviews__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 184, 198, 0.2);
}

/* 이미지 영역 (상단 50%) */
.reviews__image {
    width: 100%;
    height: 50%;
    overflow: hidden;
    position: relative;
    background: #2A2A2A;
}

.reviews__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.reviews__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2A2A2A 0%, #1A1A1A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 콘텐츠 영역 (하단 50%) */
.reviews__content {
    height: 50%;
    padding: 32px;
    padding: var(--space-32, 32px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    gap: var(--space-12, 12px);
}

/* ========================================
   Rating
   ======================================== */
.reviews__rating {
    display: flex;
    gap: 4px;
}

.reviews__star {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.2);
}

.reviews__star--filled {
    color: #FFD700;
}

/* ========================================
   Card Content
   ======================================== */
.reviews__author-name {
    font-size: 16px;
    font-size: var(--fs-h6, 16px);
    font-weight: 600;
    font-weight: var(--fw-semibold, 600);
    color: #FFFFFF;
    margin: 0;
}

.reviews__card-body {
    font-size: 15px;
    font-size: var(--fs-base, 15px);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

/* ========================================
   Scroll Hint
   ======================================== */
.reviews__scroll-hint {
    text-align: center;
    padding-top: 20px;
    padding-top: var(--space-20, 20px);
}

.reviews__scroll-hint span {
    font-size: 14px;
    font-size: var(--fs-small, 14px);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* ========================================
   Tablet Responsive
   ======================================== */
@media (max-width: 991px) {
    .reviews {
        padding: 80px 0;
        padding: var(--space-80, 80px) 0;
    }

    .reviews__header {
        margin-bottom: 48px;
        margin-bottom: var(--space-48, 48px);
    }

    .reviews__title {
        font-size: 40px;
    }

    .reviews__subtitle {
        font-size: 18px;
    }

    .reviews__card {
        min-width: 320px;
        height: 550px;
    }

    .reviews__content {
        padding: 24px;
        padding: var(--space-24, 24px);
    }
}

/* ========================================
   Mobile Responsive
   ======================================== */
@media (max-width: 767px) {
    .reviews {
        padding: 60px 0;
        padding: var(--space-60, 60px) 0;
    }

    .reviews__container {
        padding: 0 16px;
        padding: 0 var(--space-16, 16px);
    }

    .reviews__header {
        margin-bottom: 40px;
        margin-bottom: var(--space-40, 40px);
    }

    .reviews__title {
        font-size: 32px;
        font-size: var(--fs-h2, 32px);
    }

    .reviews__subtitle {
        font-size: 16px;
        font-size: var(--fs-h6, 16px);
    }

    .reviews__card {
        min-width: 280px;
        height: 500px;
    }

    .reviews__content {
        padding: 20px;
        padding: var(--space-20, 20px);
        gap: 10px;
        gap: var(--space-10, 10px);
    }

    .reviews__author-name {
        font-size: 15px;
    }

    .reviews__card-body {
        font-size: 14px;
        font-size: var(--fs-small, 14px);
        -webkit-line-clamp: 4;
    }

    .reviews__scroll-hint span {
        font-size: 13px;
    }
}

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

.reviews__header {
    animation: reviewsFadeInUp 600ms ease-out;
    animation-fill-mode: both;
}

.reviews__card {
    animation: reviewsFadeInUp 600ms ease-out;
    animation-fill-mode: both;
}

.reviews__card:nth-child(1) {
    animation-delay: 100ms;
}

.reviews__card:nth-child(2) {
    animation-delay: 200ms;
}

.reviews__card:nth-child(3) {
    animation-delay: 300ms;
}

.reviews__card:nth-child(4) {
    animation-delay: 400ms;
}

.reviews__card:nth-child(5) {
    animation-delay: 500ms;
}

.reviews__scroll-hint {
    animation: reviewsFadeInUp 600ms ease-out 600ms;
    animation-fill-mode: both;
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .reviews__header,
    .reviews__card,
    .reviews__scroll-hint {
        animation: none;
    }

    .reviews__card:hover {
        transform: none;
    }
}
