/* ... existing code ... */

/* <CHANGE> إضافة أنماط نظام Reviews الاحترافي */

/* Reviews Section */
.reviews-section {
    padding: 60px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 60px;
}

.reviews-container {
    max-width: 100%;
}

.reviews-header {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.reviews-title {
    font-size: 32px;
    color: #1a1a1a;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 40px;
}

.overall-rating {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
}

.rating-stars-large {
    display: flex;
    gap: 8px;
    font-size: 18px;
}

.rating-stars-large i {
    color: #ff8c42;
}

.rating-text {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Review Form */
.review-form-wrapper {
    background: #fdfbf7;
    padding: 40px;
    border-radius: 0;
    border: 1px solid #e0e0e0;
}

.form-title {
    font-size: 20px;
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 30px;
}

.login-required-message {
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.1), rgba(255, 107, 53, 0.1));
    padding: 24px;
    border-left: 4px solid #ff8c42;
    border-radius: 0;
    text-align: center;
}

.login-required-message p {
    color: #1a1a1a;
    font-size: 15px;
    margin: 0;
    font-weight: 500;
}

.login-required-message a {
    color: #ff8c42;
    text-decoration: none;
    font-weight: 600;
    margin-top: 12px;
    display: inline-block;
    transition: all 0.3s ease;
}

.login-required-message a:hover {
    color: #ff6b35;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rating-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rating-star-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    cursor: pointer;
    font-size: 20px;
    color: #ddd;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-star-btn:hover,
.rating-star-btn.active {
    color: #ff8c42;
    border-color: #ff8c42;
    background: rgba(255, 140, 66, 0.05);
}

.review-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 14px;
    color: #1a1a1a;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
}

.review-textarea:focus {
    outline: none;
    border-color: #ff8c42;
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

.review-textarea::placeholder {
    color: #ccc;
}

.submit-review-btn {
    background: #1a1a1a;
    color: white;
    padding: 16px 40px;
    border: 2px solid #1a1a1a;
    border-radius: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.submit-review-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
    transition: left 0.4s ease;
    z-index: -1;
}

.submit-review-btn:hover:not(:disabled) {
    border-color: #ff8c42;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.2);
}

.submit-review-btn:hover:not(:disabled)::before {
    left: 0;
}

.submit-review-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-item {
    padding: 24px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    transition: all 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #ff8c42;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

@media (max-width: 350px) {
    .review-header {
        flex-direction: column;
        gap: 10px;
    }
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.review-date {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.review-rating-stars {
    display: flex;
    gap: 4px;
    font-size: 14px;
}

.review-rating-stars i {
    color: #ff8c42;
}

.review-text {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    font-weight: 300;
    overflow-wrap: anywhere; /* الأفضل */
    word-break: break-word;  /* احتياط */
}

.no-reviews-message {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
    background: #fdfbf7;
    border: 1px dashed #e0e0e0;
    border-radius: 0;
}

.success-message {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(56, 142, 60, 0.1));
    padding: 16px;
    border-left: 4px solid #4CAF50;
    border-radius: 0;
    color: #1a1a1a;
    font-size: 14px;
    margin-bottom: 24px;
    display: none;
}

.success-message.show {
    display: block;
}

.error-message {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(211, 47, 47, 0.1));
    padding: 16px;
    border-left: 4px solid #f44336;
    border-radius: 0;
    color: #1a1a1a;
    font-size: 14px;
    margin-bottom: 24px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .reviews-summary {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 40px 0;
        margin-top: 40px;
    }

    .reviews-title {
        font-size: 24px;
    }

    .rating-number {
        font-size: 36px;
    }

    .review-form-wrapper {
        padding: 30px;
    }

    .review-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .reviews-section {
        padding: 30px 0;
    }

    .reviews-title {
        font-size: 20px;
    }

    .rating-number {
        font-size: 28px;
    }

    .review-form-wrapper {
        padding: 20px;
    }

    .review-item {
        padding: 16px;
    }
}



/* تحديث تصميم Reviews Summary مع Rating Breakdown */
.reviews-summary {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    padding: 30px;
    background: #fdfbf7;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.overall-rating {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    min-width: 120px;
}

.rating-number {
    font-size: 56px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.rating-stars-large {
    display: flex;
    gap: 4px;
    font-size: 16px;
}

.rating-stars-large i {
    color: #ff8c42;
}

.rating-text {
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

/* Rating Breakdown */
.rating-breakdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    min-width: 30px;
}

.rating-bar-wrapper {
    flex: 1;
    height: 8px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.rating-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff8c42 0%, #ffb36c 100%);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.rating-count {
    font-size: 13px;
    color: #666;
    min-width: 90px;
    text-align: right;
    font-weight: 400;
}

@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .reviews-summary {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }

    .rating-breakdown {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 40px 0;
        margin-top: 40px;
    }

    .reviews-title {
        font-size: 24px;
    }

    .rating-number {
        font-size: 42px;
    }

    .reviews-summary {
        padding: 20px;
    }

    .rating-bar-item {
        gap: 10px;
    }

    .rating-count {
        min-width: 70px;
        font-size: 12px;
    }

    .review-form-wrapper {
        padding: 30px;
    }

    .review-item {
        padding: 20px;
    }
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.load-more-btn {
    background: white;
    color: #1a1a1a;
    padding: 14px 40px;
    border: 2px solid #1a1a1a;
    border-radius: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
    transition: left 0.4s ease;
    z-index: 0;
}

.load-more-btn:hover {
    color: white;
    border-color: #ff8c42;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 66, 0.25);
}

.load-more-btn:hover::before {
    left: 0;
}

.load-more-btn span,
.load-more-btn i {
    position: relative;
    z-index: 1;
}

.load-more-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(3px);
}

@media (max-width: 480px) {
    .reviews-section {
        padding: 30px 0;
    }

    .reviews-title {
        font-size: 20px;
    }

    .rating-number {
        font-size: 36px;
    }

    .reviews-summary {
        padding: 15px;
        gap: 20px;
    }

    .rating-label {
        font-size: 12px;
        min-width: 25px;
    }

    .rating-count {
        min-width: 60px;
        font-size: 11px;
    }

    .review-form-wrapper {
        padding: 20px;
    }

    .review-item {
        padding: 16px;
    }

    .load-more-btn {
        padding: 12px 30px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }
}