/* Author Review & Schema - Frontend Styles */
.ars-review-box-container {
    margin: 3em 0;
    padding: 1.5em;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.ars-review-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.ars-reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ars-reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    transition: all 0.3s ease; /* 新增：讓縮放更平滑 */
}
.ars-reviewer-avatar img {
    display: block;
    width: 100%;
    height: 100%;
}

.ars-reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ars-reviewer-name-line {
    display: flex;
    align-items: baseline;
    gap: 0.5em;
}

.ars-reviewer-label {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    white-space: nowrap;
    transition: all 0.3s ease; /* 新增：讓縮放更平滑 */
}

.ars-reviewer-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease; /* 新增：讓縮放更平滑 */
}

.ars-stars-rating {
    position: relative;
    font-size: 22px;
    color: #ccc;
    display: inline-block;
    transition: all 0.3s ease; /* 新增：讓縮放更平滑 */
}

.ars-stars-background {
    position: relative;
    z-index: 1;
}

.ars-stars-foreground {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #ffb300;
    z-index: 2;
}

.ars-rating-score-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border-left: 1px solid #e0e0e0;
    padding-left: 25px;
    flex-shrink: 0;
}

.ars-rating-label {
    font-size: 14px;
    color: #666;
    display: block;
    transition: all 0.3s ease; /* 新增：讓縮放更平滑 */
}

.ars-rating-score {
    font-size: 52px;
    font-weight: 300;
    color: #333;
    line-height: 1.1;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease; /* 新增：讓縮放更平滑 */
}

/* >> RWD 響應式設計修正 */
@media (max-width: 600px) {
    .ars-review-box-container {
        padding: 1em; /* 縮小內邊距 */
    }

    .ars-review-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .ars-rating-score-wrapper {
        border-left: none;
        border-top: 1px solid #e0e0e0;
        padding-left: 0;
        padding-top: 15px;
        width: 100%;
        align-items: flex-start; /* 手機版改為靠左對齊 */
    }
}

/* >> 新增：針對更小的手機螢幕進行縮放 */
@media (max-width: 480px) {
    .ars-reviewer-avatar {
        width: 50px; /* 縮小頭像 */
        height: 50px;
    }

    .ars-reviewer-info {
        gap: 12px; /* 縮小間距 */
    }

    .ars-reviewer-label,
    .ars-reviewer-name {
        font-size: 15px; /* 縮小字體 */
    }

    .ars-stars-rating {
        font-size: 20px; /* 縮小星星 */
    }

    .ars-rating-label {
        font-size: 13px; /* 縮小標籤字體 */
    }

    .ars-rating-score {
        font-size: 44px; /* 縮小分數數字 */
    }
}
