/* ==========================================================================
   Listing Reviews — Frontend Styles
   ========================================================================== */

/* Reviews Section */
.lr-reviews-section {
    margin-top: 2em;
    padding-top: 2em;
    border-top: 2px solid #e0e0e0;
}

.lr-reviews-title {
    display: flex;
    align-items: center;
    gap: 0.5em;
    flex-wrap: wrap;
    margin-bottom: 1em;
    font-size: 1.4em;
}

.lr-reviews-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.7em;
    font-weight: normal;
    color: #666;
}

.lr-reviews-avg {
    font-weight: 600;
    color: #333;
}

/* Stars */
.lr-stars {
    display: inline-flex;
    gap: 2px;
}

.lr-star {
    color: #ddd;
    font-size: 1.3em;
    line-height: 1;
    transition: color 0.15s ease;
}

.lr-star--filled {
    color: #f5a623;
}

/* Interactive stars (form) */
.lr-stars--interactive .lr-star {
    cursor: pointer;
    font-size: 1.8em;
    user-select: none;
}

.lr-stars--interactive .lr-star:hover,
.lr-stars--interactive .lr-star:focus {
    color: #f5a623;
    outline: none;
}

.lr-stars--interactive .lr-star.lr-star--hover {
    color: #f5a623;
}

/* Review List */
.lr-reviews-list {
    margin-bottom: 2em;
}

.lr-review {
    padding: 1em 0;
    border-bottom: 1px solid #eee;
}

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

.lr-review-header {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 0.5em;
}

.lr-review-date {
    color: #888;
    font-size: 0.9em;
}

.lr-review-content {
    color: #444;
    line-height: 1.6;
}

.lr-review-content p:last-child {
    margin-bottom: 0;
}

.lr-no-reviews {
    color: #888;
    font-style: italic;
}

/* Review Form */
.lr-review-form-wrapper {
    margin-top: 2em;
    padding: 1.5em;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.lr-form-title {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.2em;
}

.lr-field {
    margin-bottom: 1em;
}

.lr-field label {
    display: block;
    margin-bottom: 0.3em;
    font-weight: 600;
    color: #333;
}

.lr-field .required {
    color: #d32f2f;
}

.lr-field textarea {
    width: 100%;
    padding: 0.6em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1em;
    resize: vertical;
    box-sizing: border-box;
}

.lr-field textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.lr-submit-btn {
    display: inline-block;
    padding: 0.7em 2em;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lr-submit-btn:hover {
    background: #005a87;
}

.lr-submit-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* Honeypot — visually hidden */
.lr-hp {
    position: absolute;
    left: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
    opacity: 0;
}

/* Messages */
.lr-message {
    margin-top: 1em;
    padding: 0;
    border-radius: 4px;
    display: none;
}

.lr-message.lr-message--visible {
    display: block;
    padding: 0.8em 1em;
}

.lr-message--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.lr-message--error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Latest Reviews Block */
.lr-latest-reviews .lr-review {
    padding: 1em 0;
    border-bottom: 1px solid #eee;
}

.lr-latest-reviews .lr-review:last-child {
    border-bottom: none;
}

.lr-review-listing {
    margin-bottom: 0.3em;
    font-size: 0.95em;
}

.lr-review-listing a {
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
}

.lr-review-listing a:hover {
    text-decoration: underline;
}
