/* Vanguard Seller Ratings Styles */

/* Star colors */
.vanguard-stars .star {
    font-size: 16px;
    color: #ddd;
}

.vanguard-stars .star.filled {
    color: #f5a623;
}

.vanguard-stars .star.half {
    background: linear-gradient(90deg, #f5a623 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Rating badge (inline) */
.vanguard-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.vanguard-rating-badge.new-seller {
    color: #666;
    font-style: italic;
}

.vanguard-rating-badge .rating-count {
    color: #666;
    font-size: 12px;
}

/* Seller rating inline (on product page) */
.seller-rating-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    font-size: 13px;
}

.seller-rating-inline .rating-text {
    color: #f5a623;
    font-weight: 600;
}

/* Rating form */
.vanguard-rating-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.vanguard-rating-form h3 {
    margin: 0 0 30px;
    text-align: center;
    font-size: 22px;
}

.rating-category {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.rating-category:last-of-type {
    border-bottom: none;
}

.rating-category label {
    display: block;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.rating-category .rating-description {
    color: #666;
    font-size: 14px;
    margin: 0 0 10px;
}

/* Star input */
.star-input {
    display: flex;
    gap: 8px;
}

.star-input .star-select {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.star-input .star-select:hover {
    transform: scale(1.1);
}

.star-input .star-select.active,
.star-input .star-select.hover {
    color: #f5a623;
}

/* Review textarea */
.rating-review {
    margin: 25px 0;
}

.rating-review label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.rating-review textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
}

.rating-review textarea:focus {
    outline: none;
    border-color: #d63384;
}

/* Submit button */
.btn-submit-rating {
    display: block;
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, #d63384 0%, #e91e8c 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit-rating:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.4);
}

.btn-submit-rating:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Rating result message */
#rating-result {
    text-align: center;
    padding: 30px;
}

#rating-result.success {
    color: #28a745;
}

#rating-result.error {
    color: #dc3545;
}

/* Seller rating card (on store page) */
.vanguard-seller-rating-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.rating-overall {
    text-align: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.rating-overall .rating-number {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    display: block;
}

.rating-overall .vanguard-stars .star {
    font-size: 24px;
}

.rating-overall .rating-count {
    color: #666;
    font-size: 14px;
}

.rating-breakdown .rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.rating-breakdown .rating-label {
    font-size: 14px;
    color: #555;
}

/* My ratings page */
.vanguard-my-ratings h3 {
    margin-bottom: 20px;
}

.rating-summary {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #fff8fb 0%, #fff 100%);
    border-radius: 12px;
    margin-bottom: 30px;
}

.rating-summary .big-rating {
    font-size: 48px;
    font-weight: 700;
    color: #d63384;
}

.rating-summary .vanguard-stars .star {
    font-size: 28px;
}

.rating-summary .total-count {
    display: block;
    color: #666;
    margin-top: 5px;
}

.ratings-list .rating-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
}

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

.ratings-list .rating-date {
    color: #999;
    font-size: 13px;
}

.ratings-list .rating-review {
    color: #555;
    font-style: italic;
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
}

.ratings-list .rating-meta {
    font-size: 13px;
    color: #666;
}

.ratings-list .trade-badge {
    display: inline-block;
    background: #d63384;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .vanguard-rating-form {
        padding: 20px;
    }
    
    .star-input .star-select {
        font-size: 28px;
    }
    
    .rating-breakdown .rating-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
