
/* Freelancer Reviews Styles */
.freelancer-reviews-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.freelancer-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.freelancer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 2px;
}

.rating-summary {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.rating-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
}

.average-rating {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.rating-number {
    font-size: 3rem;
    font-weight: 800;
    color: #3b82f6;
    text-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.star-filled {
    color: #fbbf24;
}

.star-empty {
    color: #e5e7eb;
}

.rating-count {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

/* Add Review Form */
.add-review-form {
    margin-bottom: 2.5rem;
    padding: 2rem;
    border: 2px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    background: var(--color-gray);
    position: relative;
    transition: all 0.3s ease;
}

.add-review-form:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
}

.add-review-form h3 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-review-form h3::before {
    content: '✨';
    font-size: 1.2rem;
}

.review-form .form-group {
    margin-bottom: 1.5rem;
}

.review-form label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
}

.rating-input {
    display: flex;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.rating-input input[type="radio"] {
    display: none;
}

.star-label {
    font-size: 2.5rem;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    position: relative;
}

.star-label:hover {
    transform: scale(1.1);
    color: #fbbf24;
}

.review-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
    background: white;
    font-size: 0.95rem;
    line-height: 1.5;
}

.review-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: #fafbff;
}

.review-form textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.login-prompt {
    padding: 1.5rem;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.login-prompt::before {
    content: '🔒';
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.login-prompt p {
    margin: 0;
    font-weight: 500;
    color: #1e40af;
}

.login-prompt a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.login-prompt a:hover {
    border-bottom-color: #1d4ed8;
}

/* Reviews List */
.reviews-list {
    display: grid;
    gap: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.review-item:hover::before {
    opacity: 1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reviewer-info strong {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.05rem;
}

.review-rating {
    display: flex;
    gap: 2px;
    margin-top: 0.25rem;
}

.review-rating .star {
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.review-date {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.review-comment {
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95rem;
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.no-reviews {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    background: var(--color-gray);
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

.no-reviews::before {
    content: '💬';
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

@media (max-width: 768px) {
    .freelancer-reviews-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .rating-summary {
        padding: 1.5rem;
    }
    
    .average-rating {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
    
    .rating-number {
        font-size: 2.5rem;
    }
    
    .review-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .rating-input {
        justify-content: center;
    }
    
    .add-review-form {
        padding: 1.5rem;
    }
    
    .review-item {
        padding: 1.25rem;
    }
}

/* Animation for new reviews */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-item {
    animation: slideIn 0.3s ease-out;
}

/* Hover effects for rating stars */
.rating-input .star-label {
    position: relative;
}

.rating-input .star-label:hover::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 50%;
    z-index: -1;
}
