/* =========================================================
   Stratos Facebook Reviews – frontend styles
   ========================================================= */

/* ------ Layout: grid -------------------------------------- */
.sfr-reviews.sfr-layout--grid {
    display: grid;
    gap: 16px;
}
.sfr-layout--grid.sfr-cols--1 { grid-template-columns: 1fr; }
.sfr-layout--grid.sfr-cols--2 { grid-template-columns: repeat(2, 1fr); }
.sfr-layout--grid.sfr-cols--3 { grid-template-columns: repeat(3, 1fr); }
.sfr-layout--grid.sfr-cols--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .sfr-layout--grid.sfr-cols--4,
    .sfr-layout--grid.sfr-cols--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .sfr-layout--grid.sfr-cols--4,
    .sfr-layout--grid.sfr-cols--3,
    .sfr-layout--grid.sfr-cols--2 { grid-template-columns: 1fr; }
}

/* Grid cards fill their row height */
.sfr-layout--grid .sfr-card {
    height: 100%;
}

/* ------ Layout: slider ------------------------------------ */
.sfr-reviews.sfr-layout--slider {
    position: relative;
    overflow: hidden;
}

.sfr-slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

/* Left: brand block */
.sfr-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 8px;
}
.sfr-fb-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.sfr-header-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sfr-header-label {
    font-size: 13px;
    font-weight: 700;
    color: #050505;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1;
}
.sfr-header-score {
    display: flex;
    align-items: center;
    gap: 5px;
}
.sfr-header-thumb {
    width: 18px;
    height: 18px;
    background: #1877F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sfr-header-pct {
    font-size: 13px;
    font-weight: 600;
    color: #050505;
    line-height: 1;
}
.sfr-header-count {
    font-size: 12px;
    color: #65676b;
    line-height: 1;
}

/* Right: arrows */
.sfr-header-arrows {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.sfr-prev,
.sfr-next {
    background: #fff;
    border: 1px solid #dadde1;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.15s;
}
.sfr-prev:hover,
.sfr-next:hover { box-shadow: 0 1px 6px rgba(0,0,0,.15); }

.sfr-slider-track {
    display: flex;
    transition: transform 0.35s ease;
    cursor: grab;
    user-select: none;
}
.sfr-slider-track:active {
    cursor: grabbing;
}
.sfr-slide {
    flex: 0 0 100%;
    padding: 0 4px;
    box-sizing: border-box;
    display: flex;
}
.sfr-slide .sfr-card {
    flex: 1;
}
@media (min-width: 601px)  { .sfr-slide { flex: 0 0 50%; } }
@media (min-width: 901px)  { .sfr-slide { flex: 0 0 33.333%; } }

/* ------ Card ---------------------------------------------- */
.sfr-card {
    background: #fff;
    border: 1px solid #dadde1;
    border-radius: 8px;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #050505;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.sfr-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

/* Header */
.sfr-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.sfr-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    user-select: none;
}
.sfr-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #050505;
    line-height: 1.3;
}
.sfr-reviewer-info {
    font-size: 12px;
    color: #65676b;
    margin-top: 2px;
}

/* Recommend row */
.sfr-recommend {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.sfr-thumb {
    width: 20px;
    height: 20px;
    background: #1877F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sfr-thumb--no {
    background: #e41c19;
}
.sfr-recommend-text {
    font-size: 13px;
    font-weight: 500;
    color: #050505;
}
.sfr-date {
    font-size: 12px;
    color: #65676b;
    margin-left: auto;
}

/* Review text */
.sfr-text {
    flex: 1;
    color: #050505;
    font-size: 14px;
}
.sfr-toggle {
    background: none;
    border: none;
    padding: 0;
    margin-left: 4px;
    color: #1877F2;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
}
.sfr-toggle:hover { text-decoration: underline; }

/* Badge */
.sfr-fb-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
}
.sfr-fb-badge span {
    font-size: 11px;
    color: #65676b;
    letter-spacing: .02em;
}

/* Empty state */
.sfr-empty {
    color: #65676b;
    font-style: italic;
}