/* =====================================================
   YWG Reviews — Frontend styles
   Matches Yorkshire Wolds Glamping site palette:
   olive #57693F, purple #663D63, cream #F0EAD2, bg #F8F6EB
   ===================================================== */

/* ----------------------------------
   Review form
   ---------------------------------- */
.ywg-review-form {
    max-width: 680px;
    margin: 0 auto;
    font-family: "Montserrat", sans-serif;
    color: #515151;
}

.ywg-review-form__form,
.ywg-review-form__panel {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 35px 30px;
}

.ywg-review-form__header h2 {
    font-family: "Amiri", serif;
    font-size: 28px;
    color: #324526;
    margin: 0 0 10px;
    line-height: 1.2;
}

.ywg-review-form__header p {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.5;
}

.ywg-review-form__field {
    margin-bottom: 20px;
}

.ywg-review-form__field > label {
    display: block;
    font-weight: 600;
    color: #324526;
    margin-bottom: 8px;
    font-size: 14px;
}

.ywg-req {
    color: #C33;
}

.ywg-review-form__field input[type="text"],
.ywg-review-form__field input[type="email"],
.ywg-review-form__field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #DDD;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    color: #333;
    box-sizing: border-box;
    background: #FFF;
    transition: border-color 0.2s;
}

.ywg-review-form__field textarea {
    resize: vertical;
    min-height: 140px;
}

.ywg-review-form__field input:focus,
.ywg-review-form__field textarea:focus {
    outline: none;
    border-color: #57693F;
}

.ywg-review-form__hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #888;
}

.ywg-review-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 560px) {
    .ywg-review-form__row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Star picker */
.ywg-stars {
    display: inline-flex;
    gap: 4px;
}

.ywg-stars .ywg-star {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    color: #E0E0E0;
    padding: 2px 4px;
    transition: color 0.1s, transform 0.1s;
}

.ywg-stars.ywg-stars--small .ywg-star {
    font-size: 22px;
}

.ywg-stars .ywg-star:hover,
.ywg-stars .ywg-star.is-active {
    color: #E8B84B;
}

.ywg-stars .ywg-star:focus {
    outline: none;
    transform: scale(1.15);
}

/* Categories section */
.ywg-review-form__categories {
    background: #F8F6EB;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.ywg-review-form__categories-label {
    font-weight: 600;
    color: #324526;
    margin: 0 0 12px;
    font-size: 14px;
}

.ywg-review-form__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #E5E2D4;
}

.ywg-review-form__category:last-child {
    border-bottom: none;
}

.ywg-review-form__category > label {
    font-size: 14px;
    color: #515151;
}

/* Honey pot */
.ywg-review-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Submit button */
.ywg-review-form__submit {
    margin-top: 24px;
    text-align: center;
}

