/* Tab styles */
.tab-container {
    margin: 20px 0;
    font-size: 1.3em;
}

.tab-header {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}
.tab-container .tab-header .tab-button.active{
    color: #9041e9;
}

.tab-button {
    padding: 12px 24px;
    cursor: pointer;
    background-color: #f5f5f5;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 700;
    color: #666;
    transition: all 0.3s ease;
    outline: none;

}

.tab-button.active {
    background-color: white;
    border-bottom: 3px solid #9041e9;
    color: #0d6efd;
}

.tab-button:hover:not(.active) {
    background-color: #e9ecef;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Reviews section styles */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.3em;
}

.total-rating {
    font-weight: bold;
    color: #333;
}

.stars {
    display: flex;
    gap: 3px;
}

.star {
    color: #9041e9;
    font-size: 1.3em;
}

.review-count {
    color: #666;
}

.reviews-list {
    margin-top: 20px;
    font-size: 1.1em;
}

.review-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fafafa;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 10px;
}

.user-info {
    flex: 1;
}

.user-name {
    margin-bottom: 3px;
}

.user-stats {
    color: #666;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-date {
    color: #999;
    margin-top: 5px;
    font-size: 0.9em;
}

.review-content {
    line-height: 22px;

}

.view-more-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
    color: #0d6efd;
    font-weight: 500;
}
/* Descriptions iframe styles */
.description-frame {
    width: 100%;
    height: 600px;
    border: 0;
    overflow: hidden;
}

.review-reply {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-left: 3px solid #e0e0e0;
    border-radius: 4px;
}

.reply-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #ddd;
}

.reply-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reply-author {
    font-weight: bold;
    color: #555;
}

.reply-time {
    font-size: 16px;
    color: #999;
}

.reply-content {
    color: #666;
    line-height: 1.5;
}



@media (min-width: 768px) {
    .index-container .faq{
        padding-top: 10px;
    }
    .review-count{
        font-size: 0.9em;
        margin-left: 2vw;
    }
    .review-item {
        padding: 16px;
        display: flex;
    }
    .review-item .user-avatar{
        width: 3vw;
        height: 3vw;
    }
    .review-item .review-body{
        flex: 1;
    }
    .review-item .review-body .review-rating{
        gap: 10vw;
        padding: 0.6vw 0;
    }
    .reviews-header .rating-overview .stars .star{
        font-size: 1.3em;
        color: #9041e9;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .tab-button {
        padding: 10px 16px;
        font-size: 14px;
    }
    .reviews-header{
        margin-bottom: 0;
    }
    .review-count{
        font-size: 0.9em;
        margin-left: 2vw;
    }
    .reviews-list{
        padding-bottom: 2vh;
    }
    .reviews-header .rating-overview .stars .star{
        font-size: 1.3em;
        color: #9041e9;
    }
    .review-item {
        padding: 12px;
        display: flex;
    }
    .review-item .user-avatar{
        width: 10vw;
        padding-top: 5px;

    }
    .review-item .review-body{
        flex: 1;
    }
    .review-item .review-body .review-rating{
        gap: 9vw;
        padding: 2vw 0;
    }
    .review-item .review-body .review-rating .stars .star{
        font-size: 1.3em;
        color: #9041e9;

    }
    .review-item .review-body .review-rating span{
        font-size: 14px;
    }
    .description-frame {
        height: 400px;
    }
    .tab-container{
        font-size: 1em;
    }
    .tab-container .tab-header .tab-button.active{
        color: #9041e9;
    }
}