/* ============================================================
   Fouz Social Reviews — 2-Row Grid Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&display=swap');

.fouz-sr-wrapper {
    position: relative;
    width: 100%;
    font-family: 'Outfit', sans-serif;
    /* Optional: can be set via Elementor, providing a beige background like reference */
    background-color: transparent; 
}

.fouz-sr-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    
    /* Hide scrollbar for cleaner look */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.fouz-sr-container::-webkit-scrollbar {
    display: none;
}

.fouz-sr-track {
    display: grid;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    gap: 20px;
    padding: 10px 20px;
    width: max-content;
}

/* ─── Review Card ─── */
.fouz-sr-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    width: 380px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fouz-sr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ─── Header: Avatar, Name, Platform ─── */
.fouz-sr-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fouz-sr-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
}

.fouz-sr-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fouz-sr-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
}

.fouz-sr-author-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.fouz-sr-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #202124;
    line-height: 1.2;
}

.fouz-sr-time {
    font-size: 13px;
    color: #70757a;
    margin-top: 4px;
}

.fouz-sr-platform-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fouz-sr-platform {
    width: 20px;
    height: 20px;
}

/* ─── Rating & Verified ─── */
.fouz-sr-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fouz-sr-stars {
    display: flex;
    gap: 2px;
}

.fouz-sr-stars svg {
    width: 16px;
    height: 16px;
}

.fouz-sr-verified {
    width: 16px;
    height: 16px;
    margin-left: 4px;
}

/* ─── Body: Text & Image ─── */
.fouz-sr-body {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.fouz-sr-content-wrap {
    flex-grow: 1;
}

.fouz-sr-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4d5156;
}

.fouz-sr-show-more {
    color: #70757a;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.fouz-sr-show-more:hover {
    color: #202124;
}

.fouz-sr-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.fouz-sr-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
    .fouz-sr-card {
        width: 320px;
        padding: 16px;
    }
    
    .fouz-sr-track {
        grid-template-rows: auto; /* Single row on mobile */
    }
}