.ywg-review-form__button {
    background-color: #57693F;
    color: #FFFFFF;
    font-family: "Roboto", sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    border: 3px dotted #F0EAD2;
    border-radius: 25px;
    padding: 14px 40px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ywg-review-form__button:hover,
.ywg-review-form__button:focus {
    background-color: #663D63;
    outline: none;
}

.ywg-review-form--thanks .ywg-review-form__panel,
.ywg-review-form--error .ywg-review-form__panel {
    text-align: center;
}

.ywg-review-form--thanks h2 {
    font-family: "Amiri", serif;
    font-size: 32px;
    color: #57693F;
    margin: 0 0 12px;
}

/* ----------------------------------
   Review grid + cards
   ---------------------------------- */
.ywg-reviews {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    font-family: "Montserrat", sans-serif;
    max-width: 1340px;
    margin: 0 auto;
}

@media (min-width: 680px) {
    .ywg-reviews.ywg-reviews--cols-2,
    .ywg-reviews.ywg-reviews--cols-3,
    .ywg-reviews.ywg-reviews--cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .ywg-reviews.ywg-reviews--cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .ywg-reviews.ywg-reviews--cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ywg-review-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 28px 26px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.ywg-review-card--featured {
    border: 2px solid #F0EAD2;
}

.ywg-review-card__featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #57693F;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 12px;
}

.ywg-review-card__rating {
    font-size: 20px;
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Source badge — supports three variants:
   --logo (img tag of uploaded SVG), --text (brand-coloured pill), --legacy (free-text) */

.ywg-review-card__source {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

.ywg-review-card__source--logo {
    height: 22px;
}

.ywg-review-card__source--logo img {
    max-height: 22px;
    max-width: 96px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.ywg-review-card__source--text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 10px;
}

.ywg-review-card__source--legacy {
    background: #F0EAD2;
    color: #57693F;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 10px;
}

.ywg-stars-filled {
    color: #E8B84B;
}

.ywg-stars-empty {
    color: #E0E0E0;
}

.ywg-review-card__body {
    font-size: 14.5px;
    line-height: 1.65;
    color: #515151;
    flex: 1;
    margin-bottom: 16px;
}

.ywg-review-card__body p {
    margin: 0 0 10px;
}

.ywg-review-card__body p:last-child {
    margin-bottom: 0;
}

.ywg-review-card__categories {
    margin-bottom: 14px;
    font-size: 13px;
}

.ywg-review-card__categories summary {
    cursor: pointer;
    color: #57693F;
    font-weight: 600;
    padding: 4px 0;
}

.ywg-review-card__categories-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.ywg-review-card__categories-list li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    color: #666;
}

.ywg-review-card__category-stars {
    color: #E8B84B;
    letter-spacing: 1px;
}

.ywg-review-card__meta {
    font-size: 13px;
    color: #707070;
    padding-top: 14px;
    border-top: 1px solid #F0F0F0;
    line-height: 1.5;
}

.ywg-review-card__meta strong {
    color: #324526;
    font-weight: 600;
}

.ywg-review-card__sep {
    color: #BCBEA6;
    margin: 0 6px;
}

.ywg-review-card__reply {
    margin-top: 16px;
    padding: 14px 16px;
    background: #F8F6EB;
    border-radius: 10px;
    border-left: 3px solid #57693F;
}

.ywg-review-card__reply-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #324526;
}

.ywg-review-card__reply-date {
    font-size: 11px;
    color: #888;
    font-weight: 400;
}

.ywg-review-card__reply-body {
    font-size: 13px;
    line-height: 1.55;
    color: #515151;
}

.ywg-review-card__reply-body p {
    margin: 0 0 6px;
}

.ywg-review-card__reply-body p:last-child {
    margin-bottom: 0;
}

/* Empty state */
.ywg-reviews-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-family: "Montserrat", sans-serif;
}

/* Admin preview-mode banner (only shown to logged-in admins) */
.ywg-preview-banner {
    background: #FFF4C2;
    border: 1px dashed #C49A00;
    color: #7A5D00;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 10px;
    margin: 0 auto 18px;
    max-width: 1340px;
    line-height: 1.45;
}

.ywg-preview-banner strong {
    color: #5A4300;
}

.ywg-preview-banner em {
    font-style: italic;
}

/* ----------------------------------
   Summary widget
   ---------------------------------- */
.ywg-reviews-summary {
    font-family: "Montserrat", sans-serif;
}

.ywg-reviews-summary--inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #515151;
}

.ywg-reviews-summary--inline .ywg-reviews-summary__stars {
    color: #E8B84B;
    font-size: 16px;
    letter-spacing: 1px;
}

.ywg-reviews-summary--inline strong {
    color: #324526;
    font-weight: 700;
}

.ywg-reviews-summary--inline .ywg-reviews-summary__count {
    color: #888;
    font-size: 13px;
}

.ywg-reviews-summary--large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.ywg-reviews-summary--large .ywg-reviews-summary__rating {
    font-family: "Amiri", serif;
    font-size: 56px;
    font-weight: 700;
    color: #57693F;
    line-height: 1;
}

.ywg-reviews-summary--large .ywg-reviews-summary__stars {
    font-size: 22px;
    letter-spacing: 2px;
    color: #E8B84B;
}

.ywg-reviews-summary--large .ywg-reviews-summary__count {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
