/* =============================================
   MinHie Spa – Review Section Styles
   ============================================= */

/* Wrapper chính */
.minhie-wrap {
    max-width: 760px;
    margin: 0 auto;
    font-family: inherit;
    color: inherit;
}

/* ---- TỔNG QUAN ---- */
.minhie-summary {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.minhie-big-score {
    text-align: center;
    flex-shrink: 0;
}

.score-num {
    display: block;
    font-size: 52px;
    font-weight: 600;
    line-height: 1;
    color: #1a1a1a;
}

.score-stars {
    margin: 6px 0 4px;
}

.score-count {
    font-size: 13px;
    color: #888;
}

/* Thanh bar */
.minhie-bars {
    flex: 1;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
}

.bar-label {
    font-size: 13px;
    color: #888;
    min-width: 14px;
    text-align: right;
}

.bar-track {
    flex: 1;
    height: 7px;
    background: #e9e9e9;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #F5A623;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.bar-count {
    font-size: 12px;
    color: #aaa;
    min-width: 20px;
}

/* ---- SAO ---- */
.star-row {
    display: inline-flex;
    gap: 2px;
}

.star svg,
.mini-star svg {
    display: block;
}

.star.filled svg,
.minhie-card-stars .star.filled svg { fill: #F5A623; }
.star.half  svg                     { fill: #F5A623; opacity: 0.55; }
.star.empty svg                     { fill: #ddd; }

/* ---- DANH SÁCH REVIEW ---- */
.minhie-review-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 12px;
    transition: box-shadow .2s;
}

.minhie-review-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.minhie-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.minhie-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
}

.minhie-author {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.minhie-date {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
}

.minhie-body {
    font-size: 15px;
    line-height: 1.65;
    color: #444;
    margin: 0;
}

.minhie-empty {
    text-align: center;
    color: #aaa;
    padding: 2rem 0;
}

/* Nút "Xem thêm" */
.minhie-loadmore-wrap {
    text-align: center;
    margin-top: 1rem;
}

.minhie-loadmore {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 9px 24px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.minhie-loadmore:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* ---- DIVIDER ---- */
.minhie-divider {
    height: 1px;
    background: #eee;
    margin: 1.5rem 0;
}

/* ---- FORM ---- */
.minhie-form-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 1.25rem;
    color: #1a1a1a;
}

.minhie-field {
    margin-bottom: 1rem;
}

.minhie-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.minhie-field .req {
    color: #e24b4a;
}

.minhie-field input[type="text"],
.minhie-field input[type="email"],
.minhie-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .2s;
    box-sizing: border-box;
    background: #fff;
    color: #1a1a1a;
}

.minhie-field input:focus,
.minhie-field textarea:focus {
    outline: none;
    border-color: #F5A623;
    box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}

.minhie-field small {
    display: block;
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
}

/* Star picker */
.minhie-star-picker {
    display: flex;
    gap: 4px;
    margin: 4px 0;
}

.sp-star {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    line-height: 1;
    transition: transform .15s;
}

.sp-star:hover {
    transform: scale(1.2);
}

.sp-star svg {
    fill: #ddd;
    width: 28px;
    height: 28px;
    display: block;
    transition: fill .15s;
}

.sp-star.active svg,
.sp-star.hover svg {
    fill: #F5A623;
}

.star-hint {
    font-size: 12px;
    color: #aaa;
}

/* Submit button */
.minhie-btn {
    background: #F5A623;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.minhie-btn:hover {
    background: #d48c10;
}

.minhie-btn:active {
    transform: scale(0.98);
}

.minhie-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Notices */
.minhie-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 14px;
}

.minhie-success {
    background: #eaf3de;
    color: #3b6d11;
    border: 1px solid #c0dd97;
}

.minhie-error {
    background: #fcebeb;
    color: #a32d2d;
    border: 1px solid #f09595;
}

/* Responsive */
@media (max-width: 520px) {
    .minhie-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .score-num {
        font-size: 40px;
    }
}
