* {
    box-sizing: border-box;
}

html,
body {
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8f9fa;
    color: #1a1a1a;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    min-height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.header {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 1.5rem 2rem;
    border-bottom: 3px solid #C60B24;
}

.page-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.025em;
}

.page-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0.25rem 0 0;
}

.search-area {
    display: flex;
    justify-content: flex-end;
}

.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    width: 280px;
    padding: 0.625rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: #C60B24;
}

.search-btn {
    padding: 0.625rem 1.25rem;
    background: #C60B24;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #a5091e;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: #C60B24;
}

/* ===== 이미지 슬라이더 ===== */
.review-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f5f9;
}

.review-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.review-slider-track img {
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
    z-index: 2;
    line-height: 1;
}

.review-slider:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow.prev {
    left: 8px;
}

.slider-arrow.next {
    right: 8px;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}

.slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
}

.slider-dot.active {
    background: white;
    transform: scale(1.3);
}

.slider-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    z-index: 2;
}

.review-no-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #cbd5e1;
}

.review-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.review-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-card-summary {
    color: #6b7280;
    font-size: 0.8125rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.review-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.review-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(198, 11, 36, 0.08);
    color: #C60B24;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 500;
}

.review-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: #9ca3af;
}

.review-card-footer .views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-area {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    padding: 1rem 0 2rem;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover {
    border-color: #C60B24;
    color: #C60B24;
}

.page-btn.active {
    background: #C60B24;
    color: white;
    border-color: #C60B24;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: default;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-size: 0.9375rem;
    grid-column: 1 / -1;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state .message {
    font-size: 1.125rem;
    color: #6b7280;
    font-weight: 500;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
        gap: 1rem;
    }

    .header {
        padding: 1rem 1.5rem;
        border-radius: 12px;
    }

    .page-title {
        font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    }

    .review-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .search-area {
        justify-content: stretch;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        flex: 1;
        width: auto;
    }

    .slider-arrow {
        opacity: 0.7;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }

    .header {
        padding: 0.875rem 1rem;
    }

    .review-card-body {
        padding: 1rem;
    }
}