/**
 * ScooterDiscounter - Product Reviews CSS
 * Extracted from view.phtml for better performance & caching
 * 
 * Locatie: skin/frontend/scooterdiscounter/default/css/sd-product-reviews.css
 */

/* ===== Review Form Styles ===== */

/* Write Review Button */
.sd-write-review-section {
    margin: 32px 0;
}

.sd-btn-write-review {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 32px 24px;
    background: linear-gradient(135deg, #FF6B00 0%, #ff8533 100%);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3);
}

.sd-btn-write-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.sd-btn-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.sd-btn-text {
    font-size: 20px;
    font-weight: 700;
}

.sd-btn-subtext {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
}

/* Form Container */
.sd-review-form-container {
    background: #f9fafb;
    border-radius: 12px;
    padding: 32px;
    margin-top: 24px;
}

.sd-review-form-header {
    margin-bottom: 24px;
    text-align: center;
}

.sd-review-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* Rating Section */
.sd-rating-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}

.sd-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px;
}

.sd-rating-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
    flex-wrap: wrap;
}

.sd-rating-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sd-rating-label {
    min-width: 100px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

/* Star Rating */
.sd-star-rating {
    display: flex;
    gap: 4px;
}

.sd-star {
    font-size: 32px;
    color: #e5e7eb;
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
    user-select: none;
}

.sd-star:hover,
.sd-star.hover {
    color: #fbbf24;
    transform: scale(1.1);
}

.sd-star.selected {
    color: #fbbf24;
}

/* Form Fields */
.sd-form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sd-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sd-form-label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.sd-required {
    color: #dc2626;
}

.sd-form-input,
.sd-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.sd-form-input:focus,
.sd-form-textarea:focus {
    outline: none;
    border-color: #FF6B00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.sd-form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Pros & Cons */
.sd-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.sd-pros-field,
.sd-cons-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sd-icon {
    margin-right: 4px;
}

.sd-pros-field .sd-form-textarea {
    min-height: 80px;
}

.sd-cons-field .sd-form-textarea {
    min-height: 80px;
}

.sd-pros-field .sd-form-textarea:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.sd-cons-field .sd-form-textarea:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Submit Button */
.sd-form-actions {
    margin-top: 24px;
}

.sd-btn-submit-review {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: #FF6B00;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.sd-btn-submit-review:hover {
    background: #e55a00;
}

/* Validation Error */
.sd-form-input.validation-failed,
.sd-form-textarea.validation-failed {
    border-color: #dc2626;
}

/* Mobile */
@media (max-width: 768px) {
    .sd-review-form-container {
        padding: 20px 16px;
    }
    
    .sd-star {
        font-size: 28px;
    }
    
    .sd-btn-submit-review {
        width: 100%;
    }
    
    .sd-pros-cons {
        grid-template-columns: 1fr;
    }
    
    .sd-rating-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sd-btn-write-review {
        padding: 24px 16px;
    }
    
    .sd-btn-icon {
        font-size: 28px;
    }
    
    .sd-btn-text {
        font-size: 18px;
    }
}

/* Verberg originele AdvancedRAR buttons */
.arar-write-review-button,
.write-review-button,
.review-form-button,
.arar-show-form,
button[onclick*="showReview"],
a[onclick*="showReview"] {
    display: none !important;
}

/* Success Message */
.sd-review-success {
    text-align: center;
    padding: 48px 24px;
}

.sd-success-icon {
    width: 64px;
    height: 64px;
    background: #10b981;
    color: white;
    font-size: 32px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.sd-review-success h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
}

.sd-review-success p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

/* Validation Error State */
.sd-form-input.validation-failed,
.sd-form-textarea.validation-failed {
    border-color: #dc2626;
    background: #fef2f2;
}

/* ===== Review Summary (onder titel) ===== */
.sd-product-rating {
    margin: 8px 0 16px;
}

.sd-review-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sd-stars-display {
    display: flex;
    gap: 2px;
}

.sd-star-full,
.sd-star-half,
.sd-star-empty {
    font-size: 18px;
    line-height: 1;
}

.sd-star-full {
    color: #fbbf24;
}

.sd-star-half {
    color: #fbbf24;
    position: relative;
}

.sd-star-empty {
    color: #e5e7eb;
}

.sd-review-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.sd-review-summary a {
    color: #4b5563;
    text-decoration: none;
}

.sd-review-summary a:hover {
    color: #FF6B00;
    text-decoration: underline;
}

.sd-separator {
    color: #d1d5db;
}

.sd-add-review,
.sd-first-review {
    color: #FF6B00 !important;
    font-weight: 500;
}

/* Fallback voor standaard Magento rating-box */
.sd-product-rating .rating-box {
    display: inline-flex;
    gap: 2px;
    vertical-align: middle;
}

.sd-product-rating .ratings {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sd-product-rating .rating-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.sd-product-rating .rating-links a {
    color: #4b5563;
    text-decoration: none;
}

.sd-product-rating .rating-links a:hover {
    color: #FF6B00;
}

.sd-product-rating .rating-links .separator {
    color: #d1d5db;
}

.sd-product-rating .no-rating a {
    color: #6b7280;
    font-size: 14px;
}

.sd-product-rating .no-rating a:hover {
    color: #FF6B00;
}
