/* ── FHD Reviews – Frontend Styles ── */

:root {
    --fhd-rv-accent:   #e8506a;
    --fhd-rv-star:     #f5a623;
    --fhd-rv-bg:       #fafafa;
    --fhd-rv-border:   #ebebeb;
    --fhd-rv-text:     #2d2d2d;
    --fhd-rv-muted:    #888;
    --fhd-rv-radius:   12px;
    --fhd-rv-shadow:   0 2px 16px rgba(0,0,0,.07);
}

/* ── Section wrapper ── */
.fhd-rv-section {
    margin: 3rem 0 2rem;
    font-family: inherit;
    color: var(--fhd-rv-text);
}

/* ── Summary bar ── */
.fhd-rv-summary {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    background: var(--fhd-rv-bg);
    border: 1px solid var(--fhd-rv-border);
    border-radius: var(--fhd-rv-radius);
    padding: 1.4rem 1.8rem;
    margin-bottom: 1.8rem;
    box-shadow: var(--fhd-rv-shadow);
}

.fhd-rv-summary__score {
    text-align: center;
    min-width: 70px;
}

.fhd-rv-big-num {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--fhd-rv-accent);
    display: block;
}

.fhd-rv-out {
    font-size: .8rem;
    color: var(--fhd-rv-muted);
}

.fhd-rv-summary__meta {
    flex: 1;
}

.fhd-rv-count {
    margin: .3rem 0 0;
    font-size: .85rem;
    color: var(--fhd-rv-muted);
}

/* ── Stars ── */
.fhd-rv-stars {
    display: inline-flex;
    gap: 2px;
    line-height: 1;
}

.fhd-rv-stars svg,
.fhd-rv-star-btn svg {
    width: 18px;
    height: 18px;
    fill: #ddd;
    stroke: none;
    transition: fill .15s;
}

.fhd-rv-stars--lg svg {
    width: 22px;
    height: 22px;
}

.fhd-star--full svg  { fill: var(--fhd-rv-star); }
.fhd-star--half      { position: relative; overflow: hidden; display: inline-block; }
.fhd-star--half svg  { fill: var(--fhd-rv-star); }
.fhd-star--empty svg { fill: #ddd; }

/* ── Review list ── */
.fhd-rv-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.fhd-rv-item {
    background: #fff;
    border: 1px solid var(--fhd-rv-border);
    border-radius: var(--fhd-rv-radius);
    padding: 1.2rem 1.4rem;
    box-shadow: var(--fhd-rv-shadow);
}

.fhd-rv-item__header {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    margin-bottom: .7rem;
}

.fhd-rv-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--fhd-rv-accent);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fhd-rv-item__meta {
    flex: 1;
}

.fhd-rv-author {
    display: block;
    font-size: .9rem;
    font-weight: 700;
}

.fhd-rv-date {
    font-size: .78rem;
    color: var(--fhd-rv-muted);
}

.fhd-rv-item__rating {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

.fhd-rv-badge {
    font-size: .7rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.fhd-rv-badge--5 { background: #dcf5e6; color: #1a7f3c; }
.fhd-rv-badge--4 { background: #e8f5dc; color: #4a7f1a; }
.fhd-rv-badge--3 { background: #fff8dc; color: #7f6a1a; }
.fhd-rv-badge--2 { background: #fff0dc; color: #7f4a1a; }
.fhd-rv-badge--1 { background: #fde8e8; color: #7f1a1a; }

.fhd-rv-text {
    font-size: .9rem;
    line-height: 1.6;
    margin: 0;
    color: var(--fhd-rv-text);
}

/* ── Form ── */
.fhd-rv-form-wrap {
    background: var(--fhd-rv-bg);
    border: 1px solid var(--fhd-rv-border);
    border-radius: var(--fhd-rv-radius);
    padding: 1.8rem;
    box-shadow: var(--fhd-rv-shadow);
}

.fhd-rv-form-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1.2rem;
}

/* Star picker */
.fhd-rv-picker {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 1.2rem;
}

.fhd-rv-star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: transform .15s;
}

.fhd-rv-star-btn:hover,
.fhd-rv-star-btn:focus {
    transform: scale(1.2);
    outline: none;
}

.fhd-rv-star-btn svg {
    width: 28px;
    height: 28px;
    fill: #ddd;
    transition: fill .12s;
}

.fhd-rv-star-btn.fhd-rv-star-btn--lit svg { fill: var(--fhd-rv-star); }

.fhd-rv-picker-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--fhd-rv-accent);
    margin-left: .5rem;
    min-width: 80px;
}

/* Fields */
.fhd-rv-fields {
    animation: fhdFadeIn .25s ease;
}

@keyframes fhdFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fhd-rv-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .fhd-rv-row { grid-template-columns: 1fr; }
    .fhd-rv-summary { flex-direction: column; gap: .8rem; }
}

.fhd-rv-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: 1rem;
}

.fhd-rv-field label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--fhd-rv-text);
}

.fhd-rv-req { color: var(--fhd-rv-accent); }

.fhd-rv-field input,
.fhd-rv-field textarea {
    border: 1px solid var(--fhd-rv-border);
    border-radius: 8px;
    padding: .6rem .9rem;
    font-size: .9rem;
    font-family: inherit;
    color: var(--fhd-rv-text);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    box-sizing: border-box;
}

.fhd-rv-field input:focus,
.fhd-rv-field textarea:focus {
    outline: none;
    border-color: var(--fhd-rv-accent);
    box-shadow: 0 0 0 3px rgba(232,80,106,.12);
}

.fhd-rv-field textarea { resize: vertical; }

.fhd-rv-submit {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--fhd-rv-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .65rem 1.4rem;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s;
}

.fhd-rv-submit:hover {
    background: #d03a54;
    transform: translateY(-1px);
}

.fhd-rv-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.fhd-rv-message {
    margin-top: .8rem;
    font-size: .85rem;
    font-weight: 600;
    padding: .5rem .8rem;
    border-radius: 6px;
    display: none;
}

.fhd-rv-message.fhd-rv-message--success {
    display: block;
    background: #dcf5e6;
    color: #1a7f3c;
}

.fhd-rv-message.fhd-rv-message--error {
    display: block;
    background: #fde8e8;
    color: #7f1a1a;
}

/* ── Featured image pill badge ── */

.fhd-rv-thumb-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    line-height: 0;
}

.fhd-rv-thumb-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.fhd-rv-pill {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    padding: 7px 13px 7px 9px;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(255,255,255,0.6) inset;
    line-height: 1;
    text-decoration: none;
    pointer-events: none;
    z-index: 10;
    animation: fhd-pill-in .4s cubic-bezier(.22,1,.36,1) both;
}

@keyframes fhd-pill-in {
    from { opacity: 0; transform: translateY(6px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.fhd-rv-pill__stars {
    display: flex;
    gap: 1px;
    align-items: center;
}

.fhd-rv-pill__star svg {
    width: 13px;
    height: 13px;
    display: block;
}

.fhd-rv-pill__star--full  svg { fill: #f5a623; }
.fhd-rv-pill__star--half  svg { fill: #f5a623; opacity: .55; }
.fhd-rv-pill__star--empty svg { fill: #d8d8d8; }

.fhd-rv-pill__num {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.fhd-rv-pill__count {
    font-size: 11.5px;
    color: #777;
    white-space: nowrap;
    border-left: 1px solid #e0e0e0;
    padding-left: 7px;
    margin-left: 1px;
    font-weight: 500;
}
