/* Comments and Reviews Styles - Compact */
.comments-reviews-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    color: #462c61;
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-header p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Review Form Styles - Compact */
.review-form-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.review-form-container h4 {
    color: #462c61;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Star Rating - Compact */
.rating-input {
    margin-bottom: 1rem;
}

.rating-input label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.1rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 1.2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffc107;
}

/* Form Styles - Compact */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

/* Comments Display - Compact */
.comments-display h4 {
    color: #462c61;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    border-left: 3px solid #667eea;
}

.comment-header {
    margin-bottom: 0.8rem;
}

.commenter-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.commenter-avatar {
    width: 35px;
    height: 35px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.commenter-details h5 {
    margin: 0 0 0.2rem 0;
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 600;
}

.comment-rating {
    display: flex;
    gap: 0.1rem;
    margin-bottom: 0.2rem;
}

.comment-rating i {
    color: #ffc107;
    font-size: 0.8rem;
}

.comment-date {
    color: #6c757d;
    font-size: 0.75rem;
}

.comment-content p {
    color: #495057;
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
}

.comment-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.like-btn,
.reply-btn {
    background: none;
    border: 1px solid #e9ecef;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.like-btn:hover,
.reply-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

/* Success message styles */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Responsive fixes - Compact */
@media (max-width: 768px) {
    .comments-reviews-section {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .section-header {
        margin-bottom: 1rem;
    }
    
    .review-form-container {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .comment-item {
        padding: 0.8rem;
    }
    
    .commenter-info {
        gap: 0.6rem;
    }
    
    .commenter-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    /* Mobile popup positioning */
    .success-message {
        top: 80px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
    }
}

@media (max-width: 480px) {
    .section-header h3 {
        font-size: 1.2rem;
    }
    
    .section-header p {
        font-size: 0.8rem;
    }
    
    .review-form-container h4 {
        font-size: 1rem;
    }
    
    .star-rating label {
        font-size: 1rem;
    }
    
    .comment-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .like-btn,
    .reply-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    /* Small mobile popup positioning */
    .success-message {
        top: 70px !important;
        right: 5px !important;
        left: 5px !important;
        padding: 0.8rem 1rem !important;
        font-size: 0.85rem !important;
    }
}

