/**
 * Trustpilot Reviews Slider Styles
 * Konverteret fra itlagersalg-headless/components/ReviewsSlider.tsx Tailwind classes
 */

.trustpilot-section {
    background-color: #fafafa;
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .trustpilot-section {
        padding: 5rem 0;
    }
}

.trustpilot-container {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .trustpilot-container {
        padding: 0 2rem;
    }
}

/* Header */
.trustpilot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.trustpilot-heading {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.trustpilot-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trustpilot-stars-header {
    display: flex;
    gap: 0.25rem;
}

.trustpilot-score {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.trustpilot-count {
    color: #4b5563;
}

/* Slider Wrapper */
.trustpilot-slider-wrapper {
    position: relative;
}

/* Navigation Buttons */
.trustpilot-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #156B48;
    display: none;
}

@media (min-width: 768px) {
    .trustpilot-nav-btn {
        display: block;
    }
}

.trustpilot-nav-btn:hover {
    background: rgb(255, 255, 255);
}

.trustpilot-nav-left {
    left: -1.5rem;
}

.trustpilot-nav-right {
    right: -1.5rem;
}

/* Reviews Container */
.trustpilot-reviews-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.trustpilot-reviews-container::-webkit-scrollbar {
    display: none;
}

/* Review Card */
.trustpilot-review-card {
    flex-shrink: 0;
    width: 85%;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .trustpilot-review-card {
        width: calc(33.333% - 1rem);
    }
}

.trustpilot-review-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.trustpilot-review-content {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.trustpilot-review-content:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Stars */
.trustpilot-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

/* Title */
.trustpilot-review-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}

/* Review Text */
.trustpilot-review-text {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    flex: 1;
}

/* Author & Date */
.trustpilot-review-meta {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
    margin-top: auto;
}

.trustpilot-author {
    font-weight: 600;
    color: #111827;
    font-size: 0.875rem;
    margin: 0 0 0.25rem 0;
}

.trustpilot-date {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}
